#fluxorg
1 messages · Page 1 of 1 (latest)
One possibly relevant change we made was to remove explicitly setting pending_invoice_items_behavior
to exclude, but this seemed to be correct since the docs say omitting it will default the value to exclude 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.
Can you send me the request ID req_123 of a time you got this error?
Sure here you go req_D3jWljDIYWkTOq
So in that call, I am not seeing pending_invoice_items_behavior being passed in and you are on a 2020 version of the API, only the newest one defaults to exclude
So if you include that argument explicitly again, this error should go away
ok thanks @daring condor is there an easy way to check what API version we are on for the future?
This is a node app using the stripe npm library
Good question. If you aren't providing one explicitly, it will be the default for your account. Will find the dashboard page for that.
And your node.js code can always specify the version it is using to make sure you stay on the same version until you explicitly change it in your code https://stripe.com/docs/api/versioning
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That can be helpful to prevent unexpected changes when updating your account's default version
Great thanks for the advice, so the version of the stripe npm package we are using wouldn't ever have any effect on what API version we are using?
Correct, those are two separate versions. Because javascript is flexible with typing, it is possible to work with arbitrary versions of Stripe's API from one version of our node.js library
I feel like that was unclear. Basically there are two versions we are talking about, the version of the node library, you can see the changelog across versions here https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md
And the version of the Stripe rest API that your code is utilizing. The changelog for that is here https://stripe.com/docs/upgrades