# Class booking confirmed WhatsApp template

> Confirm a gym or studio class spot with class name, trainer and time. Booking confirmation WhatsApp template for fitness studios.

- Category: Utility
- Industry: Fitness
- Use case: Booking confirmation
- Language: en_US
- Approval rate: 97%
- Page: https://template-builder.dev/whatsapp-template/fitness-class-booking-confirmed
- JSON: https://template-builder.dev/whatsapp-template/fitness-class-booking-confirmed.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZml0bmVzc19jbGFzc19ib29raW5nX2NvbmZpcm1lZCIsImxhbmd1YWdlIjoiZW5fVVMiLCJjYXRlZ29yeSI6IlVUSUxJVFkiLCJoZWFkZXIiOnsidHlwZSI6IlRFWFQiLCJ0ZXh0IjoiQ2xhc3MgYm9va2VkIn0sImJvZHkiOnsidGV4dCI6IllvdSdyZSBpbiwge3tmaXJzdF9uYW1lfX0hIFlvdXIgc3BvdCBpbiAqe3tjbGFzc19uYW1lfX0qIHdpdGgge3t0cmFpbmVyfX0gaXMgY29uZmlybWVkIGZvciB7e2RheX19IGF0IHt7dGltZX19LiBXZSBjYW4ndCB3YWl0IHRvIHNlZSB5b3UsIGFuZCB3ZSdsbCBzZW5kIGEgcmVtaW5kZXIgYmVmb3JlIHRoZSBkYXkuIn0sImJ1dHRvbnMiOlt7InR5cGUiOiJRVUlDS19SRVBMWSIsInRleHQiOiJDYW5jZWwgc3BvdCJ9XSwidmFyaWFibGVzIjp7ImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6Ik1hcmlhIn0sImNsYXNzX25hbWUiOnsiZXhhbXBsZSI6Ik1vcm5pbmcgWW9nYSJ9LCJ0cmFpbmVyIjp7ImV4YW1wbGUiOiJNYXJjdXMifSwiZGF5Ijp7ImV4YW1wbGUiOiJGcmlkYXkifSwidGltZSI6eyJleGFtcGxlIjoiMzozMCBQTSJ9fX0

## How to get it approved

Include your late-cancel window in the body; it is the most common support question.

## Message text

Class booked
You're in, {{first_name}}! Your spot in *{{class_name}}* with {{trainer}} is confirmed for {{day}} at {{time}}. We can't wait to see you, and we'll send a reminder before the day.

## Variables

- `{{first_name}}`: Maria
- `{{class_name}}`: Morning Yoga
- `{{trainer}}`: Marcus
- `{{day}}`: Friday
- `{{time}}`: 3:30 PM

## Template JSON

```json
{
  "name": "fitness_class_booking_confirmed",
  "language": "en_US",
  "category": "UTILITY",
  "header": {
    "type": "TEXT",
    "text": "Class booked"
  },
  "body": {
    "text": "You're in, {{first_name}}! Your spot in *{{class_name}}* with {{trainer}} is confirmed for {{day}} at {{time}}. We can't wait to see you, and we'll send a reminder before the day."
  },
  "buttons": [
    {
      "type": "QUICK_REPLY",
      "text": "Cancel spot"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "class_name": {
      "example": "Morning Yoga"
    },
    "trainer": {
      "example": "Marcus"
    },
    "day": {
      "example": "Friday"
    },
    "time": {
      "example": "3:30 PM"
    }
  }
}
```

## 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": "fitness_class_booking_confirmed",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Class booked"
    },
    {
      "type": "BODY",
      "text": "You'\''re in, {{first_name}}! Your spot in *{{class_name}}* with {{trainer}} is confirmed for {{day}} at {{time}}. 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": "class_name",
            "example": "Morning Yoga"
          },
          {
            "param_name": "trainer",
            "example": "Marcus"
          },
          {
            "param_name": "day",
            "example": "Friday"
          },
          {
            "param_name": "time",
            "example": "3:30 PM"
          }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "QUICK_REPLY",
          "text": "Cancel spot"
        }
      ]
    }
  ]
}'
```
