#.stevenp
1 messages ยท Page 1 of 1 (latest)
Good question. Checking in to this and will get back to you.
thank!
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
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?
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.
kk ๐
@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?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Seems for this I really want:
https://stripe.com/docs/api/customer_balance_transactions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.