#shifu_webhooks
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/1217401667478356020
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ 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
@native gazelle can i get the information which api endpoints is responsible for generating these events?
you can find when these events are fired here https://docs.stripe.com/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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?
as I mentioned I don't think you can using the webhooks
let me double check one last thing
okay ๐ซก
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
Ok. I'll look into it. Thanks @native gazelle