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

# Get an order by number

> The buyer's own order — the confirmation page's read, polled until `paid` for a paid order. The number is the credential; expiry reads lazily.



## OpenAPI

````yaml /api-reference/storefront-openapi.json get /v1/orders/{orderNumber}
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/orders/{orderNumber}:
    get:
      tags:
        - Checkout
      summary: Get an order by number
      description: >-
        The buyer's own order — the confirmation page's read, polled until
        `paid` for a paid order. The number is the credential; expiry reads
        lazily.
      parameters:
        - schema:
            type: string
          required: true
          name: orderNumber
          in: path
      responses:
        '200':
          description: The order and enough of its event to head the page.
          content:
            application/json:
              schema:
                type: object
                properties:
                  order:
                    allOf:
                      - $ref: '#/components/schemas/StorefrontOrder'
                      - type: object
                        properties:
                          email:
                            type: string
                          registrationStatus:
                            type:
                              - string
                              - 'null'
                        required:
                          - email
                          - registrationStatus
                  event:
                    type: object
                    properties:
                      publicId:
                        type: string
                      name:
                        type: string
                      startsAt:
                        type:
                          - string
                          - 'null'
                      timezone:
                        type: string
                    required:
                      - publicId
                      - name
                      - startsAt
                      - timezone
                required:
                  - order
                  - event
        '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'
        '429':
          description: Rate limit exceeded for this API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
components:
  schemas:
    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.

````