GET
/commerce/{accountId}/baskets/{basketId}
curl \
--request GET 'https://api.staging.deliverect.com/commerce/{accountId}/baskets/{basketId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "6643782d0c1914c93a846834",
"created": "2024-05-14T14:41:49.738000+00:00",
"updated": "2024-05-14T14:41:49.754000+00:00",
"deleted": false,
"etag": "f4c8f20eeb23206c2bc8cf66c2843a6efaa3eaaf",
"accountId": "65c35d109a19b819b7cf78d8",
"storeId": "65eee6a9984a1bc1b9637c59",
"channelLinkId": "65eee6a9984a1bc1b9637c59",
"channelOrderId": null,
"channelOrderDisplayId": null,
"currency": "EUR",
"taxExclusive": false,
"status": "open",
"items": [
{
"menuId": "62d7f77f64c95193cc29aa91",
"plu": "STK-01",
"name": "Delicious Steak Frites",
"quantity": 2,
"note": "extra salt please",
"price": 1500,
"gross": 3800,
"taxes": [],
"net": 3800,
"subItems": [
{
"customizationPlu": "MOD-01",
"plu": "DRNK-01",
"name": "Coca Cola",
"quantity": 1,
"price": 400,
"subItems": []
}
],
"discounts": [],
"discountTotal": 0
},
{
"menuId": "62d7f77f64c95193cc29aa91",
"plu": "STK-01",
"name": "Delicious Steak Frites",
"quantity": 1,
"price": 1500,
"gross": 1500,
"taxes": [],
"net": 1500,
"subItems": [],
"discounts": [],
"discountTotal": 0
}
],
"payment": {
"tips": [],
"discountsTotal": 0,
"chargesTotal": 0,
"taxTotal": 0,
"tipTotal": 0,
"total": 5300
},
"customer": {
"name": "John Doe",
"companyName": "ACME",
"phoneNumber": "+3211223344",
"email": "john.doe@acme.com",
"externalId": "crm-id-1234"
},
"fulfillment": {
"type": "pickup"
},
"charges": {
"taxTotal": 0,
"netTotal": 0,
"grossTotal": 0,
"serviceCharge": {
"type": "fixed",
"value": 0,
"taxRate": 0,
"gross": 0
},
"bagFee": {
"type": "fixed",
"value": 0,
"taxRate": 0,
"gross": 0
},
"deliveryFee": {
"type": "fixed",
"value": 0,
"taxRate": 0,
"gross": 0
}
},
"taxes": [],
"discounts": []
}
Response examples (400)
{}