# Ticket purchase confirmation WhatsApp template

> Confirm ticket purchase with event name, date and ticket link. Order confirmation WhatsApp template for events and venues.

- Category: Utility
- Industry: Events
- Use case: Order confirmation
- Language: en_US
- Approval rate: 80%
- Page: https://template-builder.dev/whatsapp-template/events-ticket-confirmation
- JSON: https://template-builder.dev/whatsapp-template/events-ticket-confirmation.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZXZlbnRzX3RpY2tldF9jb25maXJtYXRpb24iLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJVVElMSVRZIiwiaGVhZGVyIjp7InR5cGUiOiJURVhUIiwidGV4dCI6IlRpY2tldHMgY29uZmlybWVkIn0sImJvZHkiOnsidGV4dCI6IllvdSdyZSBnb2luZywge3tmaXJzdF9uYW1lfX0hIFdlIGNvbmZpcm1lZCB7e3RpY2tldF9jb3VudH19IHRpY2tldHMgZm9yICp7e2V2ZW50X25hbWV9fSogYXQge3t2ZW51ZX19IG9uIHt7ZGF0ZX19LiBXZSBjYW4ndCB3YWl0IHRvIHNlZSB5b3UsIGFuZCB3ZSdsbCBzZW5kIGEgcmVtaW5kZXIgYmVmb3JlIHRoZSBkYXkuIn0sImJ1dHRvbnMiOlt7InR5cGUiOiJVUkwiLCJ0ZXh0IjoiVmlldyB0aWNrZXRzIiwidXJsIjoiaHR0cHM6Ly9hY21lZXZlbnRzLmV4YW1wbGUuY29tL3RpY2tldHMve3tvcmRlcl9pZH19In1dLCJ2YXJpYWJsZXMiOnsiZmlyc3RfbmFtZSI6eyJleGFtcGxlIjoiTWFyaWEifSwidGlja2V0X2NvdW50Ijp7ImV4YW1wbGUiOiIyIn0sImV2ZW50X25hbWUiOnsiZXhhbXBsZSI6IlN1bW1lciBGZXN0In0sInZlbnVlIjp7ImV4YW1wbGUiOiJIYXJib3IgSGFsbCJ9LCJkYXRlIjp7ImV4YW1wbGUiOiJNYXJjaCAxNCJ9LCJvcmRlcl9pZCI6eyJleGFtcGxlIjoiNDUxMiJ9fX0

## How to get it approved

List ticket count and event date so the message is clearly transactional.

## Message text

Tickets confirmed
You're going, {{first_name}}! We confirmed {{ticket_count}} tickets for *{{event_name}}* at {{venue}} on {{date}}. We can't wait to see you, and we'll send a reminder before the day.

## Variables

- `{{first_name}}`: Maria
- `{{ticket_count}}`: 2
- `{{event_name}}`: Summer Fest
- `{{venue}}`: Harbor Hall
- `{{date}}`: March 14
- `{{order_id}}`: 4512

## Template JSON

```json
{
  "name": "events_ticket_confirmation",
  "language": "en_US",
  "category": "UTILITY",
  "header": {
    "type": "TEXT",
    "text": "Tickets confirmed"
  },
  "body": {
    "text": "You're going, {{first_name}}! We confirmed {{ticket_count}} tickets for *{{event_name}}* at {{venue}} on {{date}}. We can't wait to see you, and we'll send a reminder before the day."
  },
  "buttons": [
    {
      "type": "URL",
      "text": "View tickets",
      "url": "https://acmeevents.example.com/tickets/{{order_id}}"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "ticket_count": {
      "example": "2"
    },
    "event_name": {
      "example": "Summer Fest"
    },
    "venue": {
      "example": "Harbor Hall"
    },
    "date": {
      "example": "March 14"
    },
    "order_id": {
      "example": "4512"
    }
  }
}
```

## 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": "events_ticket_confirmation",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Tickets confirmed"
    },
    {
      "type": "BODY",
      "text": "You'\''re going, {{first_name}}! We confirmed {{ticket_count}} tickets for *{{event_name}}* at {{venue}} on {{date}}. We can'\''t wait to see you, and we'\''ll send a reminder before the day.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "ticket_count",
            "example": "2"
          },
          {
            "param_name": "event_name",
            "example": "Summer Fest"
          },
          {
            "param_name": "venue",
            "example": "Harbor Hall"
          },
          {
            "param_name": "date",
            "example": "March 14"
          }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "View tickets",
          "url": "https://acmeevents.example.com/tickets/{{1}}",
          "example": [
            "https://acmeevents.example.com/tickets/4512"
          ]
        }
      ]
    }
  ]
}'
```
