#gulla_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1316808092234547283
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Do you happen to have the Invoice ID handy? If not, I can look for it
It should begin with in_
i am looking for it
It's not clear to me how the request ID above relates to your question. That request ID is for an update made to a Product
ok, i see a receipt but not invoice
invoices only apply to subscriptions?
not one-time purchases?
If you use Checkout, you can create the Session and enable invoice creation for one-time payments: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation
Can you share the ID of the payment you're looking at?
yes, sorry the correct req id should be
req_FiIVJpZm2rCflf
i see in json it is 1 quantity that i made
i am looking payment id
pi_3QVFbNHW6X9afP0x1YDTu0TM
I just want to know in high level how i can get quantity, eg search invoice by receipt #, get transaction id in a key-value in the json obj, find trnasaction that contains that quantity using that id, etc...
PaymentIntent IDs are low-level object types that will only show amount details, not quantities. I recommend reviewing this if you haven't already: https://docs.stripe.com/payments-api/tour#payment-objects
Ok. I guess that generally answers my question thanks.
In the past i have been able to get sub ids using the invoice number, so figured something like that could be applied here
Right, so the way to do that will be to enable invoice creation when creating the Checkout Session. You can then listen for checkout.session.completed events to retrieve the Invoice ID, then make a call to retrieve the Invoice