Skip to content
ajar.Get started

Reservation cancellation preview

booking.reservation.cancellation.preview

View connector

Check current cancellation fee and conditions

POST /v1/operations/booking.reservation.cancellation.preview

Headers

Authorization: Bearer YOUR_CONNECTOR_TOKEN
x-booking-token: YOUR_BOOKING_TOKEN
Content-Type: application/json

Use your connector bearer token and caller-held guest token in x-booking-token.

Inputs

ParameterExample typeExample value
booking_refstring"fictional-booking-ref"

Example input

{
  "booking_ref": "fictional-booking-ref"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/booking/cancellation-preview.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "booking_ref": {
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "booking_ref"
  ],
  "type": "object"
}