Skip to main content
WEBHOOK
Fired when an asynchronous Partner API auto-book request reaches a terminal result. Submit a booking describes the request that starts the attempt.

Delivery

Scan sends the event to the first available destination:
  1. The webhook_url supplied on the booking request.
  2. The account webhook configured on the API access tab.
  3. No webhook when neither exists; poll the referral instead.
Account webhooks are signed as described in Webhooks. A request-specific webhook is not signed with the account credential.

Payload

The body contains occurred_at, the terminal auto_book_request, and the current referral snapshot. Outcomes include booked, contacted_for_booking, no_availability, and booking_failed. This event does not currently include event_id. Make processing idempotent using auto_book_request.id and its terminal status.

Response

Return any HTTP 2xx response after storing the event. For account webhooks, the retry policy is documented in Webhooks. If delivery is unavailable, poll GET /api/v2/referrals/{referral_id} and inspect auto_book_request.status and auto_book_request.outcome.

Body

application/json
event_name
enum<string>
required
Available options:
referral.auto_book_completed
occurred_at
string<date-time>
required
auto_book_request
object
required
referral
object
required

Referral snapshot (same shape as GET /api/v2/referrals/{id})

Response

200

Return any 2xx response to acknowledge the event