# booking.updated

HTML: https://www.app2email.com/docs/api/webhooks/booking.updated · Index: https://www.app2email.com/docs/api/llms.txt

An appointment's details changed: the customer's name or e-mail, the notes, the answers or the staff member (in the calendar app, on the dashboard or through the API). Not sent for a move (booking.rescheduled) or a cancel.

Group: Book-and-Pay. Header `X-App2email-Event: booking.updated`. Inside the envelope `{id, type, created, number, test?, data}` ([envelope, headers, signature](https://www.app2email.com/docs/api/webhooks.md)). Every webhook of the number gets every number event: filter by `type`.

## data

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `data.changed` | string[] | yes | The fields that changed: name, email, notes, answers, provider. |
| `data.updated_by` | string |  | An e-mail or API key <name>. |
| `data.timestamp` | string |  |  |

## Samples

### notes and staff

```json
{
  "id": "evt_Cal3k9m2Lw8Rt5Yp1Zs01",
  "type": "booking.updated",
  "created": "2026-11-11T01:00:00.000Z",
  "number": "4976659348270",
  "data": {
    "id": 42,
    "reference": "BK-7Q3M2A",
    "status": "confirmed",
    "contact": "61412345678",
    "contact_name": "Sample Contact",
    "contact_email": "sample@example.com",
    "service": {
      "id": "haircut",
      "name": "Haircut",
      "duration_min": 30
    },
    "start": "2026-11-14T23:00:00.000Z",
    "end": "2026-11-14T23:30:00.000Z",
    "timezone": "Australia/Sydney",
    "source": "whatsapp_flow",
    "calendar": {
      "provider": "google",
      "event_id": "evt_sample_1",
      "url": "https://calendar.google.com/calendar/event?eid=sample"
    },
    "answers": {
      "notes": "Please keep it short"
    },
    "notes": "Please keep it short",
    "provider": {
      "id": "maria",
      "name": "Maria"
    },
    "credits_used": 0,
    "link_id": null,
    "created": "2026-11-11T01:00:00.000Z",
    "changed": [
      "notes",
      "provider"
    ],
    "updated_by": "jane@example.com",
    "timestamp": "2026-11-11T01:00:00.000Z"
  }
}
```

## Caused by

- [Change an appointment's details](https://www.app2email.com/docs/api/calendar/update-booking.md): `PATCH /v1/{number}/bookings/{id}`

Send it to your URL: https://www.app2email.com/docs/api/webhooks/tester?type=booking.updated
