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 limit items while hasMore is true (very selective filters). Keep going until nextCursor is 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.

Filters per list

Every filter is optional and they combine with AND.

ListFilterslimit
/orders/getstatus (code or label), countryId, packageId, externalReference and iccid (exact), search (contains: order id, ICCID, eSIM id, reference, notes), source (api default, manual, all), from, to1–200, default 50
/transactionskind (ORDER, TOPUP, CREDIT, REFUND, ADJUSTMENT), from, to1–200, default 50
/statementmonth (YYYY-MM)lines per page, default 200, max 1000
/webhook/deliveriesstatus (PENDING, RETRYING, DELIVERED, FAILED), eventdefault 50, max 100
/topup/historystatus (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.