Update Basket - Fulfillment Details Run in API Explorer
Ask AI
PATCH
/commerce/{accountId}/baskets/{basketId}/fulfillment
curl \
--request PATCH 'https://api.staging.deliverect.com/commerce/{accountId}/baskets/{basketId}/fulfillment' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"RAW_BODY":{"type":"pickup"}}'
Request examples
{
"RAW_BODY": {
"type": "pickup"
}
}
Response examples (200)
{
"id": "63********************a7",
"created": "2024-05-14T14:41:49.738000+00:00",
"updated": "2024-05-14T14:41:49.754000+00:00",
"deleted": false,
"etag": "f4c8f20eeb23206c2bc8cf66c2843a6efaa3eaaf",
"accountId": "63********************g6",
"storeId": "63********************b3",
"channelLinkId": "63********************b3",
"channelOrderId": null,
"channelOrderDisplayId": null,
"currency": "EUR",
"taxExclusive": false,
"status": "open",
"items": [
{
"menuId": "63********************42",
"plu": "STK-01",
"name": "Delicious Steak Frites",
"quantity": 2,
"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": "63********************42",
"plu": "P-BURG-CHK",
"name": "Chicken Burger",
"quantity": 1,
"price": 1500,
"gross": 1500,
"taxes": [],
"net": 1500,
"subItems": [],
"discounts": [],
"discountTotal": 0
}
],
"payment": {
"tips": [],
"discountsTotal": 0,
"taxTotal": 0,
"tipTotal": 0,
"total": 5300
},
"customer": null,
"fulfillment": {
"type": "eatIn",
"spot": "TABLE-1"
},
"taxes": [],
"discounts": []
}
Response examples (400)
{}