Post By Booking Id Cancel

Authentication

AuthorizationBearer

JWT token from @etera-ai/auth package (auth.etera.dev) - Format: Bearer <token>

Path parameters

bookingIdstringRequired
Unique identifier for the booking

Query parameters

reason"TICKETS_NOT_RECEIVED" or "CHANGE_OF_TRAVEL_PLANS" or "MODIFY_EXISTING_RESERVATION" or "FOUND_CHEAPER_OPTION_ELSEWHERE" or "OTHER" or stringOptional

Cancellation reason (can also be provided in request body). Can be an enum value or free text.

other_reasonstringOptional

Additional details when reason is ‘OTHER’ (can also be provided in request body).

Request

This endpoint expects an object.
reason"TICKETS_NOT_RECEIVED" or "CHANGE_OF_TRAVEL_PLANS" or "MODIFY_EXISTING_RESERVATION" or "FOUND_CHEAPER_OPTION_ELSEWHERE" or "OTHER" or stringOptional

Cancellation reason (can also be provided as query parameter). Can be an enum value (TICKETS_NOT_RECEIVED, CHANGE_OF_TRAVEL_PLANS, MODIFY_EXISTING_RESERVATION, FOUND_CHEAPER_OPTION_ELSEWHERE, OTHER) or free text. If OTHER is used, provide other_reason for details.

other_reasonstringOptional

Additional details when reason is ‘OTHER’ (can also be provided as query parameter). Recommended when using ‘OTHER’ enum value.

Response

This endpoint returns an object.
successboolean
dataany or null
messagestring or null
errorstring or null
timestampstring or null