Get an order V1
Get an order based on the id provided.
GET
/v1/orders/{id}
authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
Path Parameters
idstring
Order id path parameter
Format
uuid
Response Body
curl -X GET "https://api.pragma-project.dev/v1/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
"id": "b3b4c5d6-e7f8-a9b0-c1d2-e3f4a5b6c7d8",
"deviceId": "a2049f39-026a-4c54-a411-8a1d9271804b",
"createdAt": {},
"updatedAt": {},
"locationId": "d6f5e4d3-c2b1-42a0-9c68-31a3b4d5e6f7",
"reportId": "9cad608b-48cc-40ed-ae8b-032ec54a0472",
"openedAt": {},
"closedAt": {},
"guests": 2,
"orderPlace": "Terrasse",
"orderNumber": "10",
"operatorId": "70c3d28a-1b3a-43f0-aa4f-5b78a932f7dc",
"operatorName": "Jane Doe",
"total": 20,
"totalTax": 1.82,
"totalDiscount": 5,
"customerId": "-Mkw59Hj9X7iGwz0Y866",
"isCanceled": false,
"isTransferred": false,
"transferReason": null,
"cancelReason": null,
"items": [
{
"description": "Coca Cola",
"quantity": 5,
"weight": null,
"unitPrice": 4,
"total": 20,
"category": "Eaux & sodas",
"subCategory": "Sodas",
"isCanceled": false,
"cancelReason": null,
"tier": "Normal",
"isTransferred": false,
"transferReason": null,
"discountsApplied": [],
"modifiers": [
{
"modifierGroupId": "a79a00cd-ed01-4a59-9025-d3e738316bd5",
"modifierId": "a3b4c5d6-e7f8-a9b0-c1d2-e3f4a5b6c7d8",
"name": "Supplément glaçons"
}
],
"stockImpactIndicator": true,
"tax": {
"taxName": "TVA 10%",
"taxRate": 0.1,
"taxAmount": 1.82,
"taxCatalogId": "a954f58c-8864-45cc-ada2-d7cc8476aade"
},
"itemCatalogId": "d7af5760-3e89-4a3d-a82a-ca802dadd5f7",
"isLoss": false,
"lossReason": null
},
{
"description": "Café Liegeois",
"quantity": 1,
"weight": null,
"unitPrice": 5,
"total": 0,
"category": "Boissons chaudes",
"subCategory": "Boissons chaudes",
"isCanceled": false,
"tier": "Normal",
"cancelReason": null,
"isTransferred": false,
"transferReason": null,
"discountsApplied": [
{
"discountName": "Offert client",
"discountValue": 5,
"discountCatalogId": "c8352cae-7dff-4ba6-9559-2d4b11be1403"
}
],
"tax": {
"taxName": "TVA 10%",
"taxAmount": 0,
"taxRate": 0.1,
"taxCatalogId": "a954f58c-8864-45cc-ada2-d7cc8476aade"
},
"itemCatalogId": "d7af5760-3e89-4a3d-a82a-ca802dadd5f7",
"isLoss": false,
"lossReason": null
}
],
"menus": [],
"payments": [
{
"paymentAmount": 20,
"paymentName": "Espèces",
"paymentCatalogId": "758941b8-351b-4506-bc7e-9b488c897c44"
}
],
"tips": null,
"channel": "unknown",
"serviceType": "delivery",
"isTraining": false,
"source": "unknown",
"externalLocationId": null,
"externalOrderId": null
}