POST

Schedule Delivery


Developer Preview

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:

  • The order is a delivery order whose fulfillment method uses the delivery provider.
  • The provider is connected and active for the order's business location. To check, call List Delivery Providers.
  • The pickup or drop-off time is in the future.

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.
Authentication

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

Permission Scopes
Manage Orders
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/deliveries/v1/deliveries/schedule-delivery

Errors
400Invalid Argument

There is 1 error with this status code.

409Already Exists

There is 1 error with this status code.

428Failed Precondition

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?