Get started
Pagination & filters
Walk long lists with an opaque cursor and narrow them with filters.
The cursor model
Lists return a page of items in data and a pagination object. To get the next page, send the same request again with cursor set to pagination.nextCursor. When nextCursor is null, you have the last page.
- Cursors are opaque: pass them back as they are, never build or edit one (
INVALID_CURSOR). - Keep the same filters while you page. Changed a filter? Start again without a cursor.
- A page can hold fewer than
limititems whilehasMoreis true (very selective filters). Keep going untilnextCursoris null; never stop on a short page. - Items are newest first.
Fetching every page
The loop is the same for every list: request, read data, follow nextCursor until it's null. Use the largest limit the list allows to make fewer calls, and stay under the rate limits.
Syncing everything into your database every night? Filter by
from / to (yesterday) instead of walking the whole history, and use webhooks for changes during the day.Filters per list
Every filter is optional and they combine with AND.
| List | Filters | limit |
|---|---|---|
/orders/get | status (code or label), countryId, packageId, externalReference and iccid (exact), search (contains: order id, ICCID, eSIM id, reference, notes), source (api default, manual, all), from, to | 1–200, default 50 |
/transactions | kind (ORDER, TOPUP, CREDIT, REFUND, ADJUSTMENT), from, to | 1–200, default 50 |
/statement | month (YYYY-MM) | lines per page, default 200, max 1000 |
/webhook/deliveries | status (PENDING, RETRYING, DELIVERED, FAILED), event | default 50, max 100 |
/topup/history | status (PENDING, CAPTURED, EXPIRED, CANCELED, AMOUNT_MISMATCH) | default 50, max 200 |
from / to are calendar days in Riyadh time, inclusive, at most 366 days apart. The CSV exports take the same filters as their lists.