This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Changes the order status to FULFILLED
.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the order to mark as FULFILLED
.
Fulfilled order.
curl -X POST \
'https://www.wixapis.com/restaurants/v3/orders/64783425355/fulfill' \
-H 'Authorization: <AUTH>'
{
"order": {
"id": "64783425355",
"createdDate": "2021-07-22T12:35:51.675Z",
"updatedDate": "2021-07-07T12:37:44.994Z",
"comment": "call when arriving to building",
"currency": "USD",
"status": "FULFILLED",
"lineItems": [
{
"quantity": 3,
"price": "2.00",
"comment": null,
"dishOptions": [
{
"name": "Taco Options",
"minChoices": 0,
"maxChoices": 3,
"type": "EXTRAS",
"availableChoices": [
{
"itemId": "2b5131cd-7872-4ee8-ae40-cb00c6dcaec1",
"price": "1.00"
},
{
"itemId": "d5e1b8f4-f18e-4fba-8ef4-33ad632b6c40",
"price": "1.50"
},
{
"itemId": "0f3fee4d-1b4a-4cfd-9c79-11a52e8e4024",
"price": "1.50"
}
],
"defaultChoices": [],
"selectedChoices": [
{
"quantity": 1,
"price": "1.50",
"comment": null,
"dishOptions": [],
"catalogReference": {
"catalogItemId": "d5e1b8f4-f18e-4fba-8ef4-33ad632b6c40",
"catalogItemName": "Fried Beans",
"catalogItemDescription": null,
"catalogItemMedia": null
}
}
]
}
],
"catalogReference": {
"catalogItemId": "142bddf2-4462-43c3-b048-4fc5afd5e4f8",
"catalogItemName": "Beef Steak Taco",
"catalogItemDescription": "with fresh veggies and Roasted Tomato Salsa",
"catalogItemMedia": "https://static.wixstatic.com/media/cae3dea6ebc54972a96284b90dd97d73.jpg"
}
},
{
"quantity": 6,
"price": "2.00",
"comment": null,
"dishOptions": [],
"catalogReference": {
"catalogItemId": "2f941cff-0f42-4fbc-90a2-7ceed8a8628b",
"catalogItemName": "Chicken Taco",
"catalogItemDescription": "with fresh veggies and Roasted Tomato Salsa",
"catalogItemMedia": "https://static.wixstatic.com/media/11062bA4cabfdc2652413d92990cfac29777cc~mv2.jpg"
}
},
{
"quantity": 5,
"price": "6.00",
"comment": null,
"dishOptions": [
{
"name": "Taco Options",
"minChoices": 0,
"maxChoices": 2147483647,
"type": "EXTRAS",
"availableChoices": [
{
"itemId": "2b5131cd-7872-4ee8-ae40-cb00c6dcaec1",
"price": "1.00"
},
{
"itemId": "d5e1b8f4-f18e-4fba-8ef4-33ad632b6c40",
"price": "1.50"
},
{
"itemId": "0f3fee4d-1b4a-4cfd-9c79-11a52e8e4024",
"price": "1.50"
}
],
"defaultChoices": [],
"selectedChoices": []
}
],
"catalogReference": {
"catalogItemId": "d6682658-c859-470c-9ef1-500969a486c9",
"catalogItemName": "Chicken Burrito",
"catalogItemDescription": "with rice, beans and lettuce",
"catalogItemMedia": "https://static.wixstatic.com/media/11062bB944af5efcf44457b21a274f61a65316~mv2.jpg"
}
}
],
"discounts": [
{
"catalogDiscountId": "bc697347-c180-494b-b68d-bc63ac63a84b",
"appliedAmount": "15.00",
"catalogDiscountType": "OFF_ORDER",
"catalogDiscountName": "Sunday Order Discount"
}
],
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.