Skip to main content
DELETE
/
bookings
/
{code}
Mark a Booking as Cancelled.
curl --request DELETE \
  --url https://b2b-api.markoub.dev/bookings/{code} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "The booking has been cancelled due to a technical error.",
  "type": "system-error"
}
'
{
  "success": true,
  "code": "<string>"
}
You can only cancel bookings that are not paid yet, and still in the pending status. Approved booking cancellation is only enabled for some partners and inventories.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
reason
string
required

A human readable explanation of what went wrong

Required string length: 5 - 1500
Example:

"The booking has been cancelled due to a technical error."

type
enum<string>
default:system-error

The type of cancellation.

Available options:
system-error,
customer-error,
bus-error
Example:

"system-error"

Response

A boolean indicating if the booking was marked as cancelled successfully

success
boolean
required
code
string
required