This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Schedules a courier delivery for a Wix Restaurants order with a delivery provider.
The delivery is built from the order: the pickup location is the order's business location, the drop-off address is the order's shipping address, and the order's delivery instructions are passed to the courier as pickup instructions. If the order has no instructions, the courier pickup instructions set on the restaurant's delivery fulfillment method may be used instead. Specify either a pickup time or a drop-off time, and the provider estimates the other.
Before you call this method, make sure that:
Currently supports a single provider, DoorDash.
When the delivery is scheduled, the Delivery Created event is triggered.
The method returns these errors in addition to the ones listed below:
INVALID_ARGUMENT when providerAppDefId isn't a supported delivery provider, or when the pickup or drop-off time has passed.NOT_FOUND when the order doesn't exist.You can only call this method when authenticated as a Wix app or Wix user identity.
There is 1 error with this status code.
There is 1 error with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.