#acaiafa

1 messages · Page 1 of 1 (latest)

oak summitBOT
fickle brook
#

Could you please share the event ID?

jolly surge
#

evt_1NcQBeHCz55fQd97ThbDhMX5

fickle brook
#

I don't actually know what these are. How are you expecting to use it?

jolly surge
fickle brook
#

This request was automatic so there's no request nor idempotency key.

jolly surge
#

So the webhooks don't have this information? I don't need to validate duplicity of events with webhooks or in this case do I validate with the event id itself?

fickle brook
#

Yes, the event ID will do. But it's best if the webhook handler is idempotent on it's own, without checking for IDs.

#

Anyway, the idempotency_key that you're referring to is not for the webhook notification, but for the request that produced it.

jolly surge
#

But how could the event handler be without validating the event id?

fickle brook
#

It depends what operations you perform on the incoming data. For example, if you set your order status to "paid", you can make sure you can't set it to that state twice. But it of course depends on your situation.

#

But event ID is a good check

jolly surge
#

Thank you for your help

fickle brook
#

Happy to help!