#ayeshaikh_7

1 messages · Page 1 of 1 (latest)

spark harnessBOT
polar yarrow
blissful topaz
#

thanks, yes I referred that guide to create invoice

#

and it is working for customers in one stripe account/org but not for others

polar yarrow
#

What is the difference ?

blissful topaz
#

getting this error invoice_no_customer_line_items for customers in that org

polar yarrow
#

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

blissful topaz
#

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

polar yarrow
#

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 ?

blissful topaz
#

req_g3lhyVZwbI1xu9 us org failed
req_MlnySrRNDAYkYn ca org successful

polar yarrow
#

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

blissful topaz
#

thanks!

#

is there any guide for invoice integration with old api?

polar yarrow
#

unfortunately, no, but in old API you need to create the invoice items first then create the invoice

blissful topaz
#

okay got it, thanks!