#ayeshaikh_7
1 messages · Page 1 of 1 (latest)
Hi
I invite you to follow this quickstart in order to create a full invoice integration using Stripe APIs:
https://stripe.com/docs/invoicing/integration/quickstart
thanks, yes I referred that guide to create invoice
and it is working for customers in one stripe account/org but not for others
What is the difference ?
getting this error invoice_no_customer_line_items for customers in that org
What is the difference between these two orgs ?
You need to check the difference in the code in order to know what is the cause of that error
one is US address other is Canada
I am using the same code as mentioned in the guide, changing the stripe keys & customer id based on customers location
No there must be something else. Could you share tow requestId for invoice creation, one successfull of one org and another failure of the other org ?
req_g3lhyVZwbI1xu9 us org failed
req_MlnySrRNDAYkYn ca org successful
The difference is that you are using different API version
The CA is using the latest Stripe API 2022-11-15 and the US is using an old API 2020-08-27
In order to have the same behavior you need to upgrade the US API used
unfortunately, no, but in old API you need to create the invoice items first then create the invoice
okay got it, thanks!