> ## 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 Ticket QR Code

> Generate (if necessary) and return a scannable QR code for an event ticket. The QR code is returned as a base64-encoded SVG data URI suitable for direct display.



## OpenAPI

````yaml /api-reference/openapi.json get /events/tickets/{ticket}/qr-code
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/tickets/{ticket}/qr-code:
    parameters:
      - name: ticket
        in: path
        required: true
        description: The unique identifier of the event ticket.
        schema:
          type: string
          format: uuid
        example: c4d5e6f7-8a9b-40c1-92d3-e4f5a6b7c8d9
    get:
      tags:
        - Events
      summary: Get Ticket QR Code
      description: >-
        Generate (if necessary) and return a scannable QR code for an event
        ticket. The QR code is returned as a base64-encoded SVG data URI
        suitable for direct display.
      parameters: []
      responses:
        '200':
          description: The ticket QR code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  qrCode:
                    type: string
                    description: Base64-encoded SVG data URI of the QR code image.
                  ticketId:
                    type: string
                    format: uuid
                    description: The identifier of the ticket.
              example:
                qrCode: data:image/svg+xml;base64,PHN2ZyB4bWxucz0i...
                ticketId: c4d5e6f7-8a9b-40c1-92d3-e4f5a6b7c8d9
        '404':
          description: Ticket not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: No query results for model [EventTicket].
components:
  schemas:
    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

````