Utopia PaymentsDocs
Events

Retrieve an event

Returns one event, with the object it happened to in `data`. Its id is the value a delivery carries in its `webhook-id` header, so a handler can read the event back from the API before acting on it. Only events belonging to the key's merchant and mode are visible.

GET
/events/{id}

Returns one event, with the object it happened to in data. Its id is the value a delivery carries in its webhook-id header, so a handler can read the event back from the API before acting on it. Only events belonging to the key's merchant and mode are visible.

Authorization

secretKey
AuthorizationBearer <token>

Your secret key: sk_live_… or sk_test_….

In: header

Path Parameters

id*string

The event's id, which starts with evt_. A delivery carries the same value in webhook-id.

Match^evt_[0-9a-f]{32}$

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/events/evt_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c"
{  "object": "event",  "event_id": "evt_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c",  "type": "payment.succeeded",  "livemode": true,  "created_at": "2019-08-24T14:15:22Z",  "data": {}}