#Little_seven
1 messages ยท Page 1 of 1 (latest)
Hello ๐
What API version are you currently running?
I updated to 9.6 and tried again,
same error message "Nothing to invoice customer"
Can you try creating the invoice items first?
yes I can create invoice items.
but how can I link them when creating invoice?
So when you create an invoice, it automatically grabs pending invoiceItems linked to a customer.
The default behavior on the latest API version is to ignore pending invoiceItems when creating an invoice
But it is possible that you're on an older version
https://stripe.com/docs/api/invoices/create#create_invoice-pending_invoice_items_behavior
what version ignores the pending invoiceItems, starting 9.7?
That's the library version
If you go to this page
https://dashboard.stripe.com/test/developers
You should see your current API version there
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
just tried now with parameter
pending_invoice_items_behavior = exclude
successfully created the invoice ๐
Great ๐