# Delivery order on the way WhatsApp template

> Tell customers their food order left the kitchen with a live ETA. Shipping update WhatsApp template for restaurant delivery.

- Category: Utility
- Industry: Restaurants
- Use case: Shipping update
- Language: en_US
- Approval rate: 94%
- Page: https://template-builder.dev/whatsapp-template/restaurants-delivery-order-on-the-way
- JSON: https://template-builder.dev/whatsapp-template/restaurants-delivery-order-on-the-way.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoicmVzdGF1cmFudHNfZGVsaXZlcnlfb3JkZXJfb25fdGhlX3dheSIsImxhbmd1YWdlIjoiZW5fVVMiLCJjYXRlZ29yeSI6IlVUSUxJVFkiLCJib2R5Ijp7InRleHQiOiJIaSB7e2ZpcnN0X25hbWV9fSwgeW91ciBvcmRlciAqI3t7b3JkZXJfaWR9fSogZnJvbSB7e3Jlc3RhdXJhbnR9fSBpcyBvbiBpdHMgd2F5IGFuZCBzaG91bGQgYXJyaXZlIGluIGFib3V0IHt7ZXRhfX0gbWludXRlcy4ifSwiYnV0dG9ucyI6W3sidHlwZSI6IlVSTCIsInRleHQiOiJUcmFjayBteSBvcmRlciIsInVybCI6Imh0dHBzOi8vbm9ydGh3aW5kLmV4YW1wbGUuY29tL3RyYWNrL3t7b3JkZXJfaWR9fSJ9XSwidmFyaWFibGVzIjp7ImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6Ik1hcmlhIn0sIm9yZGVyX2lkIjp7ImV4YW1wbGUiOiI0NTEyIn0sInJlc3RhdXJhbnQiOnsiZXhhbXBsZSI6Ik5vcnRod2luZCBCaXN0cm8ifSwiZXRhIjp7ImV4YW1wbGUiOiIyNSJ9fX0

## How to get it approved

Keep the ETA in minutes and the order number visible. Do not add upsells, which would reclassify it.

## Message text

Hi {{first_name}}, your order *#{{order_id}}* from {{restaurant}} is on its way and should arrive in about {{eta}} minutes.

## Variables

- `{{first_name}}`: Maria
- `{{order_id}}`: 4512
- `{{restaurant}}`: Northwind Bistro
- `{{eta}}`: 25

## Template JSON

```json
{
  "name": "restaurants_delivery_order_on_the_way",
  "language": "en_US",
  "category": "UTILITY",
  "body": {
    "text": "Hi {{first_name}}, your order *#{{order_id}}* from {{restaurant}} is on its way and should arrive in about {{eta}} minutes."
  },
  "buttons": [
    {
      "type": "URL",
      "text": "Track my order",
      "url": "https://northwind.example.com/track/{{order_id}}"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "order_id": {
      "example": "4512"
    },
    "restaurant": {
      "example": "Northwind Bistro"
    },
    "eta": {
      "example": "25"
    }
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "restaurants_delivery_order_on_the_way",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, your order *#{{order_id}}* from {{restaurant}} is on its way and should arrive in about {{eta}} minutes.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "order_id",
            "example": "4512"
          },
          {
            "param_name": "restaurant",
            "example": "Northwind Bistro"
          },
          {
            "param_name": "eta",
            "example": "25"
          }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Track my order",
          "url": "https://northwind.example.com/track/{{1}}",
          "example": [
            "https://northwind.example.com/track/4512"
          ]
        }
      ]
    }
  ]
}'
```
