---
title: "Reads the customer's ticket to an event: its code for the door's QR code, its status and type, and the sessions it let them in at."
---

> 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 › ticket

`GET /v1/stores/{store}/products/{product}/ticket`

## Authentication

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

## Path parameters

- `store` (`getTicket.path.store`; string, required) — A hostname of the store.
- `product` (`getTicket.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/ticket' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/ticket';
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/customer/v1/stores/<store>/products/<product>/ticket"

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

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

print(response.text)
```

## Responses

### 200

Reads the customer's ticket to an event: its code for the door's QR code, its status and type, and the sessions it let them in at.

#### Example

```json
{
  "product_id": "string",
  "ticket_code": "string",
  "status": "string",
  "cancel_reason": "string",
  "canceled_at": "string",
  "tier": {
    "id": "string",
    "name": "string",
    "rank": 0
  },
  "registered_at": "string",
  "check_ins": [
    {
      "session_id": "string",
      "checked_in_at": "string"
    }
  ]
}
```

- `product_id` (`getTicket.response.200.product_id`; string, required)
- `ticket_code` (`getTicket.response.200.ticket_code`; any of, required) — What the ticket's QR code holds, shown at the door; null while a code is still being minted.
  - any of: `string`, `null`
- `status` (`getTicket.response.200.status`; string, required) — `going` while it lets them in, `pending` or `waitlisted` while their request waits, `canceled` once it no longer does.
- `cancel_reason` (`getTicket.response.200.cancel_reason`; any of, required) — Why it no longer lets them in: `refunded`, `revoked`, `expired`, `declined`, or `canceled` when the seller canceled the event; null unless canceled.
  - any of: `string`, `null`
- `canceled_at` (`getTicket.response.200.canceled_at`; any of, required)
  - any of: `string`, `null`
- `tier` (`getTicket.response.200.tier`; any of, required) — Their ticket type; null for access with no tier.
  - any of: `object`, `null`
- `registered_at` (`getTicket.response.200.registered_at`; string, required)
- `check_ins` (`getTicket.response.200.check_ins`; array<object>, required) — The sessions it let them in at, earliest first.
  - `session_id` (`getTicket.response.200.check_ins.session_id`; string, required)
  - `checked_in_at` (`getTicket.response.200.check_ins.checked_in_at`; string, required)

### 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` (`getTicket.response.default.type`; string, required)
  - format `uri`
- `title` (`getTicket.response.default.title`; string, required)
- `status` (`getTicket.response.default.status`; integer, required)
- `detail` (`getTicket.response.default.detail`; string, required)
- `code` (`getTicket.response.default.code`; string, optional)
- `context` (`getTicket.response.default.context`; object, optional)
- `reached_core` (`getTicket.response.default.reached_core`; boolean, optional)
- `core_answer` (`getTicket.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/customer-api/reference/get-ticket/index.md
