DELETEBookings
Cancel Booking
/api/v1/bookings/{bookingNumber}Cancel an existing booking number. All booking rows under the same booking number are marked as canceled and internal resource stock is restored in the same transaction.
Authentication Required
Include Bearer token in Authorization header: Authorization: Bearer YOUR_TOKEN
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bookingNumber | string | Yes | Unique booking number identifier to cancel |
Response
Success Response Example:
{
"requestStatus": {
"success": true,
"message": "Booking #PC2236PAQ has been canceled"
}
}Error Response
Error Example:
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "No bookings found for the given booking number"
}
}Available Errors
| HTTP Status | Code | Meaning |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | Partner and Booking do not match |
404 | NOT_FOUND | No bookings found for the given booking number |
500 | INTERNAL_SERVER_ERROR | Failed to cancel bookings |