#ubi
1 messages · Page 1 of 1 (latest)
Hi there, what kind of event are you talking about? is it a webhook event?
yeah, the webhooks
I am trying to create a Sink from Stripe Webhooks into Nat Jetstream
OK, Stripe will only automatically re-send the webhook if the previous webhook delievery is unsuccessful
Right, but in case something goes wrong in our side and for whatever reason some deployment gets mess up
https://stripe.com/docs/webhooks/best-practices#duplicate-events in rare cases you might receive duplicate webhooks, so we advice you to make event processing idempotent.
What would be the uniqueness of a given event? just covering any unknowsn unknowns
The event ID is unique.
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 am using the Golang SDK, I am not sure which ID is that one
oooooh shut! I thought that was the entity ID

so what is the point of the following values
// Information on the API request that instigated the event.
type EventRequest struct {
// ID is the request ID of the request that created an event, if the event
// was created by a request.
// ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
ID string `json:"id"`
// IdempotencyKey is the idempotency key of the request that created an
// event, if the event was created by a request and if an idempotency key
// was specified for that request.
// The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
IdempotencyKey string `json:"idempotency_key"`
}