# Hotel booking confirmation WhatsApp template

> Confirm a hotel reservation on WhatsApp with dates, room type and booking reference. Utility template for hotels and travel agencies.

- Category: Utility
- Industry: Travel and hospitality
- Use case: Booking confirmation
- Language: en_US
- Approval rate: 80%
- Page: https://template-builder.dev/whatsapp-template/travel-booking-confirmation-hotel
- JSON: https://template-builder.dev/whatsapp-template/travel-booking-confirmation-hotel.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoidHJhdmVsX2Jvb2tpbmdfY29uZmlybWF0aW9uX2hvdGVsIiwibGFuZ3VhZ2UiOiJlbl9VUyIsImNhdGVnb3J5IjoiVVRJTElUWSIsImhlYWRlciI6eyJ0eXBlIjoiVEVYVCIsInRleHQiOiJSZXNlcnZhdGlvbiBjb25maXJtZWQifSwiYm9keSI6eyJ0ZXh0IjoiSGkge3tmaXJzdF9uYW1lfX0sIHlvdXIgc3RheSBhdCAqe3tob3RlbH19KiBpcyBjb25maXJtZWQuIENoZWNrLWluIGlzIG9uIHt7Y2hlY2tpbn19IGFuZCBjaGVjay1vdXQgb24ge3tjaGVja291dH19LCBpbiBhIHt7cm9vbX19IHJvb20uIFlvdXIgYm9va2luZyByZWZlcmVuY2UgaXMge3tib29raW5nX3JlZn19LiBXZSBsb29rIGZvcndhcmQgdG8gaG9zdGluZyB5b3UhIn0sImZvb3RlciI6eyJ0ZXh0IjoiQWNtZSBHcmFuZCBIb3RlbCJ9LCJidXR0b25zIjpbeyJ0eXBlIjoiVVJMIiwidGV4dCI6Ik1hbmFnZSBib29raW5nIiwidXJsIjoiaHR0cHM6Ly9hY21lZ3JhbmQuY29tL2Jvb2tpbmcve3tyZWZ9fSJ9XSwidmFyaWFibGVzIjp7ImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6IkVtbWEifSwiaG90ZWwiOnsiZXhhbXBsZSI6IkFjbWUgR3JhbmQgSG90ZWwifSwiY2hlY2tpbiI6eyJleGFtcGxlIjoiRGVjIDMifSwiY2hlY2tvdXQiOnsiZXhhbXBsZSI6IkRlYyA2In0sInJvb20iOnsiZXhhbXBsZSI6IkRlbHV4ZSBLaW5nIn0sImJvb2tpbmdfcmVmIjp7ImV4YW1wbGUiOiJBRy05MDQxMiJ9LCJyZWYiOnsiZXhhbXBsZSI6IkFHOTA0MTIifX19

## How to get it approved

Include check-in and check-out dates and a reference; booking details are the clearest utility signal.

## Message text

Reservation confirmed
Hi {{first_name}}, your stay at *{{hotel}}* is confirmed. Check-in is on {{checkin}} and check-out on {{checkout}}, in a {{room}} room. Your booking reference is {{booking_ref}}. We look forward to hosting you!
Acme Grand Hotel

## Variables

- `{{first_name}}`: Emma
- `{{hotel}}`: Acme Grand Hotel
- `{{checkin}}`: Dec 3
- `{{checkout}}`: Dec 6
- `{{room}}`: Deluxe King
- `{{booking_ref}}`: AG-90412
- `{{ref}}`: AG90412

## Template JSON

```json
{
  "name": "travel_booking_confirmation_hotel",
  "language": "en_US",
  "category": "UTILITY",
  "header": {
    "type": "TEXT",
    "text": "Reservation confirmed"
  },
  "body": {
    "text": "Hi {{first_name}}, your stay at *{{hotel}}* is confirmed. Check-in is on {{checkin}} and check-out on {{checkout}}, in a {{room}} room. Your booking reference is {{booking_ref}}. We look forward to hosting you!"
  },
  "footer": {
    "text": "Acme Grand Hotel"
  },
  "buttons": [
    {
      "type": "URL",
      "text": "Manage booking",
      "url": "https://acmegrand.com/booking/{{ref}}"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Emma"
    },
    "hotel": {
      "example": "Acme Grand Hotel"
    },
    "checkin": {
      "example": "Dec 3"
    },
    "checkout": {
      "example": "Dec 6"
    },
    "room": {
      "example": "Deluxe King"
    },
    "booking_ref": {
      "example": "AG-90412"
    },
    "ref": {
      "example": "AG90412"
    }
  }
}
```

## 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": "travel_booking_confirmation_hotel",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Reservation confirmed"
    },
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, your stay at *{{hotel}}* is confirmed. Check-in is on {{checkin}} and check-out on {{checkout}}, in a {{room}} room. Your booking reference is {{booking_ref}}. We look forward to hosting you!",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Emma"
          },
          {
            "param_name": "hotel",
            "example": "Acme Grand Hotel"
          },
          {
            "param_name": "checkin",
            "example": "Dec 3"
          },
          {
            "param_name": "checkout",
            "example": "Dec 6"
          },
          {
            "param_name": "room",
            "example": "Deluxe King"
          },
          {
            "param_name": "booking_ref",
            "example": "AG-90412"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Acme Grand Hotel"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Manage booking",
          "url": "https://acmegrand.com/booking/{{1}}",
          "example": [
            "https://acmegrand.com/booking/AG90412"
          ]
        }
      ]
    }
  ]
}'
```
