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

# Place an order

> Tickets, add-ons and bundles in one order, with an optional redemption code. The order holds its places for 15 minutes until confirmed. Signed in, `email` may be omitted (the session's address is used); anonymously it is required. A buyer already registered is acknowledged (`alreadyRegistered: true`) — never sold a second seat.



## OpenAPI

````yaml /api-reference/storefront-openapi.json post /v1/events/{publicId}/orders
openapi: 3.1.0
info:
  title: Orriven Storefront API
  version: '2026-08-22'
  description: >-
    The headless backend for your own event frontend — no backend of yours
    required. Authenticate every request with `Authorization: Bearer <opk_…>` (a
    publishable key, safe in browser code; it fronts exactly one portal).
    Attendee sign-in is email OTP — the platform sends the code — and the
    resulting session token travels in the `Orriven-Attendee-Token` header. The
    catalog never exposes counts, drafts or hidden ticket types; anything
    outside the portal answers 404.


    **Versioning** — date versions, the developer API's exact model: the key
    pins the version current at its creation, `Orriven-Version: YYYY-MM-DD`
    overrides per request, and every response echoes the effective version.
servers:
  - url: https://openapi.orriven.com/storefront
    description: Production
  - url: http://localhost:3002/storefront
    description: Local development
security:
  - publishableKey: []
paths:
  /v1/events/{publicId}/orders:
    post:
      tags:
        - Checkout
      summary: Place an order
      description: >-
        Tickets, add-ons and bundles in one order, with an optional redemption
        code. The order holds its places for 15 minutes until confirmed. Signed
        in, `email` may be omitted (the session's address is used); anonymously
        it is required. A buyer already registered is acknowledged
        (`alreadyRegistered: true`) — never sold a second seat.
      parameters:
        - schema:
            type: string
          required: true
          name: publicId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  maxLength: 320
                  format: email
                name:
                  type: string
                  maxLength: 200
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      itemType:
                        type: string
                        enum:
                          - registration_type
                          - addon
                          - bundle
                      itemId:
                        type: string
                        minLength: 1
                        maxLength: 100
                      quantity:
                        type: integer
                        minimum: 1
                        maximum: 100
                    required:
                      - itemType
                      - itemId
                      - quantity
                  maxItems: 50
                ticketTypeId:
                  type: string
                  minLength: 1
                  maxLength: 100
                redemptionCode:
                  type: string
                  minLength: 1
                  maxLength: 64
                responses:
                  type: object
                  additionalProperties: {}
                client:
                  type: object
                  properties:
                    timezone:
                      type: string
                      maxLength: 64
                    language:
                      type: string
                      maxLength: 32
                    screen:
                      type: string
                      maxLength: 32
                    platform:
                      type: string
                      maxLength: 64
                    fingerprint:
                      type: string
                      maxLength: 64
                    fingerprintEventId:
                      type: string
                      maxLength: 64
                    suspectScore:
                      type: number
                      minimum: 0
                      maximum: 100
      responses:
        '200':
          description: This email already holds a registration in the event.
          content:
            application/json:
              schema:
                type: object
                properties:
                  alreadyRegistered:
                    type: boolean
                    enum:
                      - true
                  registration:
                    $ref: '#/components/schemas/StorefrontRegistrationOutcome'
                required:
                  - alreadyRegistered
                  - registration
        '201':
          description: The pending order, holding its places.
          content:
            application/json:
              schema:
                type: object
                properties:
                  alreadyRegistered:
                    type: boolean
                    enum:
                      - false
                  order:
                    $ref: '#/components/schemas/StorefrontOrder'
                required:
                  - alreadyRegistered
                  - order
        '400':
          description: Invalid request body or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
        '401':
          description: >-
            Missing, unknown, revoked or expired API key — all indistinguishable
            on purpose.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
        '404':
          description: >-
            The resource does not exist in this key's business unit. A foreign
            id answers the same way.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
        '412':
          description: A business rule blocks the change (sold out, currency locked, …).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
        '429':
          description: Rate limit exceeded for this API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
components:
  schemas:
    StorefrontRegistrationOutcome:
      type: object
      properties:
        status:
          type: string
        type:
          type:
            - string
            - 'null'
      required:
        - status
        - type
    StorefrontOrder:
      type: object
      properties:
        orderNumber:
          type: string
        status:
          type: string
        totalAmount:
          type: integer
        currency:
          type: string
        taxAmount:
          type: integer
        discountAmount:
          type: integer
        expiresAt:
          type: string
        items:
          type: array
          items:
            type: object
            properties:
              itemType:
                type: string
              name:
                type: string
              quantity:
                type: integer
              unitAmount:
                type: integer
            required:
              - itemType
              - name
              - quantity
              - unitAmount
      required:
        - orderNumber
        - status
        - totalAmount
        - currency
        - taxAmount
        - discountAmount
        - expiresAt
        - items
    RpcStatus:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              example: 404
            status:
              type: string
              example: NOT_FOUND
            message:
              type: string
              example: Event not found.
            details:
              type: array
              items: {}
          required:
            - code
            - status
            - message
      required:
        - error
  securitySchemes:
    publishableKey:
      type: http
      scheme: bearer
      description: >-
        The publishable key (`opk_…`) — safe to embed in your frontend. Created
        per portal in the console, with the origins allowed to use it from a
        browser.

````