#ubi

1 messages · Page 1 of 1 (latest)

burnt etherBOT
marsh parrot
#

Hi there, what kind of event are you talking about? is it a webhook event?

tight drum
#

yeah, the webhooks

#

I am trying to create a Sink from Stripe Webhooks into Nat Jetstream

marsh parrot
#

OK, Stripe will only automatically re-send the webhook if the previous webhook delievery is unsuccessful

tight drum
#

Right, but in case something goes wrong in our side and for whatever reason some deployment gets mess up

marsh parrot
tight drum
#

What would be the uniqueness of a given event? just covering any unknowsn unknowns

marsh parrot
#

The event ID is unique.

tight drum
#

right right, let me read it, but I am not sure which key I should use

#

event ID?

marsh parrot
tight drum
#

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"`
}