---
title: "Cancels a booked call ahead of its notice, freeing its slot; inside its refund window the purchase is refunded, past it the session is spent."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo customer API › checkout

`POST /v1/stores/{store}/call_bookings/{booking}/cancel`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `checkout:write`

## Path parameters

- `store` (`cancelCallBooking.path.store`; string, required) — A hostname of the store.
- `booking` (`cancelCallBooking.path.booking`; string, required)
  - minLength 1

## Request body

_Optional._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/call_bookings/<booking>/cancel' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/call_bookings/<booking>/cancel';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/customer/v1/stores/<store>/call_bookings/<booking>/cancel"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Cancels a booked call ahead of its notice, freeing its slot; inside its refund window the purchase is refunded, past it the session is spent.

#### Example

```json
{
  "refund_status": "string",
  "meeting": {
    "kind": "string",
    "url": "string",
    "status": "ready"
  },
  "id": "string",
  "product_id": "string",
  "status": "string",
  "starts_at": "string",
  "ends_at": "string",
  "time_zone": "string",
  "change_until": "string",
  "reschedules": 0,
  "reschedules_left": 0,
  "rescheduled_from": "string",
  "refund_until": "string",
  "cancel_reason": "string",
  "canceled_at": "string",
  "refund_owed": true,
  "created_at": "string",
  "updated_at": "string"
}
```

- `refund_status` (`cancelCallBooking.response.200.refund_status`; any of, required)
  - any of: `string`, `null`
- `meeting` (`cancelCallBooking.response.200.meeting`; any of, required) — Where the call is joined, its customer's alone; null once it isn't booked, or with no link to join.
  - any of: `object`, `object`, `null`
- `id` (`cancelCallBooking.response.200.id`; string, required)
- `product_id` (`cancelCallBooking.response.200.product_id`; string, required)
- `status` (`cancelCallBooking.response.200.status`; string, required)
- `starts_at` (`cancelCallBooking.response.200.starts_at`; any of, required)
  - any of: `string`, `null`
- `ends_at` (`cancelCallBooking.response.200.ends_at`; any of, required)
  - any of: `string`, `null`
- `time_zone` (`cancelCallBooking.response.200.time_zone`; any of, required) — The host's time zone, which the call's hours are set in.
  - any of: `string`, `null`
- `change_until` (`cancelCallBooking.response.200.change_until`; any of, required) — Until when its customer may still move or cancel it.
  - any of: `string`, `null`
- `reschedules` (`cancelCallBooking.response.200.reschedules`; number, required) — How many times its customer moved it; a seller's moves spend none.
- `reschedules_left` (`cancelCallBooking.response.200.reschedules_left`; number, required)
- `rescheduled_from` (`cancelCallBooking.response.200.rescheduled_from`; any of, required) — Where it started before its latest move, by the seller or the customer; null if it never moved.
  - any of: `string`, `null`
- `refund_until` (`cancelCallBooking.response.200.refund_until`; any of, required) — Until when a cancel refunds it; null when none does.
  - any of: `string`, `null`
- `cancel_reason` (`cancelCallBooking.response.200.cancel_reason`; any of, required)
  - any of: `string`, `null`
- `canceled_at` (`cancelCallBooking.response.200.canceled_at`; any of, required)
  - any of: `string`, `null`
- `refund_owed` (`cancelCallBooking.response.200.refund_owed`; any of, required) — Whether its cancel owed what was paid back, never for a call that charged nothing; null while it is booked.
  - any of: `boolean`, `null`
- `created_at` (`cancelCallBooking.response.200.created_at`; any of, required)
  - any of: `string`, `null`
- `updated_at` (`cancelCallBooking.response.200.updated_at`; any of, required)
  - any of: `string`, `null`

### default

A problem; see https://api.sherpo.io/customer/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`cancelCallBooking.response.default.type`; string, required)
  - format `uri`
- `title` (`cancelCallBooking.response.default.title`; string, required)
- `status` (`cancelCallBooking.response.default.status`; integer, required)
- `detail` (`cancelCallBooking.response.default.detail`; string, required)
- `code` (`cancelCallBooking.response.default.code`; string, optional)
- `context` (`cancelCallBooking.response.default.context`; object, optional)
- `reached_core` (`cancelCallBooking.response.default.reached_core`; boolean, optional)
- `core_answer` (`cancelCallBooking.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/customer-api/reference/cancel-call-booking/index.md
