Conventions
How every v1 call pages, retries, updates safely, limits its rate and is versioned.
Requests and answers
Bodies are JSON: send Content-Type: application/json on every write. A body is at most 256 KiB,
and a field a call does not take is refused with
FIELD_UNKNOWN rather than ignored. Amounts are integers in the
currency's minor unit, beside an ISO 4217 currency. Times are RFC 3339 in UTC.
Most writes are a POST or PATCH on the resource itself, and actions are a POST on a named
path below it, such as POST /v1/subscriptions/{subscriptionId}/cancel.
Lists
A list call answers one page at a time:
{ "data": [ ... ], "nextCursor": "b3JkXzAx..." }| Query field | |
|---|---|
limit | Rows per page, 1 to 100. Default 20. |
cursor | The nextCursor of the previous page, unchanged. |
Pass nextCursor back as cursor, with the same filters, until it is null. A cursor from
another list or other filters is refused with CURSOR_INVALID.
Retries and Idempotency-Key
Send an Idempotency-Key header (1 to 255 printable characters; a UUID works) on a write, and
send the same key when you retry it. A retry under the same key gets the stored answer instead of
running twice, and carries an Idempotent-Replayed header.
- Every create, and every call that charges or ends something, requires a key: the reference page marks the header as required.
- Other writes accept one. Reads take none.
- The same key with a different request is refused with
IDEMPOTENCY_KEY_REUSED; a key whose first request has not finished yet answersIDEMPOTENCY_IN_PROGRESS.
An error with "retryable": true can succeed later: retry it after a short wait, with the same
key.
Safe updates
An update can carry expectedUpdatedAt, the updatedAt of the copy you edited. If the record
changed since, the update is refused with STALE_WRITE and the error's
current holds the record as it is now. Re-apply your change to it and send its updatedAt.
Rate limits
Every answer carries the window it counted against:
| Header | |
|---|---|
RateLimit-Limit | Requests the window allows. |
RateLimit-Remaining | What is left of it. |
RateLimit-Reset | Seconds until it opens again. |
A spent window answers 429 RATE_LIMITED with Retry-After in
seconds. Wait that long, then retry; on a write, with the same Idempotency-Key.
Versions
API v1 is versioned by date. A key is pinned to the newest version when it is created, and keeps
it, so a newer version never changes the answers that key gets. The current version is
2026-10-28. Read answers in a way that ignores fields you do not know.
Webhook payloads have versions of their own, set per endpoint; see Receiving webhooks.
Last updated