This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new operation.
You can only call this method when authenticated as a Wix app or Wix user identity.
Operation to create.
Created operation.
curl -X POST https://www.wixapis.com/restaurants-operations/v1/operations \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-raw '{
"operation": {
"serviceFeeRuleIds": [],
"fulfillmentIds": [
"19c8f17a-b9fc-4df0-a0a9-03d44f059496"
],
"name": "Some operation name",
"enabled": true,
"orderScheduling": {
"type": "ASAP",
"asapOptions": {
"preparationTime": {
"type": "MAX_TIME",
"maxTimeOptions": {
"timeUnit": "MINUTES",
"duration": 30
}
},
"asapFutureHandlingType": "BUSINESS_DAYS_AHEAD_HANDLING",
"businessDaysAheadHandlingOptions": {
"days_count": 0
}
}
},
"profileId": "811f9ce8-67c6-471b-8226-6d593e7ef79c",
"default": false,
"onlineOrderingStatus": "ENABLED"
}
}'
{
"operation": {
"id": "4aea505e-ac49-4f72-b4f1-b07c064a20cd",
"revision": "1",
"createdDate": "2023-12-10T07:06:39.306Z",
"updatedDate": "2023-12-10T07:06:39.306Z",
"name": "Some operation name",
"enabled": true,
"orderScheduling": {
"type": "ASAP",
"asapOptions": {
"preparationTime": {
"type": "MAX_TIME",
"maxTimeOptions": {
"timeUnit": "MINUTES",
"duration": 30
}
},
"asapFutureHandlingType": "BUSINESS_DAYS_AHEAD_HANDLING",
"businessDaysAheadHandlingOptions": {
"daysCount": 0
}
}
},
"profileId": "811f9ce8-67c6-471b-8226-6d593e7ef79c",
"default": false,
"fulfillmentIds": ["19c8f17a-b9fc-4df0-a0a9-03d44f059496"],
"serviceFeeRuleIds": [],
"onlineOrderingStatus": "ENABLED"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.