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

# Cancel an order

> Releases the hold now rather than in 15 minutes.



## OpenAPI

````yaml /api-reference/storefront-openapi.json post /v1/events/{publicId}/orders/{orderNumber}/cancel
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}/cancel:
    post:
      tags:
        - Checkout
      summary: Cancel an order
      description: Releases the hold now rather than in 15 minutes.
      parameters:
        - schema:
            type: string
          required: true
          name: publicId
          in: path
        - schema:
            type: string
          required: true
          name: orderNumber
          in: path
      responses:
        '200':
          description: The hold is released.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - cancelled
                required:
                  - status
        '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:
    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.

````