Retrieve an event
get
https://api.cartirra.com/v1/events/{id}Retrieve an event and its webhook deliveries.
- Authentication
- Secret key (
Authorization: Bearer sk_…). How keys work - Permission
developers:read
Path parameters
idstringrequired
Responses
200OKEventDetailResponse
idstringrequiredtypestringrequiredstatusstringnullablerequiredThe latest delivery's status; null when no endpoint was set
http_statusnumbernullablerequiredWhat your endpoint answered on the latest delivery's last attempt; null before any answer
duration_msnumbernullablerequiredHow long that attempt took, in milliseconds
order_idstringnullablerequiredThe order the event is about (order, payment and refund events)
created_atstringrequiredpayloadobjectrequiredThe exact body delivered to your webhook endpoint:
{ id, object, type, livemode, created, data: { object } }deliveriesarray of EventDeliveryResponserequired
Errors
Every error has the same body: { "error": { "code", "message", "details"?, "request_id" } }. See Errors for every code.
- 400The request is malformed or a field is invalid (`VALIDATION_FAILED`).
- 401Missing, malformed, revoked or expired API key (`UNAUTHENTICATED`), or a key this route does not accept, such as a public key (`CREDENTIAL_NOT_ACCEPTED`).
- 403The key may not do this (`PERMISSION_DENIED`, `LIVE_MODE_NOT_ENABLED`, `PLAN_LIMIT_REACHED`, …).
- 404No such resource in this business and mode (`NOT_FOUND`).
- 429Too many requests for this key (`RATE_LIMITED`); wait for `Retry-After` seconds.
- 500Something went wrong on our side (`INTERNAL`). Safe to retry with the same `Idempotency-Key`.