CartirraAPI
Get API keys

List events

gethttps://api.cartirra.com/v1/events

List events, newest first.

Authentication
Secret key (Authorization: Bearer sk_…). How keys work
Permission
developers:read

Query parameters

  • limitinteger

    Default 25. ≥ 1 · ≤ 100.

  • cursorstring (uuid)

    next_cursor from the previous page

  • typestring

    One of order.created, order.updated, payment.succeeded, payment.failed, payment.expired, refund.succeeded, refund.failed, payout.paid, payout.failed, webhook.test, customer.created, customer.updated, customer.consent_revoked, bill.opened, bill.updated, bill.payment_received, bill.closed, bill.voided, order.issue_reported, order.issue_updated, warranty.created, warranty.updated, warranty.voided, order.accepted, order.rejected, loyalty.reward_redeemed, loyalty.tier_changed

  • statusstring

    The latest delivery's status

    One of pending, delivered, retrying, failed

  • qstring

    Event type fragment, an evt_… id, or the HTTP status your endpoint answered ("500")

  • fromstring (date-time)

    Created at or after

  • tostring (date-time)

    Created before

Responses

200One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.object
  • dataarray of EventResponserequired
  • next_cursorstringnullablerequired

    Pass as cursor to get the next page

  • totalintegerrequired

    Rows matching the filters across every page

    ≥ 0.

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`, …).
  • 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`.