#ivaylo-vasilev_api
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/1245651092604190720
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
No, There is no public API for that:
https://docs.stripe.com/api/
Could you suggest something for solution? The idea is to detect the source of the request which triggers the relevant webhook?
I'm not sure if you could achieve this honestly, because the Event object doesn't expose this kind of information:
https://docs.stripe.com/api/events/object
Let me check further...
There is no direct/easy way to achieve this. There is two workarounds:
- Add metadata when you create an object: this will covers only the origin of the creation of that object
- For advance and full mode tracking, the workaround is to track all requestId made by your integration (some SDKs returns the requestId), you store it in your database, and then when you got a webhook event, you inspect it's requestId https://docs.stripe.com/api/events/object#event_object-request-id, if you have a requestId in your database that means it was triggered from your integration otherwise it was created from Dashboard or elswhere
ok, I appreciate your help! Thank you very much!