List report rows for orders
Retrieve the rows of the Reports export, one per order, paged and newest first. Every row carries the same columns as the CSV the dashboard exports for the same range, statuses and time zone, with amounts as integers in the smallest currency unit and the currency in its own field. The date range is widened to whole days in the requested time zone — or in the workspace's own time zone when none is given — and starts no earlier than the day the workspace was created; a range that ends before then returns no rows. Use 'page' and 'limit' to walk the whole result set; 'count' and 'pages' are returned on every page. Orders keep arriving and changing status, so walk a range that has already closed, and start over if 'count' changes between pages. An unknown time zone or status, an end date before the start date, a date past the year 9999 or a page beyond any possible offset is rejected with 400.
Authorization
Public key In: header
Query Parameters
First day of the range, as a Unix timestamp in seconds or milliseconds, read in 'timezone'. Widened to the start of that day there.
int64 (preprocessed)0 <= value <= 9007199254740991Last day of the range, as a Unix timestamp in seconds or milliseconds, read in 'timezone'. Widened to the end of that day there; must not be before startDate.
int64 (preprocessed)0 <= value <= 9007199254740991IANA time zone the day boundaries are read in (e.g. Europe/Warsaw). Defaults to the workspace's time zone, then UTC. An unknown zone is rejected with 400.
Return only orders in these statuses. Repeat the parameter for several: ?statuses=PAID&statuses=REFUNDED. Omit it for every status.
array (preprocessed)Page number, starting at 1.
int641 <= value <= 90071992547409911Number of items per page. Defaults to 10, maximum 100.
int641 <= value <= 10010Response Body
application/json
application/json
curl -X GET "https://example.com/v0/reports/orders?startDate=1735686000000&endDate=1738364399000"{ "status": "success", "data": { "rows": [ { "object": "report_row", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": "string", "createdAt": 0, "items": "string", "itemsCount": -9007199254740991, "offerIds": "string", "subtotal": -9007199254740991, "tax": -9007199254740991, "discount": -9007199254740991, "discountCode": "string", "total": -9007199254740991, "amountRefunded": -9007199254740991, "fee": -9007199254740991, "storeIncome": -9007199254740991, "currency": "AFN", "currencyDecimals": -9007199254740991, "country": "string", "state": "string", "customerEmail": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "paymentId": "string", "subscriptionId": "string", "processor": "string", "paymentMethod": "string", "source": "string", "type": "string", "status": "PENDING", "disputed": "string" } ], "count": 0, "pages": 0 }}