---
title: "Reads a call booking's .ics invite, the one its customer's emails carry: it adds a booked call to a calendar, and calls off a canceled one."
---

> 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 merchant API › customer

`GET /v1/stores/{store}/call_bookings/{booking}/invite`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `customer:read`

## Path parameters

- `store` (`getCallBookingInvite.path.store`; string, required) — The store's id.
- `booking` (`getCallBookingInvite.path.booking`; string, required)
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/call_bookings/<booking>/invite' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/call_bookings/<booking>/invite';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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/merchant/v1/stores/<store>/call_bookings/<booking>/invite"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Reads a call booking's .ics invite, the one its customer's emails carry: it adds a booked call to a calendar, and calls off a canceled one.

#### Example

```json
{
  "filename": "string",
  "ics": "string"
}
```

- `filename` (`getCallBookingInvite.response.200.filename`; string, required) — The invite's file name, by the call's day in its host's time zone.
- `ics` (`getCallBookingInvite.response.200.ics`; string, required) — The iCalendar text, `text/calendar`; the same invite, by its uid, as the customer's mails carry.

### default

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

#### Example

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

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


Source: https://docs.sherpo.io/merchant-api/reference/get-call-booking-invite/index.md
