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

# Confirm an order

> A free order settles right here and fulfils into its registration. A paid order is claimed (`status: "awaiting_payment"`, hold stretched to 35 minutes) and the answer carries the hosted Stripe page — `successUrl`/`cancelUrl` say where Stripe sends the buyer back on your site. Settlement arrives by the platform's webhook: poll the order until `paid`.



## OpenAPI

````yaml /api-reference/storefront-openapi.json post /v1/events/{publicId}/orders/{orderNumber}/confirm
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/{orderNumber}/confirm:
    post:
      tags:
        - Checkout
      summary: Confirm an order
      description: >-
        A free order settles right here and fulfils into its registration. A
        paid order is claimed (`status: "awaiting_payment"`, hold stretched to
        35 minutes) and the answer carries the hosted Stripe page —
        `successUrl`/`cancelUrl` say where Stripe sends the buyer back on your
        site. Settlement arrives by the platform's webhook: poll the order until
        `paid`.
      parameters:
        - schema:
            type: string
          required: true
          name: publicId
          in: path
        - schema:
            type: string
          required: true
          name: orderNumber
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                successUrl:
                  type: string
                  maxLength: 2000
                cancelUrl:
                  type: string
                  maxLength: 2000
      responses:
        '200':
          description: Settled (free), or claimed with the Stripe page to pay on.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - paid
                      registration:
                        $ref: '#/components/schemas/StorefrontRegistrationOutcome'
                      created:
                        type: boolean
                    required:
                      - status
                      - registration
                      - created
                  - type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - awaiting_payment
                      paymentUrl:
                        type: string
                    required:
                      - status
                      - paymentUrl
        '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
    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.

````