#saeed_89869
1 messages ยท Page 1 of 1 (latest)
req_vsAiwmof1zb1Ed
Hello ๐
Were you using test mode on the same account or a different account?
It is possible that you're on different API versions on both accounts.
The account you're making the above request from is on API version 2020-08-27
@frail pond can you clarify if you have separate accounts?
Also, are you trying to create an empty invoice OR do you have any pending invoice items?
different account
Gotcha. You'd want to check the API version on the test account.
The API error you're currently getting is returned when you try to create an invoice for a customer that has no pending invoice items.
If you're trying to create an empty invoice then you can set pending_invoice_items_behavior to exclude , that should let you create an empty invoice & then you can create invoice items
https://stripe.com/docs/api/invoices/create#create_invoice-pending_invoice_items_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok. I will check the API version
๐
Awesome, apologies I missed your last question.
Glad you worked it out.