#.stevenp

1 messages ยท Page 1 of 1 (latest)

lusty pilotBOT
fast obsidian
#

Good question. Checking in to this and will get back to you.

hybrid flame
#

thank!

fast obsidian
#

Apologies for the wait, so amount will take money off a specific invoice and credit_amount will put funds in the Customer's balance to be applied to the next invoice

hybrid flame
#

ok got it

#

so if i pass in the upcoming invoice for the invoice_id i would use the amount not the credit_amount field?

fast obsidian
#

Yes, I think credit_amount may apply two invoices out in that case. Haven't tested that in test mode so you may want to confirm that. amount should apply directly to the invoice that you are specifying as far as I know.

hybrid flame
#

kk ๐Ÿ‘

lusty pilotBOT
hybrid flame
#

@fast obsidian so the upcoming_invoice API does not provide any ID for the upcoming invoice, and this credit_note API requires an invoice.id be passed in:
https://stripe.com/docs/api/invoices/upcoming

I am trying to issue a credit for the customer's next invoice. What should I do?