Export inventory stock (cursor pagination)
Bulk-export stock for all active products (status > 0) using cursor-based
keyset pagination. Designed for full inventory syncs and reporting pipelines
that need every product’s warehouse, location, and lot-level stock in one pass.
Each row aggregates warehouse-level quantities and a per-location breakdown, with per-lot detail for lot-tracked products and FIFO landed unit cost at both the product and warehouse level.
Pagination
| Parameter | Description |
|---|---|
cursor | Opaque token from next_cursor on the previous response. Omit on the first page. |
limit | Max products per page. Default 100, maximum 1000. |
Pages are ordered ascending by product id (keyset). The run is anchored to a
fixed cutoff captured on the first request, so pages stay stable while records
change mid-run.
Example flow
# 1. Start a run
GET /inventory/stocks/export?limit=1000
# 2. Continue while has_more is true
GET /inventory/stocks/export?cursor=<next_cursor>
# 3. Stop when has_more is false
Notes
- The cursor is cryptographically signed; do not modify it.
- Only
cursorandlimitare accepted. Any other query parameter returns a 422. Some deployments rewrite toindex.php?q=$uri&$args; the server ignores theqquery parameter during validation.
Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Query Parameters
Signed continuation token from a previous response's next_cursor.
Omit on the first page.
Maximum number of products to return per page.
1 <= x <= 1000