> For the complete documentation index, see [llms.txt](https://docs.cubu.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cubu.com/guides/technical-guide/webhooks/webhooks-reference/service-webhooks/after-book-appointment.md).

# After Book Appointment

## Overview

This webhook is triggered after an appointment is booked.

<mark style="color:orange;background-color:yellow;">DEC 2024 B Release</mark>

## API

### URL

```
[base-url]/service/actions/afterBookAppointment
```

### Request Body

The webhook receives the following input:

* **caseId**: The case ID to be created.
* **parentCaseId:** The parent case ID (when applicable).
* **referenceDate**: The case’s reference date.
* **unitId**: The ID of the service’s parent unit.
* **serviceId**: The service used to create the case.
* **serviceCategoryId:** Service category ID.
* **serviceTypeId:** Service type ID.
* **status:** The case’s target status (Pending/Waiting).
* **channel:** Communication channel (Face-to-face, Video, etc.).
* **language:** The preferred communication language.
* **ticket:** The ticket number
  * **prefix**
  * **number**
  * **suffix**
* **fields:** A Dictionary of `fieldTypeId` + `fieldValue` pairs.
* **tagIds:** An array of tag IDs.
* **customerRecordId**: The ID of the customer record linked to the case.
* **triggeredByUserId:** The ID of the user who triggered this action (when applicable). The value is null when a Kiosk or the S2S API triggers the operation.
* **triggeredByUserEmail:** The email address of the user who initiated the action, if applicable.
* **appointment**
  * **date**: The appointment date
  * **cuIndex**: The calendar index (“Capacity Unit Index”)
  * **start**: The appointment start time, represented as the number of minutes past midnight.
  * **timeLocal**: The appointment’s date and time in the service’s time zone.
  * **timeUtc**: The appointment’s date and time in the UTC time zone.
  * **timeZoneId**: The appointment’s service time zone.
  * **duration**: The appointment duration (in minutes).
  * **preventSelfCheckIn**: A boolean value indicating whether the customer can check in to this appointment using the kiosk.

### Response Body

This webhook does not return data.
