#Mirek
1 messages · Page 1 of 1 (latest)
the behaviour depends on API version and the accounts can have different default versions
specifically https://stripe.com/docs/upgrades#2022-08-01 changes it so that you would create the Invoice first, and then add items to that draft $0 invoice.
if your code needs to run on different accounts you need to pin its API version. https://stripe.com/docs/api/versioning
looks like this may be a reason. How to pass Stripe-Version header using PHP SDK?
the docs I linked show how