#fluxorg

1 messages · Page 1 of 1 (latest)

coral compassBOT
daring condor
#

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

#

Can you send me the request ID req_123 of a time you got this error?

sleek drift
#

Sure here you go req_D3jWljDIYWkTOq

daring condor
#

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

sleek drift
#

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

daring condor
#

Good question. If you aren't providing one explicitly, it will be the default for your account. Will find the dashboard page for that.

#

That can be helpful to prevent unexpected changes when updating your account's default version

sleek drift
#

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?

daring condor
#

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