---
title: "Counts an event's attendees: going, canceled by reason, going by tier, and the spots its capacity leaves."
---

> 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}/products/{product}/attendees/stats`

## Authentication

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

## Path parameters

- `store` (`eventAttendeeStats.path.store`; string, required) — The store's id.
- `product` (`eventAttendeeStats.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Counts an event's attendees: going, canceled by reason, going by tier, and the spots its capacity leaves.

#### Example

```json
{
  "going": 0,
  "pending": 0,
  "waitlisted": 0,
  "canceled": 0,
  "canceled_by_reason": {
    "expired": 0,
    "revoked": 0,
    "refunded": 0,
    "canceled": 0,
    "declined": 0
  },
  "going_by_tier": [
    {
      "tier": {
        "id": "string",
        "name": "string",
        "rank": 0
      },
      "going": 0
    }
  ],
  "checked_in_by_session": [
    {
      "session_id": "string",
      "checked_in": 0
    }
  ],
  "capacity": 0,
  "remaining": 0,
  "held_by_requests": 0,
  "subscriptions": 0
}
```

- `going` (`eventAttendeeStats.response.200.going`; number, required)
- `pending` (`eventAttendeeStats.response.200.pending`; number, required) — Who waits for the seller's approval.
- `waitlisted` (`eventAttendeeStats.response.200.waitlisted`; number, required) — Who waits on the waitlist for a seat.
- `canceled` (`eventAttendeeStats.response.200.canceled`; number, required)
- `canceled_by_reason` (`eventAttendeeStats.response.200.canceled_by_reason`; object, required)
  - `expired` (`eventAttendeeStats.response.200.canceled_by_reason.expired`; number, required)
  - `revoked` (`eventAttendeeStats.response.200.canceled_by_reason.revoked`; number, required)
  - `refunded` (`eventAttendeeStats.response.200.canceled_by_reason.refunded`; number, required)
  - `canceled` (`eventAttendeeStats.response.200.canceled_by_reason.canceled`; number, required)
  - `declined` (`eventAttendeeStats.response.200.canceled_by_reason.declined`; number, required)
- `going_by_tier` (`eventAttendeeStats.response.200.going_by_tier`; array<object>, required) — Who is going per tier, highest first; a null tier is access with no tier.
  - `tier` (`eventAttendeeStats.response.200.going_by_tier.tier`; any of, required)
    - any of: `object`, `null`
  - `going` (`eventAttendeeStats.response.200.going_by_tier.going`; number, required)
- `checked_in_by_session` (`eventAttendeeStats.response.200.checked_in_by_session`; array<object>, required) — How many were let in at each session that let anyone in.
  - `session_id` (`eventAttendeeStats.response.200.checked_in_by_session.session_id`; string, required)
  - `checked_in` (`eventAttendeeStats.response.200.checked_in_by_session.checked_in`; number, required)
- `capacity` (`eventAttendeeStats.response.200.capacity`; any of, required) — The event's own capacity; null when it sets none, or stores one no write could make.
  - any of: `number`, `null`
- `remaining` (`eventAttendeeStats.response.200.remaining`; any of, required) — The seats left to sell, as checkout counts them (a grant takes none), held to each ticket type's capacity too; null unless the event is capped, or at least one ticket type is on sale and every one is; none once it is canceled.
  - any of: `number`, `null`
- `held_by_requests` (`eventAttendeeStats.response.200.held_by_requests`; integer, required) — Of the seats taken, those requests waiting for approval hold.
  - min 0
- `subscriptions` (`eventAttendeeStats.response.200.subscriptions`; integer, required) — Subscriptions to the event still running, which a cancellation stops billing.
  - min 0

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


Source: https://docs.sherpo.io/merchant-api/reference/event-attendee-stats/index.md
