Skip to main content

Overview

Webhooks let you receive HTTP notifications when events happen in your workspace. Instead of polling the API, you can subscribe to specific events and Voyant will send a POST request to your endpoint.

Creating a subscription

1

Create a subscription

The response includes a secret - store it securely. You’ll need it to verify webhook signatures.
2

Verify signatures

Validate incoming webhooks using the X-Webhook-Signature header:
3

Handle events

Return a 2xx status to acknowledge receipt. Non-2xx responses trigger retries.

Event types

Subscribe to specific events or use wildcards:

Available events

Bookings & Payments
  • booking.created, booking.updated, booking.cancelled, booking.confirmed
  • booking.payment.success, booking.payment.failed
  • payment.succeeded, payment.failed, payment.refunded
Products & Catalog
  • product.created, product.updated, product.deleted
  • product.published, product.archived
Inventory
  • departure.created, departure.updated, departure.capacity.changed
  • inventory.updated
Customers
  • customer.created, customer.updated, customer.deleted
Collections & Tags
  • collection.created, collection.updated, collection.deleted
  • tag.created, tag.updated, tag.deleted

Webhook headers

Every webhook request includes these headers:

Retries

Failed deliveries are retried with exponential backoff. Return 2xx to acknowledge, or 410 Gone to permanently disable the subscription.
Implement idempotency in your webhook handler - you may receive the same event more than once.

Managing subscriptions

Next steps

Webhooks API

Full API reference

Error handling

Handle webhook failures