Get order by ID
Get an order by id, including line items.
GET
/orders/{orderId}Authorization
AuthorizationBearer token (API key) · headerrequiredOrganization API key.
Path parameters
orderIdstringrequiredResponses
200Order details
dataOrderrequiredOrder. Dates are ISO-8601. Money fields are integer cents.
Show propertiesHide properties
idstringId
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.
imageUrlstringoriginalProductIdstringoriginalPriceintegerdiscountnumberundiscountedPriceintegerstorestringprintTicketboolean403Unauthorized
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
404Not found
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
Request
curl -X GET "https://dashboard.scango.ch/api/v1/orders/string" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://dashboard.scango.ch/api/v1/orders/string", {
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
}
]
}
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}