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

# Get an order



## OpenAPI

````yaml /openapi.yaml get /orders/{order_id}
openapi: 3.1.0
info:
  title: Lula Commerce API
  version: '1.0'
  summary: Connect your systems to every Lula ordering channel.
  description: |
    The Lula Commerce API connects your point of sale, pricebook, kitchen, and
    finance systems to Lula Direct and to the third-party marketplaces Lula
    manages for you (DoorDash, Uber Eats, Grubhub).

    One integration covers every channel. Update an item once and Lula applies
    the change to your own storefront and to each marketplace.

    All requests are made over HTTPS. All request and response bodies are JSON
    unless noted. Timestamps are ISO 8601 in UTC. Money is expressed as an
    integer amount in minor units (cents) with an ISO 4217 currency code.
  contact:
    name: Lula Partner Engineering
    email: support@luladelivery.com
servers:
  - url: https://api.lulacommerce.com/v1
    description: Production
  - url: https://sandbox.api.lulacommerce.com/v1
    description: Sandbox
security:
  - oauth2: []
tags:
  - name: Authentication
    description: Exchange client credentials for an access token.
  - name: Stores
    description: Store profile, operating status, hours, and pause controls.
  - name: Channels
    description: Per-store state of each ordering channel.
  - name: Catalog
    description: Your product catalog, enriched with attributes.
  - name: Store Inventory
    description: Store-level price, quantity, and status for each item.
  - name: Availability
    description: Real-time item availability across every channel.
  - name: Recalls
    description: Chain-wide item holds for recalls and supply issues.
  - name: Components
    description: >-
      Ingredients that products are built from, for ingredient-level
      availability.
  - name: Menus
    description: Published menus, categories, and modifier groups.
  - name: Promotions
    description: Run the same deal on every channel.
  - name: Orders
    description: Read orders and drive them through fulfillment.
  - name: Order Destinations
    description: Deliver orders directly into your existing order API.
  - name: Reporting
    description: Sales, reconciliation, and payout data.
  - name: Exports and Data Feeds
    description: On-demand exports and scheduled file delivery.
  - name: Webhooks
    description: Register endpoints to receive events.
  - name: Events
    description: The full event history, for catch-up and audit.
  - name: Jobs
    description: Track asynchronous batch operations.
  - name: Sandbox
    description: Simulate orders and outside events in the sandbox.
paths:
  /orders/{order_id}:
    parameters:
      - $ref: '#/components/parameters/OrderId'
    get:
      tags:
        - Orders
      summary: Get an order
      operationId: getOrder
      responses:
        '200':
          description: The order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - oauth2:
            - orders:read
components:
  parameters:
    OrderId:
      name: order_id
      in: path
      required: true
      schema:
        type: string
      example: ord_01J9ZR8M3T5X
  schemas:
    Order:
      type: object
      properties:
        id:
          type: string
          example: ord_01J9ZR8M3T5X
        display_id:
          type: string
          description: Short code shown to the customer and courier.
          example: 4K7R
        store_id:
          type: string
        channel:
          $ref: '#/components/schemas/Channel'
        channel_order_id:
          type: string
        external_order_id:
          type:
            - string
            - 'null'
          description: >-
            Your system's order number, from an order destination or set with
            the API.
        status:
          $ref: '#/components/schemas/OrderStatus'
        previous_status:
          $ref: '#/components/schemas/OrderStatus'
        fulfillment:
          type: object
          properties:
            type:
              type: string
              enum:
                - delivery
                - pickup
            scheduled_for:
              type:
                - string
                - 'null'
              format: date-time
            prep_time_minutes:
              type:
                - integer
                - 'null'
            estimated_ready_at:
              type:
                - string
                - 'null'
              format: date-time
            courier:
              type:
                - object
                - 'null'
              properties:
                name:
                  type: string
                status:
                  type: string
                  enum:
                    - assigned
                    - arriving
                    - at_store
                    - picked_up
                    - delivered
                estimated_arrival_at:
                  type:
                    - string
                    - 'null'
                  format: date-time
        customer:
          type: object
          description: Limited to what the store needs to fulfill the order.
          properties:
            first_name:
              type: string
            last_initial:
              type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/OrderItem'
        totals:
          type: object
          properties:
            subtotal:
              $ref: '#/components/schemas/Money'
            discount:
              $ref: '#/components/schemas/Money'
            tax:
              $ref: '#/components/schemas/Money'
            tip:
              $ref: '#/components/schemas/Money'
            delivery_fee:
              $ref: '#/components/schemas/Money'
            service_fee:
              $ref: '#/components/schemas/Money'
            total:
              $ref: '#/components/schemas/Money'
        payment:
          type: object
          description: >-
            Orders are paid before they reach the store. Use this to release
            orders in your POS without collecting payment.
          properties:
            status:
              type: string
              enum:
                - paid
                - partially_refunded
                - refunded
            collected_by:
              type: string
              enum:
                - channel
                - lula
            amount_paid:
              $ref: '#/components/schemas/Money'
            tenders:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - card
                      - wallet
                      - ebt_snap
                      - loyalty
                      - gift_card
                  amount:
                    $ref: '#/components/schemas/Money'
        notes:
          type:
            - string
            - 'null'
        age_verification_required:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Channel:
      type: string
      enum:
        - lula_direct
        - doordash
        - ubereats
        - grubhub
    OrderStatus:
      type: string
      enum:
        - placed
        - accepted
        - preparing
        - ready
        - picked_up
        - delivered
        - completed
        - rejected
        - cancelled
    OrderItem:
      type: object
      properties:
        id:
          type: string
        external_id:
          type: string
        name:
          type: string
        quantity:
          type: integer
        unit_price:
          $ref: '#/components/schemas/Money'
        total_price:
          $ref: '#/components/schemas/Money'
        station:
          type: string
          enum:
            - kitchen
            - retail
        special_instructions:
          type:
            - string
            - 'null'
        modifiers:
          type: array
          items:
            type: object
            properties:
              group_name:
                type: string
              option_name:
                type: string
              quantity:
                type: integer
              price:
                $ref: '#/components/schemas/Money'
        status:
          type: string
          enum:
            - ordered
            - removed
            - reduced
            - substituted
    Money:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          description: Amount in minor units (cents).
          example: 249
        currency:
          type: string
          example: USD
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - permission_error
                - not_found
                - invalid_request
                - conflict
                - rate_limited
                - server_error
            code:
              type: string
              example: invalid_external_id
            message:
              type: string
            request_id:
              type: string
              example: req_01J9ZS2B6C8D
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
  responses:
    NotFound:
      description: The resource does not exist or is not accessible with these credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.0 client credentials. Send the token in the header
        `Authorization: Bearer <token>`.
      flows:
        clientCredentials:
          tokenUrl: https://api.lulacommerce.com/v1/oauth/token
          scopes:
            stores:read: Read stores, status, hours, and channels.
            stores:write: Pause and resume stores, set hours, toggle channels.
            catalog:read: Read products, store items, menus, and jobs.
            catalog:write: Create and update products, store items, and modifier groups.
            availability:write: Change item availability and manage recalls.
            orders:read: Read orders.
            orders:write: Accept, reject, adjust, complete, and cancel orders.
            reports:read: Read sales, reconciliation, payouts, exports, and data feeds.
            webhooks:manage: Manage webhook endpoints.

````

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