> ## 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.

# Claim Waitlist Spot via Signed Link

> Claim a promoted waitlist spot using a signed link, automatically adding the event to a cart. If no cart is supplied, a new cart is created. If the event has a deposit enabled, the deposit amount is used as the line price. Returns the resulting cart.



## OpenAPI

````yaml /api-reference/openapi.json post /events/waitlist/claim
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/waitlist/claim:
    post:
      tags:
        - Events
      summary: Claim Waitlist Spot via Signed Link
      description: >-
        Claim a promoted waitlist spot using a signed link, automatically adding
        the event to a cart. If no cart is supplied, a new cart is created. If
        the event has a deposit enabled, the deposit amount is used as the line
        price. Returns the resulting cart.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - eventWaitlist
                - expires
                - signature
              properties:
                eventWaitlist:
                  type: string
                  format: uuid
                  description: The identifier of the waitlist entry.
                expires:
                  type: string
                  description: The expiry timestamp from the signed URL.
                signature:
                  type: string
                  description: The signature from the signed URL.
                cartId:
                  type: string
                  format: uuid
                  description: >-
                    An existing cart to add the event to. If omitted, a new cart
                    is created.
            example:
              eventWaitlist: 1a2b3c4d-5e6f-4071-8a9b-0c1d2e3f4a5b
              expires: '1786000000'
              signature: 9f8e7d6c5b4a3928170615243342515e6d7c8b9a0f1e2d3c4b5a6978
              cartId: 893ff86d-4453-4134-9f62-5c9b7a70d74e
      responses:
        '200':
          description: The waitlist spot was claimed and the event added to the cart.
          content:
            application/json:
              schema:
                type: object
                description: The cart resource with the event added.
                properties:
                  id:
                    type: string
                    format: uuid
                  email:
                    type: string
                    format: email
                  subtotal:
                    type: number
                  grandTotal:
                    type: number
              example:
                id: 893ff86d-4453-4134-9f62-5c9b7a70d74e
                email: alex@example.com
                subtotal: 80
                grandTotal: 80
        '422':
          description: >-
            The link is invalid or expired, the spot is no longer claimable, or
            the event is no longer available.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              example:
                message: The event waitlist field is required.
                errors:
                  eventWaitlist:
                    - The event waitlist field is required.
components:
  schemas:
    ValidationError:
      type: object
      properties:
        message:
          type: string
          description: Validation error message
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Field-specific validation errors
      required:
        - message
        - errors
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT

````