OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Endpoints

POST /v3/bookings/{booking_id}/cancel

v3 cannot cancel or change a booking. These two routes exist only to say so, with the booking's confirmation so the person can contact the site or the place.

v3 cannot undo a booking. Once something is booked, only the site or the place can cancel or change it. Every booking answer says so: cancellable: false.

More in Book or buy.

Request

FieldTypeDefaultRule
booking_id
path
none
The bk_ id. No body.

Response

FieldWhat it is
error_code
not_implemented_in_v3
error
"v3 cannot cancel a booking. This booking is real and was not cancelled." On /modify: "v3 cannot modify a booking. This booking is real and was not changed."
cancellable, cancel_via
false, and how to undo it: with the site or the place (the API's own words say "venue").
booking_id
The id you sent.
confirmation_number, confirmation
When the booking has one.

Statuses and error codes

HTTPError codeWhen
501
not_implemented_in_v3
Always. Nothing was cancelled or changed.

Example

curl
curl -X POST https://api.opheliaos.com/v3/bookings/bk_a12d331e7b3dcd72d6fb057f/cancel \
-H "Authorization: Bearer YOUR_TEST_KEY"

Response 501:

json
{
"booking_id": "bk_a12d331e7b3dcd72d6fb057f",
"cancel_via": "contact the venue directly using the confirmation on this booking",
"cancellable": false,
"confirmation": {
"reference": "PB-108554",
"screen": "confirmed",
"url": "https://opheliapractice.com/restaurant/practice-bistro"
},
"confirmation_number": "PB-108554",
"error": "v3 cannot cancel a booking. This booking is real and was not cancelled.",
"error_code": "not_implemented_in_v3"
}