API

Sections

Theme switcher

/cancellations/conditions

Retrieve cancellation conditions for a certain booking. To enable the cancellation of tickets through your system, you can use this endpoint to display the conditions for the cancellation of a specific booking.

For details about how this endpoint fits into the flow, check the Cancel Booking step.

Header Parameters

api-keystring Required

Set your API key. To request a demo API key please reach out to us at partner@distribusion.com. Reference value: ZW8FXhnBl53yTkrMvoqLp4Xq7mf9nEBGsxpTWrid.

Query Parameters

bookingstring Required

Set the ID of the booking to be checked. Use the value retrieved from the /reservations/{reservation_id} or /bookings/create response. Reference value: 8qbBSBst2XH39afW2WzAfQ.

reasonstring

Set the reason for the cancellation in case grace period cancellations or technical cancellations are supported by the carrier (such as DB). Sample value ticket_not_used.

Response

200 (cancellation true)
Object
Successful response with cancellation allowed

Response Attributes

dataobject

Show child attributes

jsonapiobject

Show child attributes

metaobject

Show child attributes

includedarray
200 (cancellation false)
Object
Successful response with cancellation not allowed

Response Attributes

dataobject

Show child attributes

jsonapiobject

Show child attributes

metaobject

Show child attributes

includedarray
400 (booking not found)
Object
Error response: booking not found

Response Attributes

errorsarray

Show child attributes

jsonapiobject

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

GET

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?

View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot