#anginie_webhooks

1 messages ¡ Page 1 of 1 (latest)

barren grailBOT
#

👋 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/1458374942792880322

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

flat fern
#

hi there!

#

it would depend on the API version you are using to make requests, and the API version of your webhook event.

#

in your case you are likely using different API versions, so seeing different API response.

#

to keep things consistent, I recommend using a webhook endpoint with the same version as your API requests.

hidden adder
flat fern
#

it does matter, in the API version basil we removed the payment_intent and charge property of the Invoice.

hidden adder
#

ok, I will read this document first

#

so, the reliable way is get charge or payment_intent of a invoice is request retrieve invoice api with payments expand? could I use the data in event?

flat fern
#

you want to know how to get the payment_intent of an Invoice when using the Basil API version?

#

it's explained in the link I shared

#

by retriving the Invoice with expand: ['payments']

hidden adder
#

ok, I get it, thank you

barren grailBOT