---
title: "Calls"
description: "Show a calendar product's open slots, book one at checkout, and let a customer read, move or cancel their call."
---

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

# Calls

A calendar product sells one call per purchase: the customer picks one of its open slots, checks out with it held, and paying books it. Its product read answers `settings.calendar.can_schedule`: `true` once the call has availability, so it can be booked, and `false` until the seller sets its hours. The examples use the client from [Your own front end](/customer-api/self-hosted#a-minimal-client).

## Open slots

[`GET /v1/stores/{store}/products/{product}/call_slots`](/customer-api/reference/list-call-slots) lists the slots anyone can book, with a publishable key or a token: each `starts_at` and `ends_at`, the host's `time_zone` the call's hours are set in, and the call's `duration_minutes`. `from` and `to` bound the starts it answers, a week from now when left out; one read covers up to 32 days, a whole calendar month in any time zone, and `next_from`, when set, is where a read past the slots it answered starts.

```bash
curl 'https://api.sherpo.io/customer/v1/stores/yourstore.sherpo.io/products/slug:office-hours/call_slots?from=2026-12-01T00:00:00.000Z&to=2026-12-08T00:00:00.000Z' \
  --header 'Publishable-Key: <publishable key>'
```

Times are in UTC: show them in the customer's own time zone, with the host's beside them. A product with no availability (`can_schedule` is `false`), or that isn't a call, answers `409` `conflict` on `category`.

## Book one at checkout

The cart line takes the slot's `starts_at` (see [Checkout](/customer-api/checkout)), checked open when it's set, and the cart's line answers it back as `starts_at`: a start no open slot has answers `409` `conflict` on `slot`, and `null` clears it. A call is one line of the product, at quantity 1, on a one-time price; the freeze refuses anything else with `409` `conflict` on `items` and a `reason`. A calendar product with no availability can't be bought: freezing a cart holding it answers `409` `conflict` on `items`, until the seller sets the call's hours. Its refund window counts back from that start, as an event's from its session, and the line's `refund_until` answers it; when it ends within 14 days of the purchase, freezing needs the customer's consent (see [Refund consent](/customer-api/checkout#refund-consent)). Presenting the cart for payment holds the slot, refusing a line with no start, or one taken since, with `409` `conflict` on `slot`; the slot stays held until the cart is paid, given up or expires. Paying books it.

## The customer's calls

[`GET /v1/stores/{store}/call_bookings`](/customer-api/reference/list-call-bookings) pages the customer's calls, the next first, and [`GET /v1/stores/{store}/call_bookings/{booking}`](/customer-api/reference/get-call-booking) reads one, with `read`. Each has its `starts_at`, `ends_at` and `time_zone`, and its `status`: `booked`, or `canceled` with a `cancel_reason` (`customer`, `seller`, `refund`, `revoked` or `erased`). `change_until` is when the customer can no longer move or cancel it, `reschedules_left` how many more times they may move it, `rescheduled_from` where it started before its latest move (theirs or the store's), `null` if it never moved, and `refund_until` until when canceling refunds it, fixed when it was bought from the start it held then, `null` when it doesn't. `meeting` is where the call is joined: its `kind` (`link` or `google_meet`), its `url` and a `status` (`ready`, `pending` while a Google Meet is being made, or `unavailable`, with a `null` `url` until it's `ready`), or `null` for a canceled call or one with no meeting link.

## Move or cancel a call

Both need `checkout:write` and are for the customer's own front end alone, not an MCP client. Both answer `409` `conflict` on `status`: `canceled` for a call already canceled, and `booked` with a `reason` past `change_until`. A call whose product no longer has availability answers `409` `conflict` on `category` to a move.

- [Rescheduling](/customer-api/reference/reschedule-call-booking) moves the call to another open slot, and a move to where it already is changes nothing; a start no slot has answers `409` `conflict` on `slot`, and one past the last move it allows answers `409` `conflict` on `attempts`.
- [Canceling](/customer-api/reference/cancel-call-booking) frees its slot. Before `refund_until`, what they paid for it goes back on their payment, and the booking's `refund_status` says where that stands (`pending`, `refunded`, `failed` or `manual`, which the store refunds by hand; with several payments, the one furthest from done); `refund_owed` says whether a cancel, theirs or the store's, owed a refund at all; after it, nothing goes back, and the call is spent, as a purchase books one call.

A refund of the purchase, or the store ending the customer's access, cancels the call too.

Source: https://docs.sherpo.io/customer-api/calls/index.mdx
