#ivaylo-vasilev_api

1 messages ¡ Page 1 of 1 (latest)

edgy craterBOT
#

👋 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.

latent shard
placid jay
#

Could you suggest something for solution? The idea is to detect the source of the request which triggers the relevant webhook?

latent shard
#

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
placid jay
#

ok, I appreciate your help! Thank you very much!