> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivery with DoorDash Drive

> Turn on DoorDash delivery for any Crave store, from chat or the API, with no DoorDash account of your own.

Every Crave store can offer delivery through DoorDash Drive. Crave runs every
delivery on Crave's own DoorDash Drive account, so restaurants never sign up with
DoorDash and there are no DoorDash credentials to collect. A store that takes card
payments through Stripe qualifies with no Square account or other point of sale.

## What a store needs

Delivery can be turned on once each of these is in place for the location:

| Requirement | What it means | Set it with |
| - | - | - |
| Pickup address | The full street address couriers collect from | `set_location_address` |
| Store phone | Saved in international E.164 format, such as +1 212 555 0123 | `set_location_phone` |
| Store hours | At least one day of opening hours | `update_store_hours` |
| Stripe | The location's Stripe connection can take card payments | Stripe onboarding |
| Crave routing | Crave routes the store's orders. This starts when its first menu is published with no point of sale connected | `publish_menus` |
| DoorDash access | Crave has DoorDash Drive configured for the environment | Crave does this |

At checkout the storefront collects the customer's name, phone number and
delivery address, and shows the DoorDash delivery fee before payment.

## Set it up from chat

The Crave MCP server's store setup tools walk through delivery. Each setting has
one tool, so nothing can be set two ways.

1. `get_onboarding_status` returns a `delivery` section that lists each
   requirement as met or missing, with a plain next step for anything missing.
2. Chat fixes what is missing: `set_location_address` for the address and
   `set_location_phone` for the phone. The server stores the phone in E.164,
   reading a local number in the location's country.
3. When everything is in place, `delivery.offer` is `true`. Chat asks whether to
   turn on delivery and never turns delivery on without asking.
4. If you agree, chat calls `set_fulfillment_methods` with `delivery` added to the
   methods already on. That selects DoorDash Drive as the provider.

A typical exchange:

> **You:** Set up delivery for my store.
>
> **Assistant:** Delivery still needs the store phone number in international format.
> What number should customers and couriers call?
>
> **You:** (212) 555-0123.
>
> **Assistant:** Saved. Everything DoorDash delivery needs is in place. Do you want
> to turn on delivery now?
>
> **You:** Yes.
>
> **Assistant:** Delivery is on, with DoorDash Drive.

## Set it up through the API

Two Business Manager API routes back the chat tools:

* `GET /api/v1/locations/{locationId}/delivery-readiness` returns each requirement
  as met or missing, whether delivery is on (`enabled`), whether it can be turned
  on now (`canTurnOn`) and the missing requirements (`gaps`).
* `PATCH /api/v1/locations/{locationId}/fulfillment-methods` is the only way to turn
  delivery on. Including `delivery` selects DoorDash Drive. While a requirement is
  missing, it refuses with HTTP 409 and the code `DELIVERY_NOT_READY`, and lists
  each missing requirement with its next step:

```json theme={null}
{
  "success": false,
  "code": "DELIVERY_NOT_READY",
  "message": "Delivery can't be turned on yet. Save the store phone number in international format, such as +1 212 555 0123.",
  "data": {
    "blockerCodes": ["store_phone"],
    "missing": [
      {
        "requirement": "store_phone",
        "message": "The restaurant phone number must be an international phone number for delivery.",
        "nextStep": "Save the store phone number in international format, such as +1 212 555 0123."
      }
    ]
  }
}
```

The delivery settings route (`PATCH /delivery-settings`) keeps the delivery
schedule, fees and zone, and refuses `enabled` and `provider`.

## How delivery is paid for

Crave never loses money on a delivery and never carries delivery risk for a
restaurant:

* **The customer pays the DoorDash quote** as the delivery fee, priced before payment.
* **Crave collects that cost in the same card payment.** The DoorDash fee, its tax and
  the courier tip go to Crave as part of the Stripe application fee. The waiter tip
  stays with the restaurant.
* **Payment comes first.** The card payment is captured, and Crave checks that its fee
  covers the DoorDash cost, before a courier is dispatched. A changed or expired quote
  stops dispatch and refunds the customer.
* **Refunds follow what DoorDash billed.** If DoorDash did not charge for a cancelled
  delivery, Crave returns the DoorDash part of its fee to the merchant. If DoorDash
  charged a cancellation fee, Crave keeps exactly that amount.
* **Costs above the quote are the merchant's.** If DoorDash bills more than the
  quote, for example for extra wait time at the restaurant, the merchant covers it.

## Stores that use a point of sale

A store that sends its orders to Square also needs Square delivery certification.
See [Square POS-native commerce setup](/docs/guides/integrations/square.md) for those
extra steps.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.