Skip to content

Public API v2: Paging

Lists are newest first and paged by cursor; the exception is the item search. There is no total count and no page number.

Query Notes
limit 1–250, default 50.
cursor next_cursor or prev_cursor of the last page; leave out for the first page.
  1. Call GET …/rules?limit=100 with your filters.
  2. While meta.pagination.next_cursor is not null, call again with cursor=<next_cursor>, or follow meta.pagination.links.next.
  3. Keep the same filters on every page; a cursor used with other filters is refused. Changing limit is fine.

POST /price-list/items/search takes limit and cursor in the JSON body, not in the query string.

  • Items come ordered by product_id as text, not newest first.
  • meta.pagination holds limit and next_cursor only. There is no prev_cursor and no links.
  • Send the same product_ids, variant_ids and rule_ids with each cursor; a cursor used with other ids is refused with 422. Changing limit is fine.
  • A search with no match answers 200 with an empty data and next_cursor null.