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

# Get order by ID

> Use this endpoint to retrieve a single order by its identifier with full detail - line items, recipient, shipping address, fulfillments with tracking information, tags, and metadata. Use this when you need detail beyond what's returned by GET /v3/orders (which returns the same shape) - typically for a single-order detail view or to refresh tracking information.

###### Required fields:
- `orderId` - the order identifier, passed as a path parameter.
- `Snappy-Account-Id` header - the Account the order belongs to.

###### Please note:
- Returns `404` if no order exists for the supplied `orderId`, or if it exists but belongs to a different Company. Existence is intentionally hidden across Companies.
- Returns `409` when the order is still being prepared. Retry the request shortly.
- `fulfillments` is an empty array (`[]`) when the order has not yet been shipped or when tracking information is unavailable.
- `cancellationDetails` is populated only when status is cancelled; null otherwise.
- `metadata` is null when no metadata was supplied at order creation.
- `shippingAddress` is populated in full for physical orders. For digital orders (e.g. gift cards, where the variant's `shippingRequired` is `false`), only `countryCode` is present - the other address fields are omitted since there's no physical delivery.
- PII fields (`recipient name`, `tracking info`) are masked under the `orders:read:masked` scope and returned in full under `orders:read:unmasked`.

#### Permissions
- Requires: `orders:read:masked` or `orders:read:unmasked`



## OpenAPI

````yaml get /v3/orders/{orderId}
openapi: 3.0.3
info:
  title: Snappy Public API v3
  version: 3.0.0
  contact:
    name: Snappy Support
    email: info@snappy.com
  description: >-
    Welcome to the Snappy API reference documentation!

    You can use this API to integrate with Snappy and spread smiles to your
    employees/clients/customers and much more.

    So let's get started!
servers:
  - url: https://api.snappy.com/public-api
    description: Base API URL
  - url: https://mtls-api.snappy.com/public-api
    description: >-
      ## mTLS URL

      You can also use mTLS to enhance your API security. To get your specific
      certificates please contact our support.

      Once you configure the certificated correctly, you need to also update
      endpoints to use the following secure api base URL:
security: []
tags:
  - name: Products
    description: >-
      Use these endpoints to retrieve products and tags for building catalog and
      browse experiences in your UI.
  - name: Collections
    description: >-
      Use these endpoints to retrieve products within curated collections for
      marketplace and browse experiences.
  - name: Variants
    description: >-
      Use these endpoints to retrieve variants, variant pricing, and country
      availability for orderable product SKUs.
  - name: Billing Methods
    description: >-
      A **Billing Method** is the funding source attached to an **Account** -
      for example, a Purchase Order (PO), Invoice, Prepay deposit, or Credit
      Card. Use these endpoints to retrieve billing method details such as
      remaining balance, status, and expiration.
  - name: Accounts
    description: >-
      An **Account** is a sub-entity within a **Company**, used to organize
      campaigns and gift sends. Use these endpoints to list, retrieve, and
      create accounts.
  - name: API Keys
    description: >-
      Use these endpoints to manage API keys for programmatic access. Key
      management requires company owner privileges.
  - name: Orders
    description: >-
      Use these endpoints to place, retrieve, cancel, and validate orders and
      shipping addresses.
  - name: Digital cards
    description: Use these endpoints to create, retrieve, and access digital cards.
  - name: Base products
    description: Browse swag product templates and their available variants.
  - name: Base variants
    description: Retrieve individual orderable variants of swag product templates.
  - name: Designs
    description: >-
      A **Design** is a logo-based swag design that can be applied to base
      products. Use these endpoints to retrieve your designs and their tags.
paths:
  /v3/orders/{orderId}:
    get:
      tags:
        - Orders
      summary: Get an order by ID - v3
      description: >-
        Use this endpoint to retrieve a single order by its identifier with full
        detail - line items, recipient, shipping address, fulfillments with
        tracking information, tags, and metadata. Use this when you need detail
        beyond what's returned by GET /v3/orders (which returns the same shape)
        - typically for a single-order detail view or to refresh tracking
        information.


        ###### Required fields:

        - `orderId` - the order identifier, passed as a path parameter.

        - `Snappy-Account-Id` header - the Account the order belongs to.


        ###### Please note:

        - Returns `404` if no order exists for the supplied `orderId`, or if it
        exists but belongs to a different Company. Existence is intentionally
        hidden across Companies.

        - Returns `409` when the order is still being prepared. Retry the
        request shortly.

        - `fulfillments` is an empty array (`[]`) when the order has not yet
        been shipped or when tracking information is unavailable.

        - `cancellationDetails` is populated only when status is cancelled; null
        otherwise.

        - `metadata` is null when no metadata was supplied at order creation.

        - `shippingAddress` is populated in full for physical orders. For
        digital orders (e.g. gift cards, where the variant's `shippingRequired`
        is `false`), only `countryCode` is present - the other address fields
        are omitted since there's no physical delivery.

        - PII fields (`recipient name`, `tracking info`) are masked under the
        `orders:read:masked` scope and returned in full under
        `orders:read:unmasked`.


        #### Permissions

        - Requires: `orders:read:masked` or `orders:read:unmasked`
      parameters:
        - schema:
            type: string
            pattern: ^[A-Za-z0-9]{8,}$
            description: The unique identifier of the order to retrieve.
            example: G7nR4bD9mK
          required: true
          description: The unique identifier of the order to retrieve.
          name: orderId
          in: path
        - schema:
            type: string
            minLength: 1
            description: Required. Account identifier.
            example: acc123456
          required: true
          description: Required. Account identifier.
          name: snappy-account-id
          in: header
      responses:
        '200':
          description: Order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingleOrderResponseV3'
        '400':
          description: Bad Request - Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseV3'
        '404':
          description: Not Found - Order does not exist or is not visible to this company.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseV3'
        '409':
          description: Conflict - Order is still processing. Retry the request shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseV3'
      security:
        - ApiKeyAuthentication: []
components:
  schemas:
    SingleOrderResponseV3:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/OrderResponseV3'
      required:
        - data
      description: JSON:API single-resource envelope for an order.
    ErrorResponseV3:
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.
          example: Product not found.
        errorCode:
          type: string
          description: Structured error code.
          example: 404_PROD_001
        errors:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
                example: Product with id 'q1w2e3r4t5' was not found
              path:
                type: string
                description: Dot-separated path to the field that caused the error.
                example: pathParameters.productId
              errorCode:
                type: string
                example: 404_PROD_001
            required:
              - message
              - path
          description: Optional field-level error details.
      required:
        - message
        - errorCode
      description: Standard v3 error envelope.
    OrderResponseV3:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the order.
          example: G7nR4bD9mK
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the order was created (ISO 8601).
          example: '2026-05-27T10:30:00.000Z'
        status:
          type: string
          enum:
            - active
            - completed
            - cancelled
            - refunded
          description: >-
            Overall commercial lifecycle of the order. `active`: order is being
            processed or in fulfillment. `completed`: order has been fulfilled
            and finalized. `cancelled`: order was cancelled before fulfillment.
            `refunded`: order was returned and refunded after delivery.
          example: active
        fulfillmentStatus:
          type: string
          enum:
            - unfulfilled
            - fulfilled
            - cancelled
          description: >-
            Aggregated fulfillment status across all line items. `unfulfilled`:
            no fulfillments exist. `fulfilled`: all line items covered by a
            fulfillment. `cancelled`: order fulfillment was cancelled.
          example: unfulfilled
        tags:
          type: array
          items:
            type: string
          description: Tags associated with this order.
          example: []
        idempotencyKey:
          type: string
          nullable: true
          description: >-
            Idempotency key supplied at order creation. Useful for correlating
            an external request to its order.
          example: order-2026-05-13-abc
        externalId:
          type: string
          nullable: true
          description: >-
            Identifier from your system supplied at order creation, used to
            correlate this order with your internal records.
          example: ext-order-12345
        cancellationDetails:
          type: object
          nullable: true
          properties:
            cancelledAt:
              type: string
              format: date-time
              description: Timestamp when the order was cancelled (ISO 8601).
              example: '2026-05-27T15:57:00.000Z'
            cancellationReason:
              type: string
              enum:
                - customer_requested
              description: Reason the order was cancelled.
              example: customer_requested
          description: Populated only when the order is `cancelled`.
        lineItems:
          type: array
          items:
            $ref: '#/components/schemas/LineItemV3'
          description: Products included in this order.
        fulfillments:
          type: array
          items:
            $ref: '#/components/schemas/FulfillmentV3'
          description: >-
            Fulfillment records for this order. Empty when the order has not yet
            been shipped or when tracking information is unavailable.
        recipient:
          $ref: '#/components/schemas/OrderResponseRecipientV3'
        shippingAddress:
          $ref: '#/components/schemas/ShippingAddressV3'
        metadata:
          type: object
          nullable: true
          additionalProperties:
            type: string
            maxLength: 500
            pattern: ^[a-zA-Z0-9\s\-_.]+$
          maxProperties: 50
          description: >-
            Custom key-value pairs attached at order creation. May include
            `externalRecipientId` for correlating with your internal systems.
          example:
            key1: value1
            key2: value2
      required:
        - id
        - createdAt
        - status
        - fulfillmentStatus
        - tags
        - lineItems
        - fulfillments
      description: >-
        Order details including line items, recipient, shipping address,
        fulfillments, and tracking information.
    LineItemV3:
      type: object
      properties:
        variantId:
          type: string
          description: Variant ID of the ordered product.
          example: v_abc12345
        title:
          type: string
          description: Product title at the time of order.
          example: Premium Gift Card
        quantity:
          type: integer
          minimum: 1
          description: Quantity ordered.
          example: 1
      required:
        - variantId
        - quantity
    FulfillmentV3:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for this fulfillment record.
          example: tr_abc123
        status:
          type: string
          enum:
            - confirmed
            - processing
            - inTransit
            - outForDelivery
            - delivered
          description: >-
            Carrier delivery progress for a single fulfillment. `confirmed`:
            order received by the vendor. `processing`: being prepared for
            shipment. `inTransit`: shipped and in transit. `outForDelivery`: out
            for delivery. `delivered`: delivered to the recipient.
          example: inTransit
        trackingCompany:
          type: string
          description: Carrier name (e.g. UPS, USPS, FedEx).
          example: UPS
        trackingInfo:
          $ref: '#/components/schemas/TrackingInfoV3'
        fulfillmentLineItems:
          type: array
          items:
            $ref: '#/components/schemas/LineItemV3'
          description: Line items included in this fulfillment.
      required:
        - fulfillmentLineItems
    OrderResponseRecipientV3:
      type: object
      nullable: true
      properties:
        firstName:
          type: string
          description: Recipient's first name.
          example: John
        lastName:
          type: string
          description: Recipient's last name.
          example: Doe
        email:
          type: string
          description: Recipient's email address.
          example: john.doe@example.com
        phone:
          type: string
          description: Recipient's phone number in E.164 format.
          example: '+15555555555'
      required:
        - firstName
    ShippingAddressV3:
      type: object
      nullable: true
      properties:
        address1:
          type: string
          description: Primary street address line.
          example: 123 Main St
        address2:
          type: string
          description: Secondary address line (apartment, suite, etc.).
          example: Suite A
        city:
          type: string
          description: City name.
          example: New York
        provinceCode:
          type: string
          description: State or province code (e.g., NY, CA, ON).
          example: NY
        countryCode:
          type: string
          description: Two-letter ISO 3166-1 alpha-2 country code.
          example: US
        postalCode:
          type: string
          description: Postal code or ZIP code.
          example: '10001'
    TrackingInfoV3:
      type: object
      properties:
        number:
          type: string
          description: Carrier tracking number.
          example: 1Z9999W99999999999
        url:
          type: string
          description: Tracking page URL provided by the carrier.
          example: https://www.ups.com/track?tracknum=1Z9999W99999999999
  securitySchemes:
    ApiKeyAuthentication:
      type: apiKey
      in: header
      name: X-Api-Key
      description: |-
        ## Company Level Authentication

        Include your API key in the `X-Api-Key` header for every request:
        ```
        X-Api-Key: YOUR_API_KEY
        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.