---
title: "Read and move call bookings"
description: "See a call's open slots, the bookings its customers made, how a refund or a cancel frees a slot, and move or cancel a booking."
---

> 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.

# Read and move call bookings

A calendar product with an [availability](/merchant-api/guides/call-availability) books its own calls: a customer picks one of its open slots at checkout, the slot is held while they pay, and paying books it. One purchase books one call. This guide uses the `sherpo` helper from [your first call](/merchant-api/first-call).

## Open slots

<a href="/merchant-api/reference/list-call-slots/">`GET /products/{product}/call_slots`</a> answers the slots a customer can book, with `product:read`: every start from each of the day's windows in steps of the call's length, in the host's time zone, at least `min_notice_minutes` ahead and within `max_advance_days`, and clear of every booked or held call, and of the busy times of the calendars it [syncs](/merchant-api/guides/calendar-sync), by `buffer_before_minutes` and `buffer_after_minutes` on both sides. `from` and `to` bound the starts it answers, a week from now when left out; one read covers up to 32 days, so a whole calendar month in any time zone fits, clock changes included. A range holding more slots than one answer carries answers `next_from`, where the next read starts.

```bash
curl 'https://api.sherpo.io/merchant/v1/stores/STORE_ID/products/2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e/call_slots?from=2026-12-07T08%3A00%3A00.000Z&to=2026-12-07T09%3A00%3A00.000Z' \
  -H "Authorization: Bearer $SHERPO_TOKEN"
```

```js
const answer = await sherpo('GET', '/v1/stores/STORE_ID/products/2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e/call_slots', {
  query: [
    ['from', '2026-12-07T08:00:00.000Z'],
    ['to', '2026-12-07T09:00:00.000Z'],
  ],
});
```

Answers `200`, abridged:

```json
{
  "time_zone": "Europe/Rome",
  "duration_minutes": 30,
  "slots": [
    {
      "starts_at": "2026-12-07T08:00:00.000Z",
      "ends_at": "2026-12-07T08:30:00.000Z"
    }
  ],
  "next_from": null
}
```

A product with no availability can't be booked, and answers `409` `conflict` on `category`. Neither can it be bought: freezing a cart holding it answers `409` `conflict` on `items` until you [set its hours](/merchant-api/guides/call-availability).

Given a `booking` of the product, it answers instead the starts you may [move it to](#move-a-booking), exactly as the move takes them: every start on the call's hours after now, clear of every other call and the host's busy times, whatever the customer's `min_notice_minutes` and `max_advance_days`, with the booking's own time and buffers counted free. That needs `customer:read` too (`403` without it); a booking of another product answers `422` on `booking`, and one no longer booked `409` `conflict` on `status`.

```bash
curl 'https://api.sherpo.io/merchant/v1/stores/STORE_ID/products/2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e/call_slots?from=2026-12-09T13%3A00%3A00.000Z&to=2026-12-09T14%3A00%3A00.000Z&booking=b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04' \
  -H "Authorization: Bearer $SHERPO_TOKEN"
```

```js
const answer = await sherpo('GET', '/v1/stores/STORE_ID/products/2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e/call_slots', {
  query: [
    ['from', '2026-12-09T13:00:00.000Z'],
    ['to', '2026-12-09T14:00:00.000Z'],
    ['booking', 'b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04'],
  ],
});
```

Answers `200`, abridged:

```json
{
  "time_zone": "Europe/Rome",
  "duration_minutes": 30,
  "slots": [
    {
      "starts_at": "2026-12-09T13:00:00.000Z",
      "ends_at": "2026-12-09T13:30:00.000Z"
    },
    {
      "starts_at": "2026-12-09T13:30:00.000Z",
      "ends_at": "2026-12-09T14:00:00.000Z"
    }
  ],
  "next_from": null
}
```

## How a call is booked

- The cart line takes the slot's `starts_at`, checked open when it's set and held when the cart is presented for payment. A held slot is taken for everyone else until the cart is paid, given up or expires; a payment already on its way keeps it until it reads back gone.
- A call is one ticket bought outright: a cart takes one line of the product, at quantity 1, on a one-time price. A call takes no [approval](/merchant-api/guides/approvals-and-waitlists), since paying books it, so `settings.approval` answers `invalid` on a calendar product, with or without an availability, and setting its availability answers `invalid` while an older one still requires approval (clearing it with `null` doesn't).
- Paying books the held call on the order's line. When money comes in after the hold lapsed and someone else took the slot meanwhile, or the host's calendar filled the held time before the payment landed, the call is booked anyway, as the customer paid for it, and reads `conflict: true` for you to move to a free time.
- A call whose product writes its bookings into a Google Calendar puts each one there, titled with the product and the customer's name; a move moves it, a cancel removes it, and naming another calendar or renaming the product carries the calls ahead along. An erased customer's name leaves every event.
- A call's refunds count back from the slot it holds, as an event's count back from its session: the price's `refund_policy`, else the product's, refunds up to that long before the call's start (`24h`, up to a day before; no policy, until it starts; `none`, never). Checkout explains it, and asks the customer to tick a box accepting it when the window ends within 14 days of the purchase. The deadline is fixed when the call is bought, so a later move or policy change leaves it alone.

## Bookings

<a href="/merchant-api/reference/list-call-bookings/">`GET /products/{product}/call_bookings`</a> pages a product's bookings, the next first, and <a href="/merchant-api/reference/get-call-booking/">`GET /call_bookings/{booking}`</a> reads one, both with `customer:read`. Each names its customer, its order and line, what that line charged (`amount` in `currency` minor units with its `exponent`, `null` without `revenue:read`), its `starts_at` and `ends_at`, the host's `time_zone`, its `meeting` link (see [Give calls a meeting link](/merchant-api/guides/meeting-links)), and its `status`: `booked`, or `canceled` with a `cancel_reason`:

- **`customer`**: the customer canceled it, ahead of `change_notice_minutes` before its start.
- **`seller`**: you canceled it (see [Cancel a booking](#cancel-a-booking)); `cancel_message` holds the message you sent with it.
- **`refund`**: its line was refunded in full, or a refund ended its access, whatever your store's refunds do to access, before the call began; a call already underway stays booked.
- **`revoked`**: its access ended otherwise, as when you [revoke a grant](/merchant-api/guides/customer-access), before the call began.
- **`erased`**: the customer's details were erased, which cancels their calls not yet over.

A canceled call frees its slot at once. `search` finds bookings by their customer's name, email or phone, and the `status` and `cancel_reason` facets count them, as for an event's guest list. Filter on `ends_at` to split the calls ahead from those over: `gte` the next second keeps the calls ahead and those under way, `lte` now the calls that ended.

`change_until` is when its customer can no longer move or cancel it, `reschedules` how many times they moved it and `reschedules_left` how many more times they may, and `refund_until` until when their cancel refunds it (`null` when none does). `rescheduled_from` is where it started before its latest move, yours or the customer's, and `null` for a call that never moved, so a non-null value marks a moved call; your moves never count toward `reschedules`.

`amount` stays what the line charged, after discounts. `refundable` is what a cancel with a refund would give back now: `amount` less whatever the order already refunded of it (an order refund that names no line comes off the payment first), `null` once the call is canceled or without `revenue:read`. Promise that figure when you offer a refund.

## A customer's cancel and its refund

A customer cancels a booked call ahead of `change_notice_minutes`. Inside its refund window, what they paid for it goes back on their payment through Stripe, as a canceled event's refund does: the booking's `refunds` show it, one per payment of its order, each with its `status` and, once one failed, its `failure` (the values [a canceled event's refunds](/merchant-api/guides/cancel-an-event#follow-the-refunds) read); `refund` is the furthest from done of them. <a href="/merchant-api/reference/retry-event-refund/">`POST /event_refunds/{refund}/retry`</a> tries a failed one again. A purchase paid outside the store reads `manual`, for you to give back, and the team is told it's owed by hand. Past its window nothing goes back, and the call is spent: a purchase books one call.

## What the customer and the team hear

The customer gets an email when the call is booked, moved or canceled, each with a calendar file that adds, moves or takes off the call in their calendar, and push reminders a day and an hour before it, as an event's sessions remind. Each email is one of your store's [customer messages](/merchant-app/settings), which you can turn off, and each is a [webhook event](/merchant-api/webhooks): `call.booked`, `call.rescheduled` and `call.canceled` carry the booking at the time the event told, and `call.rescheduled` adds `previous_starts_at`, `previous_ends_at` and `moved_by` (`customer` or `store`). A run of moves sends the customer one email, with the time as it stands.

The team is told in the merchant app, as **Calls booked, moved and canceled**, when a customer books, moves or cancels a call, with its time, and when a call was booked over another; a move of yours, a refund, a revocation or an erasure tells nobody, as you made it. Each email shows the call's meeting link where it has one, and its calendar file carries it as the place: a fixed link at once, a Google Meet once Google made it (an email waits up to ten minutes for it, then goes without). A call booked before these emails began gets its reminders all the same.

## Move a booking

<a href="/merchant-api/reference/reschedule-call-booking/">`POST /call_bookings/{booking}/reschedule`</a> moves a booked call, with `customer:write`, to another `starts_at` on the call's hours and clear of every other call and the host's busy times; [the open slots read given the `booking`](#open-slots) lists exactly the starts it takes. Unlike the customer, you can move it inside the notice and past their limit, and it never counts toward `reschedules`; a start in the past, off the hours, onto another call or onto a busy time answers `409` `conflict` on `slot`, a call already canceled `409` `conflict` on `status`, and a product that stopped booking its own calls `409` `conflict` on `category`; a move to where it already is changes nothing. Moving a call booked over another clears its `conflict`. A move sets `rescheduled_from` to the start it left; clearing a `conflict` where the call stands leaves it alone.

```bash
curl -X POST 'https://api.sherpo.io/merchant/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/reschedule' \
  -H "Authorization: Bearer $SHERPO_TOKEN" \
  -H 'Idempotency-Key: move-b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04' \
  -H 'Content-Type: application/json' \
  -d '{
  "starts_at": "2026-12-09T13:00:00.000Z"
}'
```

```js
const answer = await sherpo('POST', '/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/reschedule', {
  body: {
    "starts_at": "2026-12-09T13:00:00.000Z"
  },
  key: 'move-b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04',
});
```

Answers `200`, abridged:

```json
{
  "id": "b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04",
  "product_id": "2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e",
  "status": "booked",
  "starts_at": "2026-12-09T13:00:00.000Z",
  "ends_at": "2026-12-09T13:30:00.000Z",
  "time_zone": "Europe/Rome",
  "reschedules": 0,
  "rescheduled_from": "2026-12-07T08:00:00.000Z",
  "conflict": false,
  "refund": null
}
```

## Add a booking to a calendar

<a href="/merchant-api/reference/get-call-booking-invite/">`GET /call_bookings/{booking}/invite`</a> answers a booking's `.ics` invite, with `customer:read`: the same invite its customer's emails carry, under the same uid, so it adds a booked call to a calendar with its time and meeting link, and marks a canceled one canceled for a calendar that takes updates. Serve `ics` as `text/calendar` under `filename`, which names the call's day in the host's time zone.

```bash
curl 'https://api.sherpo.io/merchant/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/invite' \
  -H "Authorization: Bearer $SHERPO_TOKEN"
```

```js
const answer = await sherpo('GET', '/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/invite');
```

Answers `200`, abridged:

```json
{
  "filename": "call-2026-12-09.ics",
  "ics": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//shop.example.com//Calls//EN\r\nBEGIN:VEVENT\r\nUID:b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04@STORE_ID\r\nDTSTART:20261209T130000Z\r\nDTEND:20261209T133000Z\r\nSUMMARY:Portfolio review\r\nLOCATION:https://meet.google.com/abc-defg-hij\r\nSTATUS:CONFIRMED\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
}
```

## Cancel a booking

<a href="/merchant-api/reference/cancel-call-booking/">`POST /call_bookings/{booking}/cancel`</a> cancels a booked call, with `transaction:write`, any time before it ends, and frees its slot. Inside its refund window (until `refund_until`) what the customer paid goes back as a customer's cancel does, and outside it nothing does; `refund` decides either way, `true` to give it back anyway and `false` to keep it. An optional `message`, rich text with no blocks, is kept on the booking as `cancel_message`. The customer's cancellation email says the store canceled the call and quotes your message, unless you turned that email off.

The canceled booking says what came of the money:

- `refund_owed` is `true` when the cancel owed a refund, by its window or because you asked, and `false` when it kept the money or the call charged nothing (`null` while a call is booked).
- `refund` and `refunds` hold what it made, as for [a customer's cancel](#a-customers-cancel-and-its-refund): `pending` on its way through Stripe, or `manual` when the purchase was paid outside the store, which is yours to give back by hand (the team is told).
- `refund_owed: true` with `refund: null` and no `refunds` means nothing was left to give back, as when the order was already refunded in full.

A refusal leaves the call booked, and its `context` says which:

| Status | `context` | When |
| --- | --- | --- |
| `409` | `field: "status"`, `current: "canceled"` | The call is already canceled. |
| `409` | `field: "status"`, `current: "booked"`, `reason: "past its end"` | The call is over. |
| `409` | `field: "status"`, `path` at `refund`, `reason: "no order to refund"` | A refund is owed or asked for, but the booking has no order to give it back on; cancel with `refund: false` to cancel it anyway. |

Match on `reason` and `path`, never on `title` or `detail`.

```bash
curl -X POST 'https://api.sherpo.io/merchant/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/cancel' \
  -H "Authorization: Bearer $SHERPO_TOKEN" \
  -H 'Idempotency-Key: cancel-b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04' \
  -H 'Content-Type: application/json' \
  -d '{
  "refund": true,
  "message": "<rich-text version=\"1\"><p>Something came up on my side, sorry. Your payment is on its way back.</p></rich-text>"
}'
```

```js
const answer = await sherpo('POST', '/v1/stores/STORE_ID/call_bookings/b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04/cancel', {
  body: {
    "refund": true,
    "message": "<rich-text version=\"1\"><p>Something came up on my side, sorry. Your payment is on its way back.</p></rich-text>"
  },
  key: 'cancel-b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04',
});
```

Answers `200`, abridged:

```json
{
  "id": "b6d9a3e2-41c7-4f0e-9a58-2f1e7c3d8b04",
  "product_id": "2c7e9a4b-5d1f-4b8a-9e3c-6a0d2f4b8c1e",
  "status": "canceled",
  "cancel_reason": "seller",
  "cancel_message": "<rich-text version=\"1\"><p>Something came up on my side, sorry. Your payment is on its way back.</p></rich-text>",
  "amount": 12000,
  "refundable": null,
  "currency": "eur",
  "exponent": 2,
  "meeting": null,
  "refund_owed": true,
  "refund": {
    "id": "3d2c1b0a-9f8e-4d7c-8b6a-5f4e3d2c1b0f",
    "status": "pending",
    "failure": null
  }
}
```

Source: https://docs.sherpo.io/merchant-api/guides/call-bookings/index.mdx
