---
title: "reservation.cancelled — Webhooks"
canonical: "https://repull.dev/docs/webhooks/reservation-cancelled"
description: "The reservation.cancelled webhook: fired once when a guest, host or channel cancels a reservation. When it fires, payload and example handler."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# `reservation.cancelled`

A reservation was cancelled by the guest, host, or platform.

## When it fires

Fires once when a reservation transitions to a cancelled status. The reservation row remains queryable through the API afterwards — it simply has status: "cancelled".

## Payload

Every delivery uses the same outer envelope (`event`, `eventId`, `apiVersion`, `timestamp`, `account`, `data`, plus a numeric `workspaceId` on events from a [customer workspace](https://repull.dev/docs/webhooks-introduction.md#routing-events-to-a-workspace)). Dedupe on `eventId` — it stays stable across retries and replays, while the `X-Repull-Delivery-Id` header changes on every attempt.

```
{
  "event": "reservation.cancelled",
  "eventId": "3f1c9a2e-8b7d-4c6a-9e0f-1a2b3c4d5e6f",
  "apiVersion": "2026-04",
  "timestamp": "2026-05-01T12:34:56.000Z",
  "data": {
    "object": {
      "id": 900001,
      "uid": "HMEXAMPLE1",
      "channel": "airbnb",
      "listingId": 5668,
      "customerId": 1,
      "checkinDate": "2026-06-10",
      "checkoutDate": "2026-06-16",
      "status": "cancelled",
      "cancellationPolicy": "firm_14",
      "checkInTime": "16:00",
      "checkOutTime": "10:00"
    },
    "cancelledAt": "2026-05-01T14:00:00.000Z",
    "cancelledBy": "guest",
    "reason": "guest_requested"
  }
}
```

## Verifying signatures

Every delivery includes a timestamped `X-Repull-Signature` header of the form `t=<unix_ts>,v1=<hex>`, where `v1` is ``HMAC-SHA256(signing_secret, `${t}.${raw_body}`)``. Verify it before processing — see [Verify Signatures](https://repull.dev/docs/verify-webhook-signatures.md) for full Node.js and Python examples.

> **Warning: Use the raw body**
>
> Sign the raw request body exactly as received, not a re-stringified JSON object. Re-serialisation can reorder keys or change whitespace and break the signature.

## Example handler

```
if (type === 'reservation.cancelled') {
  const { id, refund, cancelledBy } = data
  // Free the calendar, notify the cleaner, push the refund through accounting
  unblockCalendarFor(id)
  if (refund && refund.amount) recordRefund(id, refund)
}
```

## Common patterns

- Always look up the full reservation via GET /v1/reservations/{id} before issuing refunds. The webhook tells you the reservation was cancelled and the platform-side refund amount, but your books may have additional fees, deposits, or upsells that need separate handling.
- Distinguish by cancelledBy. guest, host, and platform cancellations often have different refund policies and downstream actions (re-list the dates, trigger insurance claim, comp the cleaner).
- Idempotent on deliveryId. A retried delivery should not double-refund — guard with a unique constraint on deliveryId.

## Related

- [Full event catalog](https://repull.dev/docs/webhooks/event-types.md)
- [reservation.created](https://repull.dev/docs/webhooks/reservation-created.md)
- [reservation.updated](https://repull.dev/docs/webhooks/reservation-updated.md)
- [Cancel a reservation](https://repull.dev/docs/cancel-reservation.md)
- [Verify webhook signatures](https://repull.dev/docs/verify-webhook-signatures.md)

**Tip:** Acknowledge with a 2xx status within 10 seconds. Failed deliveries are retried 7 times over 24 hours, with backoff.[Webhook reliability →](https://repull.dev/docs/webhooks-introduction.md)
