#shifu_webhooks

1 messages ยท Page 1 of 1 (latest)

sly hearthBOT
#

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

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

rancid geyser
#

the responsible api means, which api is reponsible for these events

trim shoreBOT
native gazelle
#

๐Ÿ‘‹ happy to help

#

Automatic means that it wasn't generated based on a request ID (e.g. API call, or a dashboard action) but rather an internal Stripe action

#

this information isn't available in the event AFAIK

rancid geyser
#

@native gazelle can i get the information which api endpoints is responsible for generating these events?

native gazelle
#

so basically account.application.authorized is fired when using OAuth to connect a standard Connect account to your platform

#

and capability.updated is fired when the account is updated to get more capabilities

rancid geyser
#

thank you, but the next question was more like, from an event can I get the api endpoints which were reponsible for emitting these events, for example,
account.application.authorized capability.updated gets fired when a connected account is created by calling [POST] /v1/accounts,
can i get the /v1/accounts information from the event?

#

also the timestamp (which the event is generated at) from the events payload or from somewhere else?

native gazelle
#

as I mentioned I don't think you can using the webhooks

#

let me double check one last thing

rancid geyser
#

okay ๐Ÿซก

native gazelle
#

sorry for keeping you waiting, but discord got really busy

#

ok so basically when you do the stripe.constructEvent(....) function you will receive an object that has the request object and if that's not null you can access the request.id to get the request that generated this event

#

and you can look at the created timestamp as well

#

these are a few of the available information at the same level as the data property that you normally access to get the data.object that is related to the event

rancid geyser
#

Ok. I'll look into it. Thanks @native gazelle