HavenSuiteAPI & webhooks

Developer API and Webhooks

API tokens are hotel-scoped, ability-scoped, rate-limited, and audited. Keep the API disabled until the integration owner, purpose, and data boundaries are documented.

Developer API configuration

Create a token safely

  1. Create a dedicated integration identity; never reuse an employee token.
  2. Select only the abilities needed, such as read availability or create reservations.
  3. Copy the token once into a secret manager. Do not place it in source code, screenshots, chat, or documentation.
  4. Test against a non-production hotel and confirm tenant isolation.
  5. Record the owner and rotation date, then revoke the token when the integration ends.
FieldGuidance
NameDescribe the consumer, for example “Website booking sync”.
AbilitiesChoose the smallest read/write scope needed.
Expiry/rotationUse the shortest practical lifetime and rotate on schedule.
Webhook secretStore privately and verify every incoming signature.

Webhook delivery

Subscriptions can deliver hotel events to an HTTPS endpoint. The receiver should verify the signature, return a fast success response, and process the event idempotently. Use the delivery log to inspect status, attempts, response code, and next retry.

Failure recovery

  • Do not blindly resend until the receiver is idempotent.
  • Compare event ID and payload hash before processing a retry.
  • Fix DNS, TLS, authentication, or receiver errors, then retry the specific delivery.
  • Use php artisan hotel:webhook-retry for scheduled retry processing.
  • Revoke a token immediately if its value may have leaked.
Production boundary: API responses and webhooks may contain guest data. Use HTTPS, restricted credentials, retention limits, and access logs.