#nidebo_webhooks

1 messages ยท Page 1 of 1 (latest)

idle heartBOT
#

๐Ÿ‘‹ 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/1242498361349767208

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

wooden shadow
#

Hi ๐Ÿ‘‹ the contents of the associated Charge object will not be included, as latest_charge (or charges depending on your API version) are an expandable field. Those types of fields cannot be expanded when they're sent to a webhook endpoint.

#

You are correct that you will want to retrieve the Charge object whose ID is provided in latest_charge.

royal tide
#

Hi @wooden shadow it seems I'm using an old version of the API?

See this event: evt_3PIu0zPNY3ipaWcp0yVXLsV8

I get both charges list and also latest_charge

#

I was trying to confirm if I'll always find the refered latest_charge inside the list, then I don't need to make an additional API request

wooden shadow
#

Oh, gotcha, yeah

#

charges should only contain a single Charge now, where it is the latest charge

royal tide
#

Ok, that's good news then! Thanks @wooden shadow ๐Ÿ‘