#gulla_api

1 messages ¡ Page 1 of 1 (latest)

frail lavaBOT
#

👋 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.

keen minnow
#

Hi there

#

Do you happen to have the Invoice ID handy? If not, I can look for it

#

It should begin with in_

obtuse bridge
#

i am looking for it

keen minnow
#

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

obtuse bridge
#

ok, i see a receipt but not invoice

#

invoices only apply to subscriptions?

#

not one-time purchases?

keen minnow
#

Can you share the ID of the payment you're looking at?

obtuse bridge
#

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...

keen minnow
obtuse bridge
#

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

keen minnow
#

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