Webhooks

Suppliers must set up a webhook service to receive requests from PORTA related to bookings.

Authentication

PORTA will send requests to the supplier's webhook service endpoint with a pre-defined x-webhook-key header value.

Requests

PORTA currently makes the following webhook requests:

Error responses

If a request is not successful for any reason, the webhook response must be a 400 status code with one of the following error messages in the response's code property:

  • ELEMENT_NOT_FOUND
    • One or more of the IDs in the request are not recognized
  • INACTIVE_HOLD_KEY
    • When attempting to confirm a booking for an expired hold
  • INACTIVE_OR_UNAVAILABLE_EXPERIENCE
    • The experience is no longer available
  • INCORRECT_REQUEST
    • The request contains errors
  • NO_CAPACITY_LEFT
    • There are no more free seats available
  • NOT_CANCELLABLE_BOOKING
    • When attempting to cancel a booking that can no longer be cancelled
  • UNCLASSIFIED_ERROR
    • The error does not match any of the other cases
  • VALIDATION_ERROR
    • One or more of the properties (for example mandatory answers) does not match the expected type/format
Copyright © TUI Musement. All rights reserved.