#karishma1642

1 messages · Page 1 of 1 (latest)

manic sealBOT
rare merlin
#

Do you have an example invoice ID you can share?

#

I would expect this to only happen once the invoice is finalized (ie, when you can't add any more items)

#

Once the invoice is finalized, credits are applied automatically if the customer has a balance

#

You can't control if/when/how much credit is applied

grand anchor
#

yes, sorry for the delay! we dont mind how much credit is applied, but we'd like for the credit to be applied once we've added all the necessary. this is an example in_1Nn4LkF5n5KjLa7RzlwqTrdD

#

is there a different way we need to add line items to account for credits? otherwise, we're running into a situation where we arent collecting taxes

rare merlin
#

It looks like you might not subscribe to those events, which you'll want to do in order to provide additional items like this

#

When a subscription renews and creates an invoice, Stripe sends the invoice.created webhook event. Stripe waits approximately one hour before finalizing the invoice and attempting payment

grand anchor
#

interesting. Our other invoices for accounts with no credit are put into a draft which we pick up with our api and add the line items. Ok thank you for the context! We'll look into it.

rare merlin
#

Yep, using that webhook will let you handle the additional invoice items during the draft phase (before the finalization and credit application)