API

Sections

Theme switcher

/cancellations/create

Create cancellation for specific booking. If the customer wishes to and the conditions permit, this endpoint enables you to execute the cancellation of a 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 confirmed)
Object
Successful response with cancellation created

Response Attributes

dataobject

ShowĀ child attributes

jsonapiobject

ShowĀ child attributes

metaobject

ShowĀ child attributes

400 (booking already cancelled)
Object
Error response: booking already cancelled

Response Attributes

errorsarray

ShowĀ child attributes

jsonapiobject

ShowĀ child attributes

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?

POST

/

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