List orders
List orders. Requires start, end, and paymentState. Newest first. Use limit and optional cursor for pagination.
GET
/ordersAuthorization
AuthorizationBearer token (API key) · headerrequiredOrganization API key.
Query parameters
startstring<date-time>requiredStart of range (ISO-8601).
endstring<date-time>requiredEnd of range (ISO-8601).
paymentStatestringrequiredPayment status filter.
Allowed:
successfulcancelledtimeoutfailedpendinglimitintegerPage size (1–5000, default 100).
min 1 · max 5000 · default: 100
cursorstringOpaque document id for the next page. Do not parse. Follow `meta.nextCursor` until it is absent.
Responses
200Orders with meta
dataOrder[]requiredShow propertiesHide properties
Array of
OrderidstringId
orderIdstringorderDatestring<date-time>transactionDatestring<date-time>paymentMethodstringpaymentStatestringAllowed:
successfulcancelledtimeoutfailedpendingpaymentBrandstringpriceintegerOrder total in cents
storestringStore id
transactionMessagestringgiftcardIdstringgiftcardFunctionstringdeletedbooleanproductsOrderLine[]Show propertiesHide properties
Array of
OrderLineproductIdstringtitlestringpriceintegerLine total in cents.
netPriceintegerNet amount in cents.
depositintegerDeposit in cents.
costPriceintegerquantitynumberweightnumbersupplierstringcategorystringtaxintegerTax amount in cents.
taxRatenumbertypestringe.g. product, coupon, giftcard.
imageUrlstringoriginalProductIdstringoriginalPriceintegerdiscountnumberundiscountedPriceintegerstorestringprintTicketbooleanmetaListMetarequiredList metadata. `returned` is the length of `data`. Soft-deleted catalog rows are omitted from list results, so `returned` may be less than `limit` even when more active items exist. When `nextCursor` is present, more pages may exist — keep paging until `nextCursor` is absent.
Show propertiesHide properties
totalintegerrequiredWith product search (`q`) without `store`: estimated match count. With `store`: equals `returned` after store visibility filtering. Otherwise equals `returned`. Soft-deleted items are omitted, so a page may be shorter than `limit` even when more active items exist.
returnedintegerrequiredNumber of active items in `data` (soft-deleted rows excluded).
limitintegerrequiredApplied page size.
offsetintegerOnly for product search with `q`.
nextCursorstringOpaque cursor for the next page. Present when more results may exist. Do not parse; pass unchanged as `cursor`. Under soft-delete filtering, `returned < limit` does not mean the list is finished.
400Bad request
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
403Unauthorized
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
Request
curl -X GET "https://dashboard.scango.ch/api/v1/orders?start=2024-01-01T00%3A00%3A00Z&end=2024-01-01T00%3A00%3A00Z&paymentState=successful" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://dashboard.scango.ch/api/v1/orders?start=2024-01-01T00%3A00%3A00Z&end=2024-01-01T00%3A00%3A00Z&paymentState=successful", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"data": [
{
"id": "string",
"orderId": "string",
"orderDate": "2024-01-01T00:00:00Z",
"transactionDate": "2024-01-01T00:00:00Z",
"paymentMethod": "string",
"paymentState": "successful",
"paymentBrand": "string",
"price": 0,
"store": "string",
"transactionMessage": "string",
"giftcardId": "string",
"giftcardFunction": "string",
"deleted": true,
"products": [
{
"productId": "string",
"title": "string",
"price": 0,
"netPrice": 0,
"deposit": 0,
"costPrice": 0,
"quantity": 0,
"weight": 0,
"supplier": "string",
"category": "string",
"tax": 0,
"taxRate": 0,
"type": "string",
"imageUrl": "string",
"originalProductId": "string",
"originalPrice": 0,
"discount": 0,
"undiscountedPrice": 0,
"store": "string",
"printTicket": true
}
]
}
],
"meta": {
"total": 0,
"returned": 0,
"limit": 0,
"offset": 0,
"nextCursor": "string"
}
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}