# booking.customer.erased

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

A customer's booking data was erased on request (DELETE /bookings/customers/{contact}, the calendar app, or the contact delete with booking_data=erase).

Group: Book-and-Pay. Header `X-App2email-Event: booking.customer.erased`. 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.contact` | string | yes |  |
| `data.counts` | object | yes | any keys |
| `data.timestamp` | string |  |  |

## Samples

### erase

```json
{
  "id": "evt_Pay3k9m2Lw8Rt5Yp1Zs07",
  "type": "booking.customer.erased",
  "created": "2026-11-11T01:00:00.000Z",
  "number": "4976659348270",
  "data": {
    "contact": "61412345678",
    "counts": {
      "appointments": 4,
      "cancelled": 1,
      "notes": 2,
      "links": 1,
      "holds": 0,
      "votes": 0,
      "packages": 0,
      "payments": 1
    },
    "timestamp": "2026-11-11T01:00:00.000Z"
  }
}
```

## Caused by

- [Delete a contact record](https://www.app2email.com/docs/api/contacts/delete-contact.md): `DELETE /v1/{number}/contacts/{identity}`
- [Erase a customer's booking data](https://www.app2email.com/docs/api/payments/erase-customer-booking-data.md): `DELETE /v1/{number}/bookings/customers/{contact}`

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