POST

Fulfill Order


Developer Preview

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.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings Services and Settings
Manage Orders
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/v3/orders/{id}/fulfill

Path Params
idstringRequired

ID of the order to mark as FULFILLED.

Response Object
orderOrder

Fulfilled order.

Fulfill Order
Request
cURL
curl -X POST \ 'https://www.wixapis.com/restaurants/v3/orders/64783425355/fulfill' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "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" } ],
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?