---
title: "Cancel a booking"
method: POST
path: "/api/business/{businessId}/branch/{branchId}/booking/{bookingId}/cancel"
tags: ["Booking"]
---

# Cancel a booking

`POST /api/business/{businessId}/branch/{branchId}/booking/{bookingId}/cancel`

## Request

- Base URL: `http://api-gateway-eu.phorest.com/third-party-api-server`
- URL: `http://api-gateway-eu.phorest.com/third-party-api-server/api/business/{businessId}/branch/{branchId}/booking/{bookingId}/cancel`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/phorest/apis/third-party-api/docs/api/business/:businessId/branch/:branchId/booking/:bookingId/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel an activated booking

## Path parameters

- `businessId` string, required
- `branchId` string, required
- `bookingId` string, required

## Response `200`

Booking cancelled successfully

## Other responses

- `400`: Either the booking is already cancelled, or it is too late to cancel as per cancellation policy
- `404`: Business, branch or booking with the specified ids don't exist
- `429`: Request rate limit exceeded. Current limit set to 100 rps.
- `500`: An error occurred while trying to cancel a booking

---

[API](https://skmtc.dev/phorest/apis/third-party-api.md) - [All operations](https://skmtc.dev/phorest/apis/third-party-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phorest/apis/third-party-api/revisions/beea6ef29634?raw)
