> ## Documentation Index
> Fetch the complete documentation index at: https://docs.marzipan.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Event Statistics

> Retrieve aggregate statistics for an event, including tickets sold and available, revenue totals, check-in and attendance counts, waitlist size, and cancellations. Revenue values are returned in the store's major currency unit.



## OpenAPI

````yaml /api-reference/openapi.json get /events/{event}/stats
openapi: 3.0.0
info:
  title: Marzipan API
  version: 1.0.0
servers:
  - url: https://api.marzipan.co/v1
security:
  - tenantAuth: []
tags:
  - name: Account
    description: >-
      Account management endpoints including registration, login, and user
      details
  - name: Carts
    description: Shopping cart management endpoints
  - name: Products
    description: Product catalog and search endpoints
  - name: Subscriptions
    description: Subscription management and renewal endpoints
  - name: CMS
    description: Content management system endpoints
  - name: Messaging
    description: Message and communication endpoints
  - name: Search
    description: Search functionality endpoints
  - name: Settings
    description: >-
      Storefront settings and market detection used to configure the web
      components and checkout.
  - name: Analytics
    description: Storefront visit and attribution tracking.
  - name: Rewards
    description: >-
      Loyalty and rewards programme endpoints for the authenticated customer,
      covering points balance, tier status, perks, exclusive products and
      transaction history.
  - name: Forms
    description: Render and submit dynamic storefront forms defined in the CMS.
  - name: Events
    description: >-
      Check event availability, browse occurrences and recurring dates, generate
      ticket QR codes, and manage event waitlists (join, leave, check status,
      and claim promoted spots).
paths:
  /events/{event}/stats:
    parameters:
      - name: event
        in: path
        required: true
        description: The unique identifier of the event.
        schema:
          type: string
          format: uuid
        example: b7a4c2e1-8f3d-4a6b-9c2e-1d5f7a8b3c4d
    get:
      tags:
        - Events
      summary: Get Event Statistics
      description: >-
        Retrieve aggregate statistics for an event, including tickets sold and
        available, revenue totals, check-in and attendance counts, waitlist
        size, and cancellations. Revenue values are returned in the store's
        major currency unit.
      parameters: []
      responses:
        '200':
          description: Event statistics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventStats'
              example:
                ticketsSold: 58
                ticketsAvailable: 42
                maxTickets: 100
                maxTicketsPerOrder: 6
                totalRevenue: 2320
                outstandingRevenue: 150
                checkedIn: 12
                attending: 58
                waitlist: 3
                cancelled: 4
        '404':
          description: Event not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: No query results for model [Event].
components:
  schemas:
    EventStats:
      type: object
      description: >-
        Aggregate statistics for an event. Revenue values are in the store's
        major currency unit.
      properties:
        ticketsSold:
          type: integer
          description: The total number of tickets sold.
        ticketsAvailable:
          type: integer
          description: The number of tickets still available.
        maxTickets:
          type: integer
          nullable: true
          description: The maximum ticket capacity, or null if uncapped.
        maxTicketsPerOrder:
          type: integer
          nullable: true
          description: The maximum tickets allowed per order.
        totalRevenue:
          type: number
          description: Total revenue from tickets sold.
        outstandingRevenue:
          type: number
          description: Outstanding balances still due.
        checkedIn:
          type: integer
          description: The number of attendees checked in.
        attending:
          type: integer
          description: The number of tickets attending.
        waitlist:
          type: integer
          description: The number of pending waitlist entries.
        cancelled:
          type: integer
          description: The number of cancelled or refunded tickets.
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
      required:
        - message
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT

````