> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ListDeliveryProviders

# Package: onlineOrders

# Namespace: RestaurantsDeliveryDispatcher

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/list-delivery-providers.md

## Permission Scopes:
Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES

## Introduction

Retrieves the delivery providers available to a restaurant and whether each one is ready to take deliveries.

Each provider includes its app ID, name, links to its dashboard and support pages, and its activation status for the business location.
Before you call [Schedule Delivery](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/schedule-delivery.md), check that the provider's `activationStatus` is `ACTIVE`.

Currently supports a single provider, DoorDash.

---

## REST API

### Schema

```
 Method: listDeliveryProviders
 Description: Retrieves the delivery providers available to a restaurant and whether each one is ready to take deliveries.  Each provider includes its app GUID, name, links to its dashboard and support pages, and its activation status for the business location. Before you call [Schedule Delivery](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/schedule-delivery.md), check that the provider's `activationStatus` is `ACTIVE`.  Currently supports a single provider, DoorDash.
 URL: https://www.wixapis.com/restaurants/deliveries/v1/deliveries/delivery-providers
 Method: GET
 Method parameters:
   query param name: businessLocationId | type: businessLocationId | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)). Each provider's activation status is returned for this location.  If you don't specify a location, the status is `NOT_SUPPORTED`.  | validation: format GUID
   param name: cursorPaging | type: CursorPaging    
        - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: ListDeliveryProvidersResponse
  - name: deliveryProviders | type: array<DeliveryProvider> | description: Delivery providers available for the business location.  | validation: maxItems 100
     - name: appId | type: string | description: App GUID of the delivery provider. Pass it as `providerAppDefId` when you call [Schedule Delivery](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/schedule-delivery.md).  | validation: format GUID
     - name: name | type: string | description: Delivery provider name. For example, `DoorDash Drive`.  | validation: minLength 1, maxLength 255
     - name: iconUrl | type: string | description: URL of the delivery provider's icon.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: dashboardUrl | type: string | description: URL of the delivery provider's merchant dashboard, where the restaurant manages its account.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: supportUrl | type: string | description: URL of the delivery provider's support page.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: activationStatus | type: ActivationStatus | description: Whether the delivery provider is ready to take deliveries for the business location.  
         - enum:
         -     NOT_SUPPORTED: The delivery provider can't be used for the business location. For example, the provider's app isn't installed on the site, the location isn't set up with the provider, or the location's address is outside the provider's coverage area or country.
         -     INACTIVE: The delivery provider can serve the business location, but the restaurant's setup isn't complete. For example, online payments or tips aren't set up, manual payments are enabled, or the location is archived. The restaurant completes the setup in the site dashboard. Don't schedule deliveries until the status is `ACTIVE`.
         -     ACTIVE: The delivery provider is set up and can take deliveries.
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: cursors | type: Cursors | description: Offset that was requested.  
        - name: next | type: string | description: Cursor pointing to next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Indicates if there are more results after the current page. If `true`, another page of results can be retrieved. If `false`, this is the last page.  


```

### Examples

### List delivery providers for a business location
Retrieves the delivery providers available to a business location, with each provider's activation status.

```curl
curl -X GET \
'https://www.wixapis.com/restaurants/deliveries/v1/deliveries/delivery-providers?businessLocationId=3c1f5d2a-8b47-4e9a-a6d0-7f2e91b4c58d' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.restaurants.deliveryOrders.listDeliveryProviders(options)
 Description: Retrieves the delivery providers available to a restaurant and whether each one is ready to take deliveries.  Each provider includes its app GUID, name, links to its dashboard and support pages, and its activation status for the business location. Before you call [Schedule Delivery](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/schedule-delivery.md), check that the provider's `activationStatus` is `ACTIVE`.  Currently supports a single provider, DoorDash.
 Method parameters:
   param name: options | type: ListDeliveryProvidersOptions  none  
        - name: businessLocationId | type: string | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)). Each provider's activation status is returned for this location.  If you don't specify a location, the status is `NOT_SUPPORTED`.  | validation: format GUID
        - name: cursorPaging | type: CursorPaging | description: Cursor paging.  
           - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListDeliveryProvidersResponse>
  - name: deliveryProviders | type: array<DeliveryProvider> | description: Delivery providers available for the business location.  | validation: maxItems 100
     - name: appId | type: string | description: App GUID of the delivery provider. Pass it as `providerAppDefId` when you call [Schedule Delivery](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/delivery-orders/schedule-delivery.md).  | validation: format GUID
     - name: name | type: string | description: Delivery provider name. For example, `DoorDash Drive`.  | validation: minLength 1, maxLength 255
     - name: iconUrl | type: string | description: URL of the delivery provider's icon.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: dashboardUrl | type: string | description: URL of the delivery provider's merchant dashboard, where the restaurant manages its account.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: supportUrl | type: string | description: URL of the delivery provider's support page.  | validation: minLength 1, maxLength 1000, format WEB_URL
     - name: activationStatus | type: ActivationStatus | description: Whether the delivery provider is ready to take deliveries for the business location.  
         - enum:
         -     NOT_SUPPORTED: The delivery provider can't be used for the business location. For example, the provider's app isn't installed on the site, the location isn't set up with the provider, or the location's address is outside the provider's coverage area or country.
         -     INACTIVE: The delivery provider can serve the business location, but the restaurant's setup isn't complete. For example, online payments or tips aren't set up, manual payments are enabled, or the location is archived. The restaurant completes the setup in the site dashboard. Don't schedule deliveries until the status is `ACTIVE`.
         -     ACTIVE: The delivery provider is set up and can take deliveries.
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: cursors | type: Cursors | description: Offset that was requested.  
        - name: next | type: string | description: Cursor pointing to next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Indicates if there are more results after the current page. If `true`, another page of results can be retrieved. If `false`, this is the last page.  


```

### Examples

### List delivery providers for a business location
Retrieves the delivery providers available to a business location, with each provider's activation status.

```javascript
import { deliveryOrders } from "@wix/restaurants";

async function listDeliveryProviders() {
  const response = await deliveryOrders.listDeliveryProviders({
    businessLocationId: "3c1f5d2a-8b47-4e9a-a6d0-7f2e91b4c58d",
  });
}

/* Promise resolves to:
 * {
 *   "deliveryProviders": [
 *     {
 *       "appId": "f16eb5e7-b8c3-46bf-adff-9fb154325c60",
 *       "name": "DoorDash Drive",
 *       "iconUrl": "https://static.wixstatic.com/media/0d2c6f_5906f30fbd234df6bb42e3873d697253~mv2.png",
 *       "dashboardUrl": "https://merchant-portal.doordash.com/merchant/",
 *       "supportUrl": "https://help.doordash.com/merchants/s/merchant-support",
 *       "activationStatus": "ACTIVE"
 *     }
 *   ]
 * }
 */

```

### listDeliveryProviders (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { deliveryOrders } from '@wix/restaurants';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { deliveryOrders },
  // Include the auth strategy and host as relevant
});


async function listDeliveryProviders(options) {
  const response = await myWixClient.deliveryOrders.listDeliveryProviders(options);
};
```

---