#JR123123 - order.created
1 messages ยท Page 1 of 1 (latest)
The event will contain an order object: https://stripe.com/docs/api/orders_v2/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i see but as I told to one colleagues could happen in some rare scenario that webhook is not triggered
do I have a simple way to check all orders.created that didn't receive a webhook event?
All created orders will generate a webhook event. You're talking about a scenario where there's an issue with your webhook endpoint and it's unreachable, so you don't receive the event?
this scenario is this for example
when stripe server returns 500 for example
Ah ok
Yeah in those situations we attempt to fire webhooks so usually you'll still get them
Otherwise, you can just use this endpoint to list orders: https://stripe.com/docs/api/orders_v2/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and how i know wich of this orders have no event generated by webhook?
That really shouldn't happen: https://stripe.com/docs/error-low-level#server-errors:~:text=To let your integration handle the widest range of 500s%2C configure webhook handlers to receive event objects that you never receive in normal API responses.
Webhooks are the recommended way to handle those 500s
Yes you should handle the 500s for sure. It's just our recommended approach is to listen to webhooks
i see with webhooks there area no 500
god
๐
fine, i'll forget that strange scenario and i'll trust plattform
๐
in all that's what people use to dit
What you mean by this?
i thought by your explanation can't receive a 500 when receiving webhook post
No I was referring to the scenario described in that link. If you call the Stripe API and receive a 500 back, there won't be much info in the request's response. So, it's recommended to listen to webhooks to get notified of any objects created
Same to you!