#WannaLearn-invoice
1 messages ยท Page 1 of 1 (latest)
Hi there!
What exactly is the error you see? Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
can you copy-paste the invoice ID, in_xxx from your screenshot?
yeah
in_1L8PxvIOgOntGW9fYJKFmZjn
And I also need the request ID https://support.stripe.com/questions/finding-the-id-for-an-api-request
I messed up here, I forgot to put my invoice_id, this is from the example page
yes
req_xDYLAeiLBjENsh
Thanks! This is the error message I see for this request:
This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.
So you need to use a secret API key for this, it should look like sk_test_xxx
yeah done that
but
oh
ok
thanks
I got it
thanks a lot
Happy to help ๐
last question
is there a way for me to get the quantity of product purchased?
for example, an invoice contains 3x product1
other than figuring that out from price paid, is there a way for me to get that?
The invoice object has a lines property that contains line_item objects. And each line_item has a quantity https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-quantity