# Order confirmation message WhatsApp template

> Confirm a new order on WhatsApp with order number, total and a link to the receipt. Utility template for online stores. Free to copy and edit.

- Category: Utility
- Industry: E-commerce
- Use case: Order confirmation
- Language: en_US
- Approval rate: 96%
- Page: https://template-builder.dev/whatsapp-template/ecommerce-order-confirmation
- JSON: https://template-builder.dev/whatsapp-template/ecommerce-order-confirmation.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZWNvbW1lcmNlX29yZGVyX2NvbmZpcm1hdGlvbiIsImxhbmd1YWdlIjoiZW5fVVMiLCJjYXRlZ29yeSI6IlVUSUxJVFkiLCJoZWFkZXIiOnsidHlwZSI6IlRFWFQiLCJ0ZXh0IjoiT3JkZXIgI3t7b3JkZXJfaWR9fSBjb25maXJtZWQifSwiYm9keSI6eyJ0ZXh0IjoiVGhhbmtzIGZvciB5b3VyIG9yZGVyLCB7e2ZpcnN0X25hbWV9fSEgV2UgcmVjZWl2ZWQgb3JkZXIgKiN7e29yZGVyX2lkfX0qIHRvdGFsaW5nIHt7YW1vdW50fX0gYW5kIHdlJ3JlIGdldHRpbmcgaXQgcmVhZHkgbm93LiJ9LCJmb290ZXIiOnsidGV4dCI6IkFjbWUgU3RvcmUifSwiYnV0dG9ucyI6W3sidHlwZSI6IlVSTCIsInRleHQiOiJWaWV3IHJlY2VpcHQiLCJ1cmwiOiJodHRwczovL2FjbWUuY29tL29yZGVycy97e29yZGVyX2lkfX0ifV0sInZhcmlhYmxlcyI6eyJvcmRlcl9pZCI6eyJleGFtcGxlIjoiNDUxMiJ9LCJmaXJzdF9uYW1lIjp7ImV4YW1wbGUiOiJNYXJpYSJ9LCJhbW91bnQiOnsiZXhhbXBsZSI6IiQ0OS45MCJ9fX0

## How to get it approved

Keep it strictly transactional; adding a coupon or cross-sell flips Meta's classifier to marketing. Trigger it right after payment clears.

## Message text

Order #{{order_id}} confirmed
Thanks for your order, {{first_name}}! We received order *#{{order_id}}* totaling {{amount}} and we're getting it ready now.
Acme Store

## Variables

- `{{order_id}}`: 4512
- `{{first_name}}`: Maria
- `{{amount}}`: $49.90

## Template JSON

```json
{
  "name": "ecommerce_order_confirmation",
  "language": "en_US",
  "category": "UTILITY",
  "header": {
    "type": "TEXT",
    "text": "Order #{{order_id}} confirmed"
  },
  "body": {
    "text": "Thanks for your order, {{first_name}}! We received order *#{{order_id}}* totaling {{amount}} and we're getting it ready now."
  },
  "footer": {
    "text": "Acme Store"
  },
  "buttons": [
    {
      "type": "URL",
      "text": "View receipt",
      "url": "https://acme.com/orders/{{order_id}}"
    }
  ],
  "variables": {
    "order_id": {
      "example": "4512"
    },
    "first_name": {
      "example": "Maria"
    },
    "amount": {
      "example": "$49.90"
    }
  }
}
```

## 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": "ecommerce_order_confirmation",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Order #{{order_id}} confirmed",
      "example": {
        "header_text_named_params": [
          {
            "param_name": "order_id",
            "example": "4512"
          }
        ]
      }
    },
    {
      "type": "BODY",
      "text": "Thanks for your order, {{first_name}}! We received order *#{{order_id}}* totaling {{amount}} and we'\''re getting it ready now.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "order_id",
            "example": "4512"
          },
          {
            "param_name": "amount",
            "example": "$49.90"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Acme Store"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "View receipt",
          "url": "https://acme.com/orders/{{1}}",
          "example": [
            "https://acme.com/orders/4512"
          ]
        }
      ]
    }
  ]
}'
```
