Skip to main content
Sendora collections use the pagination fields defined by each endpoint. Read the response schema instead of assuming every resource uses the same cursor format.

Offset pagination

Use the returned total, page, and per_page values to decide whether another page exists. Respect endpoint maximums.

Cursor pagination

Pass next_cursor back unchanged. Cursors are opaque: do not decode, sort, or construct them.

Safe collection loops

  • Keep filters and sort parameters unchanged on every page.
  • Store the last cursor before processing records.
  • Deduplicate by public id when consuming pages asynchronously.
  • Handle 429 and 5xx responses without advancing the cursor.