Lists, pagination, and export
List APIs use cursor pagination and share filters for page size and creation time; some support CSV export.
Key points
- limit accepts 1–100 and defaults to 20. Pass the last object's ID as starting_after for the next page.
- ending_before navigates backward and cannot be combined with starting_after. created[gte] and created[lte] accept ISO-8601 or Unix seconds.
- Set format=csv on supported endpoints for reconciliation exports. Follow cursors until no further page remains.
Example
json
{
"code": 200,
"message": "success",
"request_id": "req_9f2c1a7b4e8d0356c1ab77de90f4b215",
"data": {
"object": "list",
"resource": "order",
"has_more": true,
"url": "/v1/orders",
"data": [
{ "object": "order", "trade_no": "TRD_A1B2...", "status": "paid" },
{ "object": "order", "trade_no": "TRD_C3D4...", "status": "pending" }
]
}
}