#tbhaxor-invoice & prices

1 messages · Page 1 of 1 (latest)

jovial birch
#

👋 happy to help

#

just give me a few minutes

cosmic vessel
#

Sure, take your time

jovial birch
#

do you want to know how to get it from the API?

cosmic vessel
#

yes

jovial birch
#

in the invoice object you could look at lines and in that you'd have an array of line items where you could see the price object

cosmic vessel
#

Hold on let me check

#

Meanwhile could you fetch me difference b/w items and add_invoice_items in the subscription?

jovial birch
#

the add_invoice_items param is used to pass items that would only be present on the first invoice as a one-off payment

cosmic vessel
#

So this can be used if I were to use one time fees for the subscription :/

jovial birch
#

let me rephrase, if you have for a example a subscription with a recurring payment of x and you want to add a one-time setup fee (also as an example it might be something else) you could do that by using the items param to pass the price for the recurring payment and add_invoice_items to add the price of the one-time setup fee

cosmic vessel
#

Yeah that what I meant. Thanks for your response

jovial birch
#

ok I was making sure I didn't pass the wrong info in my previous message

cosmic vessel
#

Yeah, both invoice line and subscription doubts are solved. As always, thanks for your support