#jose332211
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jose332211, 1 day ago, 19 messages
Hello. I am handling stripe events like checkout session completed
I would like to know if the event id is unique?
Event IDs are unique, yes
Ok so to maintain idempotence could I use the event id or which event field should I use?
You can use the event ID or the object ID for Checkout Session (cs_test or cs_live)
Thank you, I have problems with the forwarding of the event and I wanted to rule out that the id would not change
then I'm going to make use of the event id to check for idempotency. I very much appreciate your attention.
One additional thing to keep in mind is that with our API we will replay the exact first response that you got when you provided the specific idempotency key. So if you get a 500 error, we will keep sending a 500 error back if you retry with the same key. So when you do get an error like that, you will likely want to change the key up a bit ex: evt_1234-2
Excuse me, is there a section in the documentation to address idempotence?
Our API reference has info on idempotent requests https://docs.stripe.com/api/idempotent_requests
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.