Pagination and caching
Pagination
Section titled “Pagination”Product, service, review and customer order lists are paged with a cursor:
GET /v1/products?limit=24{ "data": { "items": [], "next_cursor": "eyJ…" } }limitdefaults to 24, with a maximum of 100.- Pass
next_cursorback ascursorto get the next page. Whennext_cursorisnull, there are no more pages. - Treat cursors as opaque. A malformed or out-of-date cursor gets
400 invalid_cursor; start again from the first page.
Some lists aren’t paged:
GET /collectionsreturns a plain array of collections.- Customer documents and deliverables return at most 100 items, newest first, as
{ items }.
Caching
Section titled “Caching”Catalog and shop reads send:
ETag: W/"…"Cache-Control: private, max-age=60Vary: Origin, AuthorizationSend the ETag back in If-None-Match to get 304 Not Modified when nothing has changed.
These are never cached and send Cache-Control: no-store:
- availability;
- contact, checkouts and orders;
- every customer route;
- every error.
Don’t cache them in your own server or CDN either.