Bestellung per ID abrufen
Bestellung anhand der ID abrufen, inklusive Positionen.
GET
/orders/{orderId}Autorisierung
AutorisierungBearer-Token (API key) · headererforderlichOrganisations-API-Key.
Pfadparameter
orderIdstringerforderlichAntworten
200Bestelldetails
dataOrdererforderlichBestellung. Daten sind ISO-8601. Geldfelder sind Ganzzahlen in Rappen.
Eigenschaften anzeigenEigenschaften ausblenden
idstringID
orderIdstringorderDatestring<date-time>transactionDatestring<date-time>paymentMethodstringpaymentStatestringErlaubt:
successfulcancelledtimeoutfailedpendingpaymentBrandstringpriceintegerBestelltotal in Rappen
storestringStore-ID
transactionMessagestringgiftcardIdstringgiftcardFunctionstringdeletedbooleanproductsOrderLine[]Eigenschaften anzeigenEigenschaften ausblenden
Array of
OrderLineproductIdstringtitlestringpriceintegerPositionstotal in Rappen.
netPriceintegerNettobetrag in Rappen.
depositintegerDepot in Rappen.
costPriceintegerquantitynumberweightnumbersupplierstringcategorystringtaxintegerSteuerbetrag in Rappen.
taxRatenumbertypestringz. B. product, coupon, giftcard.
imageUrlstringoriginalProductIdstringoriginalPriceintegerdiscountnumberundiscountedPriceintegerstorestringprintTicketbooleanflagsanyVorhanden bei Abruf per ID.
resolutionanyOptional; vorhanden bei Abruf per ID.
403Nicht autorisiert
statusCodeintegererforderlichHTTP-Statuscode
messagestringerforderlichLesbare Fehlermeldung
timestampstring<date-time>erforderlichpathstringerforderlichRequest-Pfad
404Not found
statusCodeintegererforderlichHTTP-Statuscode
messagestringerforderlichLesbare Fehlermeldung
timestampstring<date-time>erforderlichpathstringerforderlichRequest-Pfad
Anfrage
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: {
"Autorisierung": "Bearer YOUR_TOKEN"
}
});Antwort
{
"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
}
],
"flags": "string",
"resolution": "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"
}