#Wyrran
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I get the same behavior. Out of curiosity what API version are you on?
oh, good question. one sec. its probably an older one at the moment.
you get the error behavior?
hah, very old: 2016-07-06
also, hi! ๐
Yeah, my default API version is 2020-08-27 but this behavior wasn't introduced until 2022-08-01.
But you can specify pending_invoice_items_behavior as exclude and then you can create an Invoice without Invoice items
ah ok. so would it be better to do that and then create the item second?
or create the item and then create the invoice right after. no way to do it at the same time right?
Either way will work fine, it depends on which approach makes the most sense for your integration. But you are right there is no way to do both in one API call.
If you wanted to test out using the newer API version you can set the API version in your client SDK or even per API request: https://stripe.com/docs/api/versioning
I'll add a chore to look at upgrading us. Thanks!