Cancel booking

Cancel or withdraw a booking

POST/v1/bookings/{bookingId}/cancel

Headers

  • x-manage-tokenstringRequired

    The manageToken returned by create_booking. Proves the caller is the customer. Never show it to anyone else.

Path parameters

  • bookingIdstringRequired

    Booking id as returned by create_booking (prefix bkg_).

Body

  • reasonstring (up to 280 characters)

    Why the customer is canceling. Optional.

Responses

  • 200

    A booking: its status, time, price, the customer's consent record and what to do next.

    Booking
  • 404

    No such id, or it is not visible to this key.

    NotFound
  • 409

    The booking is not in a state that allows this.

    InvalidState