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

# Get an order by ID

> Retrieves a single order by ID including its order items.



## OpenAPI

````yaml openapi.json get /api/v1/orders/{id}
openapi: 3.0.3
info:
  title: Polinate External API
  version: 1.0.0
  description: >-
    External API for partners and services. Authentication via X-Business-Id and
    X-API-Key headers.


    Credentials location: In the Polinate app, navigate to Business Settings →
    Integrations to find your Business ID and API Key.
servers:
  - url: https://integrations.polinate.ai
    description: Production
security: []
tags:
  - name: Items
    description: >-
      Manage items and item variants. Auth: X-Business-Id and X-API-Key (see
      Business Settings → Integrations).
  - name: Buyers
    description: >-
      Create buyers and related contacts/locations. Auth: X-Business-Id and
      X-API-Key (see Business Settings → Integrations).
  - name: Pricing
    description: >-
      Create price lists and entries. Auth: X-Business-Id and X-API-Key (see
      Business Settings → Integrations).
  - name: Invoices
    description: >-
      List and update invoices. Auth: X-Business-Id and X-API-Key (see Business
      Settings → Integrations).
  - name: Orders
    description: >-
      Order ingestion. Auth: X-Business-Id and X-API-Key (see Business Settings
      → Integrations).
paths:
  /api/v1/orders/{id}:
    get:
      tags:
        - Orders
      summary: Get an order by ID
      description: Retrieves a single order by ID including its order items.
      operationId: getOrder
      parameters:
        - schema:
            type: string
            example: ord_123
          required: true
          name: id
          in: path
        - schema:
            type: string
            description: >-
              Business identifier for external auth. Find in Polinate app →
              Business Settings → Integrations.
            example: '{{businessId}}'
          required: true
          name: X-Business-Id
          in: header
        - schema:
            type: string
            description: >-
              Per-business API key for external auth. Find in Polinate app →
              Business Settings → Integrations.
            example: '{{apiKey}}'
          required: true
          name: X-API-Key
          in: header
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
              example:
                id: ord_123
                phase: ACTIVE
                status: ACCEPTED
                orderItems: []
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '429':
          description: Rate limited
          headers:
            Retry-After:
              schema:
                type: string
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
components:
  schemas:
    Order:
      type: object
      properties:
        id:
          type: string
        partnershipId:
          type: string
          description: The business partnership this order belongs to
        membershipId:
          type: string
          nullable: true
        integrationId:
          type: string
          nullable: true
        phase:
          type: string
          enum:
            - DRAFT
            - PENDING
            - DELETED
            - ACTIVE
            - ARCHIVED
            - REJECTED
            - CANCELLED
        status:
          type: string
          enum:
            - UNASSIGNED
            - ACCEPTED
            - PACKED
            - IN_TRANSIT
            - DELIVERED
            - RETURNED
            - NOT_APPLICABLE
        internalReference:
          type: string
        externalReference:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        deliveryAddress:
          type: string
          nullable: true
        expectedDeliveryAt:
          type: string
          format: date-time
        deliveredAt:
          type: string
          nullable: true
          format: date-time
        shippedAt:
          type: string
          nullable: true
          format: date-time
        currency:
          type: string
        totalAmount:
          type: string
          description: Decimal as string
        properties:
          type: object
          nullable: true
          properties: {}
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        orderItems:
          type: array
          items:
            $ref: '#/components/schemas/OrderItem'
      required:
        - id
        - partnershipId
        - internalReference
        - expectedDeliveryAt
        - currency
        - totalAmount
        - createdAt
        - updatedAt
    StandardError:
      type: object
      properties:
        errorCode:
          type: string
        message:
          type: string
        fieldErrors:
          type: object
          additionalProperties:
            type: string
      required:
        - errorCode
        - message
    OrderItem:
      type: object
      properties:
        id:
          type: string
        orderId:
          type: string
        lineNumber:
          type: number
        itemListEntryId:
          type: string
        itemListEntry:
          type: object
          properties:
            itemVariantId:
              type: string
            itemVariant:
              type: object
              properties:
                itemId:
                  type: string
              required:
                - itemId
          required:
            - itemVariantId
            - itemVariant
        quantity:
          type: number
        unitOfMeasure:
          type: string
        currency:
          type: string
        price:
          type: string
          description: Decimal as string
        cost:
          type: string
          description: Decimal as string
        properties:
          type: object
          nullable: true
          properties: {}
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - orderId
        - lineNumber
        - itemListEntryId
        - itemListEntry
        - quantity
        - unitOfMeasure
        - currency
        - price
        - cost
        - createdAt
        - updatedAt

````