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

# Sales orders

> Get a paginated list of sales orders with optional filtering.

<Note>
**Syncing sales order data?** Use [`GET /sales-orders/export`](/api-reference/sales-orders/export-sales-orders)
instead. The export endpoint uses cursor-based pagination with a fixed time window, making it
significantly more reliable for incremental sync workflows than polling this list endpoint.
</Note>

<Note>
**Need to re-pull an order's data from its source channel?** Use [`POST /sales-orders/bulk-refresh`](/api-reference/sales-orders/bulk-refresh-sales-orders)
with body `{ "salesOrderIds": [id] }`. Pass a single ID to refresh one order; up to 100 IDs per request.
</Note>

For detailed information about the filtering system and available operators,
refer to the [Filter System Documentation](/filters).

## Available Filters

### String Filters
- `order_number`: Order reference number
- `order_status`: Order status
- `tag`: Order tags

### Date Filters
- `order_date`: Date the order was placed
- `ship_date`: Date the order was shipped

### DateTime Filters
- `created_at`: When the order was created
- `updated_at`: When the order was last updated

### Numeric Filters
- `total_quantity`: Total number of items
- `total`: Order total amount
- `total_shipping`: Shipping cost
- `total_tax`: Tax amount
- `total_paid`: Amount paid

### Integer Filters
- `channel_id`: Filter by the sales channel the order was received on

### Ship-To Address Filters
Filter on the order's shipping address (matched against the source shipTo JSON).
- `ship_to.state`: Ship-to state/province (full name as stored on the order, e.g. `California`)
- `ship_to.state_code`: Ship-to state/province code, falling back to the state value when no code is stored (e.g. `CA`)

On large tenants, combine ship-to filters with a date filter (e.g. `created_at`) — the shipping address is not indexed.

### Line Item Filters
- `item.tag`: Filter by sales orders containing line items with a specific tag

### Line Item Product Filters
Product filters allow you to filter by sales orders with line items connected to a specific product or set of products.
#### String Filters
- `product.name`: Filter by line item product name
- `product.description`: Filter by line item product description
- `product.sku`: Filter by line item product SKU (searches both internal SKU and alternate SKUs)
- `product.upc`: Filter by line item product UPC/Barcode
- `product.tag`: Filter by line item product tags
- `product.category.name`: Filter by line item product category name
- `product.sub_category.name`: Filter by line item product sub-category name
- `product.supplier.name`: Filter by line item product supplier name

#### Integer Filters
- `product.id`: Filter by line item product ID
- `product.category.id`: Filter by line item product category ID
- `product.sub_category.id`: Filter by line item product sub-category ID
- `product.supplier.id`: Filter by line item product supplier ID

#### Float Filters
- `product.retail_price`: Filter by line item product retail price
- `product.wholesale_price`: Filter by line item product wholesale price

#### Boolean Filters
- `product.sellable`: Filter by line item product sellable status
- `product.discontinued`: Filter by whether the line item product is discontinued

## Examples
```
# Find orders over $500 created this year
?total[gt]=500.00&created_at[gte]=2024-01-01 00:00:00

# Find recent urgent orders
?tag[eq]=urgent&created_at[gte]=2024-10-25 00:00:00

# Find orders with specific shipping costs
?total_shipping[gte]=10.00&total_shipping[lte]=50.00

# Find orders containing a specific product SKU
?product.sku[eq]=SKU-123

# Find orders with discontinued products
?product.discontinued[eq]=true

# Find orders with products from a specific supplier
?product.supplier.name[contains]=Acme

# Find a sales order containing a line item with a specific tag
?item.tag[eq]=urgent
```




## OpenAPI

````yaml /api-reference/build.yaml get /sales-orders
openapi: 3.0.0
info:
  title: Luminous API
  version: 1.0.0
  description: API documentation for Luminous
servers:
  - url: https://{companyName}.api.joinluminous.com/external/api/v1
    variables:
      companyName:
        default: companyName
        description: Your company-specific subdomain
security: []
tags:
  - name: Products
    description: Get and manage products
  - name: Pricing
    description: Manage price schedules, levels, and customizations
  - name: BOMs
    description: Manage Bills of Materials (BOMs)
  - name: Labels
    description: Label rendering via Labelary ZPL service
  - name: Companies
    description: Manage business accounts and their associated data
  - name: Contacts
    description: Manage contact information for individuals
  - name: Suppliers
    description: Manage suppliers (factories) — vendors used on purchase orders
  - name: Supplier SKUs
    description: Manage per-supplier SKU and unit-cost overrides for products
  - name: Locations
    description: Manage warehouses and locations
  - name: Inventory
    description: Get and adjust product stock levels
  - name: Lots
    description: Create, update, and delete product lots (batches)
  - name: Transfer Orders
    description: Manage transfer orders
  - name: Fulfillment Orders
    description: Manage fulfillment orders and picklists
  - name: Freight
    description: >-
      Freightview LTL freight — quotes, booking and documents for fulfillment
      orders
  - name: Fulfillment Priority Lists
    description: Configure fulfillment routing priority lists
  - name: Purchase Orders
    description: Get and modify purchase orders
  - name: Supplier Portal
    description: >-
      Read a supplier's response to a purchase order and control the one-click
      portal link
  - name: Receiving Reports
    description: Manage receiving reports
  - name: Defective Reports
    description: >-
      Record and list defective units received on purchase orders (Inventory >
      Defectives)
  - name: Payment Obligations
    description: Manage payment obligations for purchase orders
  - name: Sales Orders
    description: Manage sales orders and sales order shipments
  - name: Purgatory
    description: >-
      Inspect and resolve non-posted sales orders in the purgatory staging
      workflow
  - name: PickFlow Warehouse
    description: >-
      Warehouse-floor lookups for PickFlow — barcode resolution, bin and product
      stock, bin search, and receivables
  - name: PickFlow Shipping
    description: >-
      Provider-agnostic shipping rates, services, packages, and label purchase
      for PickFlow
  - name: Cycle Counts
    description: >-
      Create, drive, and post PickFlow cycle counts — batches, per-warehouse
      sessions, and CSV import/export
  - name: Print Stations
    description: List paired print stations and enqueue print jobs to them
  - name: Invoices
    description: Get and manage invoices
  - name: Work Orders
    description: >-
      Manage work orders — production lifecycle, steps, materials, links,
      shipments, and comments
  - name: Production Batches
    description: Group and manage work orders as production batches
  - name: Bills
    description: >-
      Accounts payable bill management, payments, attachments, allocations, and
      variance
  - name: Prepayments
    description: Manage vendor prepayments and applications
  - name: Vendor Credits
    description: Manage vendor credits and applications
  - name: Vendor Returns
    description: Manage vendor returns and credit generation
  - name: Customer Returns
    description: Manage customer returns (sales returns), receiving, and restock behavior
  - name: Stock Snapshot
    description: Point-in-time stock snapshots with export support
  - name: Consumption
    description: Consumption reports and exports
  - name: Inventory Aging
    description: Cost-layer-based inventory aging reports
  - name: Bills Reports
    description: Accounts payable bills aging reports
  - name: Forecast
    description: Materialized forecast data
  - name: Reports
    description: Close the books, inventory discrepancy, transaction COGS, and EDI reports
  - name: Tags
    description: Add/remove tags across various resources
  - name: Custom Fields
    description: Get and set custom fields across various resources
  - name: Approvals
    description: >-
      Approval rules that hold sales orders and supplier POs for sign-off, and
      their approver templates
  - name: Currency
    description: Currency configuration, exchange rates, and conversion
  - name: Drive
    description: >
      Browse, upload, tag and manage files in your Luminous Drive. An API token
      sees the shared

      drive only, never My Files or restricted folders and files. Every write
      and download made

      through the API is recorded in the file's activity log (`GET
      /file-cabinet/files/{id}/activity`)

      with `actor_kind: api_token`.
  - name: Integration Mappings
    description: Manage integration mappings for external systems
  - name: Integration Field Mappings
    description: Manage field-level mappings between Luminous and external systems
  - name: Automations
    description: Create, test, and inspect automation rules and their runs
paths:
  /sales-orders:
    get:
      tags:
        - Sales Orders
      summary: Sales orders
      description: >
        Get a paginated list of sales orders with optional filtering.


        <Note>

        **Syncing sales order data?** Use [`GET
        /sales-orders/export`](/api-reference/sales-orders/export-sales-orders)

        instead. The export endpoint uses cursor-based pagination with a fixed
        time window, making it

        significantly more reliable for incremental sync workflows than polling
        this list endpoint.

        </Note>


        <Note>

        **Need to re-pull an order's data from its source channel?** Use [`POST
        /sales-orders/bulk-refresh`](/api-reference/sales-orders/bulk-refresh-sales-orders)

        with body `{ "salesOrderIds": [id] }`. Pass a single ID to refresh one
        order; up to 100 IDs per request.

        </Note>


        For detailed information about the filtering system and available
        operators,

        refer to the [Filter System Documentation](/filters).


        ## Available Filters


        ### String Filters

        - `order_number`: Order reference number

        - `order_status`: Order status

        - `tag`: Order tags


        ### Date Filters

        - `order_date`: Date the order was placed

        - `ship_date`: Date the order was shipped


        ### DateTime Filters

        - `created_at`: When the order was created

        - `updated_at`: When the order was last updated


        ### Numeric Filters

        - `total_quantity`: Total number of items

        - `total`: Order total amount

        - `total_shipping`: Shipping cost

        - `total_tax`: Tax amount

        - `total_paid`: Amount paid


        ### Integer Filters

        - `channel_id`: Filter by the sales channel the order was received on


        ### Ship-To Address Filters

        Filter on the order's shipping address (matched against the source
        shipTo JSON).

        - `ship_to.state`: Ship-to state/province (full name as stored on the
        order, e.g. `California`)

        - `ship_to.state_code`: Ship-to state/province code, falling back to the
        state value when no code is stored (e.g. `CA`)


        On large tenants, combine ship-to filters with a date filter (e.g.
        `created_at`) — the shipping address is not indexed.


        ### Line Item Filters

        - `item.tag`: Filter by sales orders containing line items with a
        specific tag


        ### Line Item Product Filters

        Product filters allow you to filter by sales orders with line items
        connected to a specific product or set of products.

        #### String Filters

        - `product.name`: Filter by line item product name

        - `product.description`: Filter by line item product description

        - `product.sku`: Filter by line item product SKU (searches both internal
        SKU and alternate SKUs)

        - `product.upc`: Filter by line item product UPC/Barcode

        - `product.tag`: Filter by line item product tags

        - `product.category.name`: Filter by line item product category name

        - `product.sub_category.name`: Filter by line item product sub-category
        name

        - `product.supplier.name`: Filter by line item product supplier name


        #### Integer Filters

        - `product.id`: Filter by line item product ID

        - `product.category.id`: Filter by line item product category ID

        - `product.sub_category.id`: Filter by line item product sub-category ID

        - `product.supplier.id`: Filter by line item product supplier ID


        #### Float Filters

        - `product.retail_price`: Filter by line item product retail price

        - `product.wholesale_price`: Filter by line item product wholesale price


        #### Boolean Filters

        - `product.sellable`: Filter by line item product sellable status

        - `product.discontinued`: Filter by whether the line item product is
        discontinued


        ## Examples

        ```

        # Find orders over $500 created this year

        ?total[gt]=500.00&created_at[gte]=2024-01-01 00:00:00


        # Find recent urgent orders

        ?tag[eq]=urgent&created_at[gte]=2024-10-25 00:00:00


        # Find orders with specific shipping costs

        ?total_shipping[gte]=10.00&total_shipping[lte]=50.00


        # Find orders containing a specific product SKU

        ?product.sku[eq]=SKU-123


        # Find orders with discontinued products

        ?product.discontinued[eq]=true


        # Find orders with products from a specific supplier

        ?product.supplier.name[contains]=Acme


        # Find a sales order containing a line item with a specific tag

        ?item.tag[eq]=urgent

        ```
      operationId: getSalesOrders
      parameters:
        - in: query
          name: page
          schema:
            type: integer
            default: 1
          description: Page number for pagination
        - in: query
          name: per_page
          schema:
            type: integer
            default: 10
            maximum: 100
          description: Number of items per page (max 100)
        - in: query
          name: fields
          schema:
            type: string
          description: >-
            Comma-separated list of fields to include in each returned sales
            order (field projection). When omitted, the full sales order object
            is returned. Example: `fields=id,order_number,status`.
        - in: query
          name: include_product
          schema:
            type: boolean
            default: true
          description: >-
            When `false`, line items omit the nested `product` object (and the
            product is not loaded), which makes responses smaller and faster.
            `product_id` and the other line fields stay.
        - in: query
          name: company_id
          schema:
            type: integer
          description: >-
            Filter by the ID of the company (business account) the order belongs
            to
        - in: query
          name: customer_id
          schema:
            type: integer
          description: Filter by the order's customer ID
        - in: query
          name: channel_id
          schema:
            type: integer
          description: Filter by the sales channel the order was received on
        - in: query
          name: ship_to.state
          schema:
            type: string
          description: >-
            Filter by ship-to state/province (full name as stored on the order,
            e.g. `California`). Matched against the source shipTo JSON; combine
            with a date filter on large tenants.
        - in: query
          name: ship_to.state_code
          schema:
            type: string
          description: >-
            Filter by ship-to state/province code (e.g. `CA`), falling back to
            the state value when no code is stored on the order.
        - in: query
          name: order_number
          schema:
            type: string
          description: Filter by order number
        - in: query
          name: order_status
          schema:
            type: string
          description: Filter by order status
        - in: query
          name: order_date
          schema:
            type: string
            format: date
          description: Filter by order date (YYYY-MM-DD)
        - in: query
          name: ship_date
          schema:
            type: string
            format: date
          description: Filter by ship date (YYYY-MM-DD)
        - in: query
          name: created_at
          schema:
            type: string
            format: date-time
          description: Filter by creation date (YYYY-MM-DD HH:mm:ss)
        - in: query
          name: updated_at
          schema:
            type: string
            format: date-time
          description: Filter by last update date (YYYY-MM-DD HH:mm:ss)
        - in: query
          name: total_quantity
          schema:
            type: number
          description: Filter by total order quantity
        - in: query
          name: total
          schema:
            type: number
          description: Filter by order total amount
        - in: query
          name: total_shipping
          schema:
            type: number
          description: Filter by shipping amount
        - in: query
          name: total_tax
          schema:
            type: number
          description: Filter by tax amount
        - in: query
          name: total_paid
          schema:
            type: number
          description: Filter by amount paid
        - in: query
          name: requested_shipping_service
          schema:
            type: string
          description: Filter by requested shipping service
        - in: query
          name: tag
          schema:
            type: string
          description: Filter by tags
        - in: query
          name: item.tag
          schema:
            type: string
          description: Filter by sales orders containing line items with specific tags
        - in: query
          name: product.name
          schema:
            type: string
          description: Filter by line item product name
        - in: query
          name: product.description
          schema:
            type: string
          description: Filter by line item product description
        - in: query
          name: product.sku
          schema:
            type: string
          description: >-
            Filter by line item product SKU (searches both internal and
            alternate SKUs)
        - in: query
          name: product.upc
          schema:
            type: string
          description: Filter by line item product UPC/Barcode
        - in: query
          name: product.tag
          schema:
            type: string
          description: Filter by line item product tags
        - in: query
          name: product.category.name
          schema:
            type: string
          description: Filter by line item product category name
        - in: query
          name: product.sub_category.name
          schema:
            type: string
          description: Filter by line item product sub-category name
        - in: query
          name: product.supplier.name
          schema:
            type: string
          description: Filter by line item product supplier name
        - in: query
          name: product.id
          schema:
            type: string
          description: Filter by line item product ID
        - in: query
          name: product.category.id
          schema:
            type: integer
          description: Filter by line item product category ID
        - in: query
          name: product.sub_category.id
          schema:
            type: integer
          description: Filter by line item product sub-category ID
        - in: query
          name: product.supplier.id
          schema:
            type: integer
          description: Filter by line item product supplier ID
        - in: query
          name: product.retail_price
          schema:
            type: number
            format: float
          description: Filter by line item product retail price
        - in: query
          name: product.wholesale_price
          schema:
            type: number
            format: float
          description: Filter by line item product wholesale price
        - in: query
          name: product.sellable
          schema:
            type: boolean
          description: Filter by line item product sellable status
        - in: query
          name: product.discontinued
          schema:
            type: boolean
          description: Filter by whether the line item product is discontinued
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: Unique identifier for the sales order
                        created_at:
                          type: string
                          format: date-time
                          description: Timestamp when the order was created
                        updated_at:
                          type: string
                          format: date-time
                          description: Timestamp when the order was last updated
                        status:
                          type: string
                          description: Current status of the order
                        order_id:
                          type: string
                          description: External order identifier
                        order_number:
                          type: string
                          description: Order number
                        order_date:
                          type: string
                          format: date
                          description: Date when the order was placed
                        payment_date:
                          type: string
                          format: date
                          description: Date when payment was received
                        ship_by_date:
                          type: string
                          format: date
                          description: Required ship by date
                        age:
                          type: integer
                          description: Age of the order in days
                        order_status:
                          type: string
                          description: Status of the order
                        customer_id:
                          type: string
                          description: Customer identifier
                        customer_username:
                          type: string
                          description: Customer's username
                        customer_email:
                          type: string
                          description: Customer's email address
                        bill_to:
                          type: object
                          description: Billing information
                        ship_to:
                          type: object
                          description: Shipping information
                        requested_shipping_service:
                          type: string
                          nullable: true
                          description: >-
                            What shipping service to use when shipping this
                            order
                        total:
                          type: number
                          format: float
                          description: Total order amount
                        total_paid:
                          type: number
                          format: float
                          description: Amount paid
                        total_tax:
                          type: number
                          format: float
                          description: Total tax amount
                        total_shipping:
                          type: number
                          format: float
                          description: Total shipping amount
                        customer_notes:
                          type: string
                          description: Notes from the customer
                        internal_notes:
                          type: string
                          description: Internal notes
                        ship_date:
                          type: string
                          format: date
                          description: Date when order was shipped
                        hold_until_date:
                          type: string
                          format: date
                          description: Hold until date
                        earliest_ship_date:
                          type: string
                          format: date
                          nullable: true
                          description: Earliest date the order can be shipped
                        user_id:
                          type: integer
                          description: User ID associated with the order
                        externally_fulfilled:
                          type: boolean
                          description: Whether the order is fulfilled externally
                        externally_fulfilled_by:
                          type: string
                          description: Entity fulfilling the order externally
                        is_posted:
                          type: boolean
                          description: Whether the order is posted
                        posted_by:
                          type: string
                          description: User who posted the order
                        not_sync:
                          type: boolean
                          description: Sync status
                        sales_posted:
                          type: boolean
                          description: Sales posting status
                        split_order:
                          type: boolean
                          description: Whether the order is split
                        skip_inventory:
                          type: boolean
                          description: Whether to skip inventory
                        skip_sales_report:
                          type: boolean
                          description: Whether to skip sales report
                        channel_id:
                          type: integer
                          description: Channel identifier
                        total_order_cost:
                          type: number
                          format: float
                          description: Total cost of order
                        total_order_quantity:
                          type: number
                          format: float
                          description: Total quantity of items
                        order_cost_details:
                          type: object
                          description: Detailed order cost information
                        source:
                          type: string
                          description: Order source
                        shipstation_order_id:
                          type: string
                          description: ShipStation order identifier
                        type:
                          type: string
                          description: Order type
                        parent_id:
                          type: integer
                          description: Parent order ID if applicable
                        shipping_revenue:
                          type: number
                          format: float
                          description: Revenue from shipping
                        product_total:
                          type: number
                          format: float
                          description: Total product amount
                        total_discount:
                          type: number
                          format: float
                          description: Total discount amount
                        picking_status:
                          type: string
                          description: Status of picking process
                        starred_description:
                          type: string
                          description: Description for starred orders
                        customer_po_number:
                          type: string
                          description: Customer PO number
                        company_id:
                          type: integer
                          nullable: true
                          description: >-
                            ID of the company (business account) associated with
                            this sales order. Only present when a company is
                            associated with the order.
                          example: 123
                        company:
                          nullable: true
                          description: >-
                            Full company (business account) details associated
                            with this sales order. Only present when a company
                            is associated with the order.
                          type: object
                          properties:
                            id:
                              type: integer
                              description: Unique identifier for the company
                              example: 123456
                            created_at:
                              type: string
                              format: date-time
                              description: When the company was created
                              example: '2023-03-15T14:30:00Z'
                            updated_at:
                              type: string
                              format: date-time
                              description: When the company was last updated
                              example: '2023-03-15T14:30:00Z'
                            status:
                              type: string
                              description: Status of the company
                              enum:
                                - active
                                - inactive
                              example: active
                            name:
                              type: string
                              description: Company name
                              example: Acme Corporation
                            type:
                              type: string
                              nullable: true
                              description: Type of business
                              example: Retail
                            phone:
                              type: string
                              nullable: true
                              description: Primary phone number for the company
                              example: 555-123-4567
                            address:
                              type: string
                              nullable: true
                              description: Street address for the company
                              example: 123 Main St
                            address_line_2:
                              type: string
                              nullable: true
                              description: Additional address information
                              example: Suite 500
                            city:
                              type: string
                              nullable: true
                              description: City
                              example: Austin
                            state:
                              type: string
                              nullable: true
                              description: State/province
                              example: TX
                            postal_code:
                              type: string
                              nullable: true
                              description: Postal/ZIP code
                              example: '78701'
                            country:
                              type: string
                              nullable: true
                              description: Country
                              example: USA
                            full_address:
                              type: string
                              nullable: true
                              description: Complete formatted address
                              example: 123 Main St, Suite 500, Austin, TX 78701, USA
                            shipping_first_name:
                              type: string
                              nullable: true
                              description: First name for shipping contact (legacy field)
                              example: John
                            shipping_last_name:
                              type: string
                              nullable: true
                              description: Last name for shipping contact (legacy field)
                              example: Doe
                            shipping_email:
                              type: string
                              format: email
                              nullable: true
                              description: Email for shipping contact (legacy field)
                              example: shipping@acmecorp.com
                            shipping_phone:
                              type: string
                              nullable: true
                              description: Phone number for shipping contact (legacy field)
                              example: 555-987-6543
                            shipping_address:
                              type: string
                              nullable: true
                              description: Shipping street address (legacy field)
                              example: 456 Warehouse Blvd
                            shipping_city:
                              type: string
                              nullable: true
                              description: Shipping city (legacy field)
                              example: Austin
                            shipping_state:
                              type: string
                              nullable: true
                              description: Shipping state/province (legacy field)
                              example: TX
                            shipping_postal_code:
                              type: string
                              nullable: true
                              description: Shipping postal/ZIP code (legacy field)
                              example: '78745'
                            shipping_country:
                              type: string
                              nullable: true
                              description: Shipping country (legacy field)
                              example: USA
                            shipping_full_address:
                              type: string
                              nullable: true
                              description: >-
                                Complete formatted shipping address (legacy
                                field)
                              example: 456 Warehouse Blvd, Austin, TX 78745, USA
                            payment_term:
                              type: string
                              nullable: true
                              description: Payment terms for the company
                              example: Net 30
                            tax_exempt:
                              type: boolean
                              nullable: true
                              description: Whether the company is exempt from taxes
                              example: false
                            tax_rate:
                              type: number
                              format: float
                              nullable: true
                              description: Tax rate applied to the company's orders
                              example: 8.25
                            due_date_days:
                              type: integer
                              nullable: true
                              description: Number of days until payment is due
                              example: 30
                            credit_limit:
                              type: number
                              format: float
                              nullable: true
                              description: >-
                                Credit limit for the company. `null` means no
                                limit is set.
                              example: 5000
                            header_discount_enabled:
                              type: boolean
                              description: >-
                                Whether an order-header trade discount is
                                applied by default for this company
                              example: false
                            header_discount_type:
                              type: string
                              nullable: true
                              enum:
                                - PERCENT
                                - FIXED_AMOUNT
                              description: >-
                                How the header discount is calculated — a
                                percentage of the order or a fixed amount
                              example: PERCENT
                            header_discount_value:
                              type: number
                              format: float
                              nullable: true
                              description: >-
                                The header discount amount — a percentage when
                                `header_discount_type` is `PERCENT`, otherwise a
                                fixed currency amount
                              example: 5
                            header_discount_effective_from:
                              type: string
                              format: date
                              nullable: true
                              description: >-
                                Date from which the header discount takes effect
                                (YYYY-MM-DD)
                              example: '2026-01-01'
                            default_currency_code:
                              type: string
                              nullable: true
                              description: >-
                                Default ISO 4217 currency code for this company.
                                Auto-applied to new orders created for the
                                company.
                              example: USD
                            price_level:
                              nullable: true
                              description: Price level associated with this company
                              type: object
                              properties:
                                id:
                                  type: number
                                  description: Unique identifier for the price level
                                  example: 123
                                created_at:
                                  type: string
                                  format: date-time
                                  description: When the price level was created
                                  example: '2023-03-15T14:30:00Z'
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: When the price level was last updated
                                  example: '2023-03-15T14:30:00Z'
                                status:
                                  type: string
                                  description: Status of the price level
                                  enum:
                                    - active
                                    - inactive
                                  example: active
                                name:
                                  type: string
                                  description: Name of the price level
                                  example: Wholesale
                                type:
                                  type: string
                                  description: Type of the price level
                                  example: percentage
                                percent_increase:
                                  type: number
                                  format: float
                                  description: >-
                                    Percentage increase (or decrease) for this
                                    price level
                                  example: 15.5
                            notes:
                              type: string
                              nullable: true
                              description: Additional notes about the company
                              example: Key account, requires special handling
                            fein:
                              type: string
                              nullable: true
                              description: Federal Employer Identification Number
                              example: 12-3456789
                            tags:
                              type: array
                              nullable: true
                              description: List of tags associated with the company
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    description: Unique identifier for the tag
                                  name:
                                    type: string
                                    description: Name of the tag
                                  description:
                                    type: string
                                    nullable: true
                                    description: Description of the tag
                                  icon:
                                    type: string
                                    nullable: true
                                    description: Icon identifier or URL for the tag
                                  color:
                                    type: string
                                    nullable: true
                                    description: Color code for the tag
                                required:
                                  - id
                                  - name
                            default_shipping:
                              nullable: true
                              description: Default shipping address
                              type: object
                              properties:
                                id:
                                  type: integer
                                  description: Unique identifier for the shipping address
                                  example: 789
                                created_at:
                                  type: string
                                  format: date-time
                                  description: When the shipping address was created
                                  example: '2023-03-15T14:30:00Z'
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: When the shipping address was last updated
                                  example: '2023-03-15T14:30:00Z'
                                company_id:
                                  type: integer
                                  description: >-
                                    ID of the company this shipping address
                                    belongs to
                                  example: 123456
                                company_name:
                                  type: string
                                  nullable: true
                                  description: Name of the company
                                  example: Acme Corporation
                                address:
                                  type: string
                                  description: Street address
                                  example: 456 Warehouse Blvd
                                address_line_2:
                                  type: string
                                  nullable: true
                                  description: Additional address information
                                  example: Building 2
                                city:
                                  type: string
                                  description: City
                                  example: Austin
                                state:
                                  type: string
                                  description: State/province
                                  example: TX
                                postal_code:
                                  type: string
                                  description: Postal/ZIP code
                                  example: '78745'
                                country:
                                  type: string
                                  description: Country
                                  example: USA
                                full_address:
                                  type: string
                                  description: Complete formatted address
                                  example: >-
                                    456 Warehouse Blvd, Building 2, Austin, TX
                                    78745, USA
                                full_name:
                                  type: string
                                  description: Full name of the contact person
                                  example: John Doe
                                first_name:
                                  type: string
                                  nullable: true
                                  description: First name of the contact person
                                  example: John
                                last_name:
                                  type: string
                                  nullable: true
                                  description: Last name of the contact person
                                  example: Doe
                                phone:
                                  type: string
                                  nullable: true
                                  description: Phone number
                                  example: 555-987-6543
                                email:
                                  type: string
                                  format: email
                                  nullable: true
                                  description: Email address
                                  example: shipping@acmecorp.com
                                is_default:
                                  type: boolean
                                  description: Whether this is the default shipping address
                                  example: true
                              required:
                                - id
                                - company_id
                                - address
                                - city
                                - state
                                - postal_code
                                - country
                            shipping_addresses:
                              type: array
                              nullable: true
                              description: List of shipping addresses for the company
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    description: Unique identifier for the shipping address
                                    example: 789
                                  created_at:
                                    type: string
                                    format: date-time
                                    description: When the shipping address was created
                                    example: '2023-03-15T14:30:00Z'
                                  updated_at:
                                    type: string
                                    format: date-time
                                    description: When the shipping address was last updated
                                    example: '2023-03-15T14:30:00Z'
                                  company_id:
                                    type: integer
                                    description: >-
                                      ID of the company this shipping address
                                      belongs to
                                    example: 123456
                                  company_name:
                                    type: string
                                    nullable: true
                                    description: Name of the company
                                    example: Acme Corporation
                                  address:
                                    type: string
                                    description: Street address
                                    example: 456 Warehouse Blvd
                                  address_line_2:
                                    type: string
                                    nullable: true
                                    description: Additional address information
                                    example: Building 2
                                  city:
                                    type: string
                                    description: City
                                    example: Austin
                                  state:
                                    type: string
                                    description: State/province
                                    example: TX
                                  postal_code:
                                    type: string
                                    description: Postal/ZIP code
                                    example: '78745'
                                  country:
                                    type: string
                                    description: Country
                                    example: USA
                                  full_address:
                                    type: string
                                    description: Complete formatted address
                                    example: >-
                                      456 Warehouse Blvd, Building 2, Austin, TX
                                      78745, USA
                                  full_name:
                                    type: string
                                    description: Full name of the contact person
                                    example: John Doe
                                  first_name:
                                    type: string
                                    nullable: true
                                    description: First name of the contact person
                                    example: John
                                  last_name:
                                    type: string
                                    nullable: true
                                    description: Last name of the contact person
                                    example: Doe
                                  phone:
                                    type: string
                                    nullable: true
                                    description: Phone number
                                    example: 555-987-6543
                                  email:
                                    type: string
                                    format: email
                                    nullable: true
                                    description: Email address
                                    example: shipping@acmecorp.com
                                  is_default:
                                    type: boolean
                                    description: >-
                                      Whether this is the default shipping
                                      address
                                    example: true
                                required:
                                  - id
                                  - company_id
                                  - address
                                  - city
                                  - state
                                  - postal_code
                                  - country
                            billing_info:
                              type: object
                              nullable: true
                              description: Billing information
                              properties:
                                id:
                                  type: integer
                                  example: 456
                                created_at:
                                  type: string
                                  format: date-time
                                  example: '2023-03-15T14:30:00Z'
                                updated_at:
                                  type: string
                                  format: date-time
                                  example: '2023-03-15T14:30:00Z'
                                first_name:
                                  type: string
                                  nullable: true
                                  example: Jane
                                last_name:
                                  type: string
                                  nullable: true
                                  example: Smith
                                email:
                                  type: string
                                  format: email
                                  nullable: true
                                  example: accounting@acmecorp.com
                                receiving_bank_name:
                                  type: string
                                  nullable: true
                                  example: First National Bank
                                receiving_bank_address:
                                  type: string
                                  nullable: true
                                  example: 789 Finance Street, Austin, TX 78701
                            client_type:
                              type: object
                              nullable: true
                              description: Type of client
                              properties:
                                id:
                                  type: integer
                                  example: 123
                                created_at:
                                  type: string
                                  format: date-time
                                  example: '2023-03-15T14:30:00Z'
                                updated_at:
                                  type: string
                                  format: date-time
                                  example: '2023-03-15T14:30:00Z'
                                name:
                                  type: string
                                  example: Retail
                                description:
                                  type: string
                                  nullable: true
                                  example: Retail business client
                            parent_company_id:
                              type: integer
                              nullable: true
                              description: ID of the parent company
                              example: 456
                            invoice_export_template_id:
                              type: integer
                              nullable: true
                              description: ID of the invoice export template
                              example: 789
                            custom_fields:
                              type: object
                              description: >-
                                Custom fields for the company. Number-type
                                custom fields come back as numbers (the stored
                                numeric value, or stored numeric text converted
                                to a number); a number field holding non-numeric
                                text returns `null`.
                              example:
                                Industry: Manufacturing
                                Region: Southwest
                                Annual Revenue: $5M-$10M
                            assigned_sales_reps:
                              type: array
                              description: >
                                Sales rep users assigned to this company (Go
                                Team members). Resolved from the company's

                                `goTeamMember.user` relation. Only present when
                                the relation is loaded.
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    description: User ID of the assigned sales rep
                                    example: 42
                                  email:
                                    type: string
                                    description: >-
                                      Email of the assigned sales rep
                                      (PII-hashed when PII filtering is enabled)
                                    example: rep@example.com
                                  first_name:
                                    type: string
                                    nullable: true
                                    example: Jane
                                  last_name:
                                    type: string
                                    nullable: true
                                    example: Doe
                            sales_channel:
                              allOf:
                                - type: object
                                  properties:
                                    id:
                                      type: integer
                                      description: Sales channel ID.
                                    status:
                                      type: string
                                      description: Sales channel status (e.g. active).
                                    label:
                                      type: string
                                      nullable: true
                                      description: Human-readable channel label.
                                    channel_type:
                                      type: string
                                      nullable: true
                                      description: >-
                                        Channel type (e.g. the
                                        integration/platform the channel
                                        represents).
                                    created_at:
                                      type: string
                                      format: date-time
                                    updated_at:
                                      type: string
                                      format: date-time
                              nullable: true
                              description: >-
                                The company's default sales channel. Only
                                present when the relation is loaded.
                          required:
                            - id
                            - name
                            - status
                        custom_fields:
                          type: object
                          description: >-
                            Dynamic custom fields with key-value pairs.
                            Number-type custom fields come back as numbers (the
                            stored numeric value, or stored numeric text
                            converted to a number); a number field holding
                            non-numeric text returns `null`.
                          additionalProperties:
                            type: string
                        items:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: Unique identifier for the order item
                              line_number:
                                type: integer
                                description: >-
                                  Sequential line number for this item on the
                                  sales order, only unique within the order,
                                  starts at 1
                              created_at:
                                type: string
                                format: date-time
                                description: Creation timestamp
                              updated_at:
                                type: string
                                format: date-time
                                description: Last update timestamp
                              sku:
                                type: string
                                description: Stock keeping unit
                              name:
                                type: string
                                description: Product name
                              image_url:
                                type: string
                                description: URL of product image
                              weight:
                                type: object
                                description: Weight information
                              quantity:
                                type: number
                                format: float
                                description: Ordered quantity
                              unit_price:
                                type: number
                                format: float
                                description: Price per unit
                              tax:
                                type: number
                                format: float
                                description: Tax amount
                              shipping:
                                type: number
                                format: float
                                description: Shipping amount
                              warehouse_location:
                                type: string
                                description: Location in warehouse
                              options:
                                type: object
                                description: Additional options
                              fulfillment_sku:
                                type: string
                                description: SKU used for fulfillment
                              adjustment:
                                type: number
                                format: float
                                description: Price adjustment
                              upc:
                                type: string
                                description: Universal Product Code
                              stock_id:
                                type: integer
                                description: Stock identifier
                              kit_id:
                                type: integer
                                description: Kit identifier if part of a kit
                              non_physical_item:
                                type: boolean
                                description: Whether item is non-physical
                              ignore_item:
                                type: boolean
                                description: Whether to ignore this item
                              is_locally_added:
                                type: boolean
                                description: >-
                                  True when the line was added in Luminous to a
                                  channel-sourced order and exists only in
                                  Luminous (it is not part of the order in the
                                  source channel and is never pushed back to
                                  it). False for lines that came from the
                                  channel or were created with the order.
                              quantity_shipped:
                                type: number
                                format: float
                                description: Quantity shipped
                              quantity_cancelled:
                                type: number
                                format: float
                                description: Quantity cancelled
                              quantity_invoiced:
                                type: number
                                format: float
                                description: Quantity invoiced
                              quantity_ordered:
                                type: number
                                format: float
                                description: >-
                                  Quantity ordered, expressed in the product's
                                  base unit of measure. When the line was
                                  ordered in a non-base unit (see
                                  `ordered_uom_id`), this is the converted
                                  base-unit equivalent, not the originally
                                  submitted quantity.
                              base_uom_id:
                                type: integer
                                description: >-
                                  ID of the product's base unit of measure — the
                                  unit `quantity_ordered` is expressed in.
                              ordered_uom_id:
                                type: integer
                                description: >-
                                  ID of the unit of measure the line was ordered
                                  in (the `uom_id` submitted on create). May
                                  differ from `base_uom_id` when ordering in a
                                  non-base unit.
                              product_id:
                                type: integer
                                description: Product identifier
                              total_returned_base_quantity:
                                type: number
                                format: float
                                description: Total quantity returned
                              parent_id:
                                type: integer
                                description: Parent item ID
                              status:
                                type: string
                                description: Item status
                              discount:
                                type: number
                                format: float
                                description: Discount amount
                              estimated_ship_date:
                                type: string
                                format: date
                                description: Estimated shipping date
                              custom_fields:
                                type: object
                                description: >-
                                  Dynamic custom fields with key-value pairs.
                                  Number-type custom fields come back as numbers
                                  (the stored numeric value, or stored numeric
                                  text converted to a number); a number field
                                  holding non-numeric text returns `null`.
                                additionalProperties:
                                  type: string
                              product:
                                type: object
                                description: Product information
                                properties:
                                  id:
                                    type: integer
                                    description: Unique identifier for the product
                                  name:
                                    type: string
                                    description: Product name
                                  description:
                                    type: string
                                    nullable: true
                                    description: Product description
                                  retail_price:
                                    type: number
                                    format: float
                                    description: Retail price
                                  wholesale_price:
                                    type: number
                                    format: float
                                    description: Wholesale price
                                  unit_cost:
                                    type: number
                                    format: float
                                    description: Cost per unit
                                  product_weight:
                                    type: number
                                    format: float
                                    description: Weight of the product
                                  product_length:
                                    type: number
                                    format: float
                                    description: Length of the product (in inches)
                                  product_width:
                                    type: number
                                    format: float
                                    description: Width of the product (in inches)
                                  product_height:
                                    type: number
                                    format: float
                                    description: Height of the product (in inches)
                                  sellable:
                                    type: boolean
                                    description: Whether the product can be sold
                                  discontinued:
                                    type: boolean
                                    description: >-
                                      Whether the product is discontinued.
                                      Discontinued products will be hidden in
                                      the Luminous UI by default.
                                  image_url:
                                    type: string
                                    nullable: true
                                    description: URL to the product's main image
                                  category:
                                    type: object
                                    nullable: true
                                    properties:
                                      id:
                                        type: integer
                                      name:
                                        type: string
                                    description: Product category information
                                  subcategory:
                                    type: object
                                    nullable: true
                                    properties:
                                      id:
                                        type: integer
                                      name:
                                        type: string
                                    description: Product subcategory information
                                  custom_fields:
                                    type: object
                                    description: >-
                                      Dynamic custom fields with key-value
                                      pairs. Number-type custom fields come back
                                      as numbers (the stored numeric value, or
                                      stored numeric text converted to a
                                      number); a number field holding
                                      non-numeric text returns `null`.
                                    additionalProperties:
                                      type: string
                                  variant_attributes:
                                    type: object
                                    nullable: true
                                    description: Available variant attributes
                                  sku:
                                    type: string
                                    description: Internal SKU
                                  alternate_skus:
                                    type: array
                                    description: Alternate SKUs
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: integer
                                        sku:
                                          type: string
                                  upc:
                                    type: string
                                    description: UPC/Barcode
                                  tags:
                                    type: array
                                    description: Tags associated with the product
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: integer
                                          description: Unique identifier for the tag
                                        name:
                                          type: string
                                          description: Name of the tag
                                        description:
                                          type: string
                                          nullable: true
                                          description: Description of the tag
                                        icon:
                                          type: string
                                          nullable: true
                                          description: Icon identifier or URL for the tag
                                        color:
                                          type: string
                                          nullable: true
                                          description: Color code for the tag
                                      required:
                                        - id
                                        - name
                                  supplier:
                                    type: object
                                    nullable: true
                                    description: Supplier information
                                  type:
                                    type: string
                                    enum:
                                      - PRODUCT
                                      - KIT
                                    description: >-
                                      Product type. PRODUCT for regular
                                      products, KIT for kit products that
                                      contain other products as components.
                                  kit_items:
                                    type: array
                                    nullable: true
                                    description: >-
                                      Kit components for KIT products. Only
                                      present when the bill of materials is
                                      loaded, which today is on `GET
                                      /pickflow/picklists` (full view) and `GET
                                      /pickflow/picklists/{id}`, where a
                                      sales-order picklist has no
                                      fulfillment-order breakdown and the
                                      picking app expands each kit line into its
                                      components (CS-11261). Absent on other
                                      sales-order responses.
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: integer
                                          description: Unique identifier for the kit item
                                        product_id:
                                          type: integer
                                          description: ID of the product component
                                        quantity:
                                          type: number
                                          format: float
                                          description: Quantity of this component in the kit
                                        uom_id:
                                          type: integer
                                          description: Unit of measure ID for the quantity
                                        base_uom_quantity:
                                          type: number
                                          format: float
                                          description: >-
                                            Quantity converted to base unit of
                                            measure
                                        price:
                                          type: number
                                          format: float
                                          description: Price for this kit item
                                        original_price:
                                          type: number
                                          format: float
                                          description: Original price for this kit item
                                        total:
                                          type: number
                                          format: float
                                          description: Calculated total (quantity * price)
                                        product:
                                          type: object
                                          nullable: true
                                          description: >-
                                            Product information for this kit item
                                            (when loaded)
                                          properties:
                                            id:
                                              type: integer
                                            name:
                                              type: string
                                            sku:
                                              type: string
                                            description:
                                              type: string
                                              nullable: true
                                            retail_price:
                                              type: number
                                              format: float
                                            wholesale_price:
                                              type: number
                                              format: float
                                        unit_of_measure:
                                          type: object
                                          nullable: true
                                          description: >-
                                            Unit of measure information (when
                                            loaded)
                                          properties:
                                            id:
                                              type: integer
                                            name:
                                              type: string
                                            description:
                                              type: string
                                              nullable: true
                                            base_unit:
                                              type: boolean
                                  created_at:
                                    type: string
                                    format: date-time
                                    description: Timestamp when the product was created
                                  updated_at:
                                    type: string
                                    format: date-time
                                    description: >-
                                      Timestamp when the product was last
                                      updated
                              tags:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: integer
                                    name:
                                      type: string
                                    description:
                                      type: string
                                    icon:
                                      type: string
                                    color:
                                      type: string
                                    discount_structure:
                                      type: object
                                    markup_structure:
                                      type: object
                                description: Tags associated with the sales order item
                          description: Line items in the order
                        fulfillment_orders:
                          type: array
                          description: >-
                            Fulfillment orders created from this sales order, in
                            the same shape as GET /fulfillment-orders (including
                            `fulfillment_order_items` with kit component rows).
                            Present when the relation is loaded.
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: Fulfillment order ID
                              order_number:
                                type: string
                                description: Fulfillment order number
                              order_key:
                                type: string
                                nullable: true
                                description: Fulfillment order key
                              order_status:
                                type: string
                                description: Fulfillment order status
                              sales_order_id:
                                type: integer
                                description: Associated sales order ID
                              warehouse_group_id:
                                type: integer
                                nullable: true
                                description: Warehouse group ID
                              destination_oms_id:
                                type: integer
                                nullable: true
                                description: Destination app integration account ID
                              destination_oms_store_id:
                                type: integer
                                nullable: true
                              fulfillment_channel_id:
                                type: integer
                                nullable: true
                              pushed_at:
                                type: string
                                format: date-time
                                nullable: true
                              packing_slip_printed_at:
                                type: string
                                format: date-time
                                nullable: true
                                description: >-
                                  When a packing slip for this fulfillment order
                                  was last successfully exported or sent to a
                                  print station (ISO-8601). `null` when the slip
                                  has not been printed.
                              error_message:
                                type: string
                                nullable: true
                                description: >-
                                  Last push error from the destination OMS, when
                                  the fulfillment order is in Error status
                              ship_by_date:
                                type: string
                                format: date
                                nullable: true
                                description: Ship by date
                              total:
                                type: number
                                format: float
                                nullable: true
                                description: Order total
                              bill_to:
                                type: object
                                nullable: true
                                description: Billing address
                                properties:
                                  name:
                                    type: string
                                  company:
                                    type: string
                                  street1:
                                    type: string
                                  street2:
                                    type: string
                                  street3:
                                    type: string
                                  city:
                                    type: string
                                  state:
                                    type: string
                                  postal_code:
                                    type: string
                                  country:
                                    type: string
                                  phone:
                                    type: string
                              ship_to:
                                type: object
                                nullable: true
                                description: Shipping address
                                properties:
                                  name:
                                    type: string
                                  company:
                                    type: string
                                  street1:
                                    type: string
                                  street2:
                                    type: string
                                  street3:
                                    type: string
                                  city:
                                    type: string
                                  state:
                                    type: string
                                  postal_code:
                                    type: string
                                  country:
                                    type: string
                                  phone:
                                    type: string
                              invoice_to:
                                type: object
                                nullable: true
                                description: Invoice address
                                properties:
                                  name:
                                    type: string
                                  company:
                                    type: string
                                  street1:
                                    type: string
                                  street2:
                                    type: string
                                  street3:
                                    type: string
                                  city:
                                    type: string
                                  state:
                                    type: string
                                  postal_code:
                                    type: string
                                  country:
                                    type: string
                                  phone:
                                    type: string
                              sales_order:
                                type: object
                                nullable: true
                                description: Nested sales order data
                              picklists:
                                type: array
                                description: Associated picklists
                                items:
                                  type: object
                              fulfillment_order_items:
                                type: array
                                description: >-
                                  Fulfillment order line items. Kit SKUs are
                                  broken out into their components: when the
                                  channel already expanded a kit into component
                                  lines at creation, those stored lines are
                                  returned with `is_kit_component: true`. When
                                  the fulfillment order stores a single kit
                                  line, that kit line is returned and is
                                  followed by read-only component rows built
                                  from the kit's bill of materials
                                  (`is_synthetic: true`, `id: null`,
                                  `unit_price: 0`,
                                  `parent_fulfillment_order_item_id` pointing at
                                  the kit line).
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        Fulfillment order line ID. `null` for
                                        synthetic kit component rows.
                                    shipment_id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        ID of the fulfillment order this line
                                        belongs to.
                                    status:
                                      nullable: true
                                      description: Line status.
                                    sales_order_item_id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        Sales order line this fulfillment line
                                        fulfills. On synthetic component rows,
                                        the kit's sales order line.
                                    product_id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        Luminous product ID. For a kit line this
                                        is the kit product; for a component row
                                        it is the component product.
                                    sku:
                                      type: string
                                      nullable: true
                                    name:
                                      type: string
                                      nullable: true
                                    weight:
                                      nullable: true
                                      description: >-
                                        Stored line weight (decoded JSON).
                                        Always `null` on synthetic component
                                        rows.
                                    dimensions:
                                      nullable: true
                                      description: >-
                                        Stored line dimensions (decoded JSON).
                                        Always `null` on synthetic component
                                        rows.
                                    quantity:
                                      type: number
                                      description: >-
                                        Quantity in selling units. For a
                                        synthetic component row, the kit line
                                        quantity multiplied by the component
                                        quantity per kit.
                                    unit_price:
                                      type: number
                                      description: >-
                                        Unit price. Always `0` on synthetic
                                        component rows.
                                    lot_id:
                                      type: integer
                                      nullable: true
                                    lot_number:
                                      type: string
                                      nullable: true
                                    expiry_date:
                                      type: string
                                      nullable: true
                                      description: Lot expiry date.
                                    created_at:
                                      type: string
                                      format: date-time
                                    updated_at:
                                      type: string
                                      format: date-time
                                    is_kit_component:
                                      type: boolean
                                      description: >-
                                        True when the row is a component of a
                                        kit (stored or synthetic).
                                    parent_fulfillment_order_item_id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        On synthetic component rows, the ID of
                                        the kit line they were expanded from.
                                        Otherwise `null`.
                                    kit_sales_order_item_id:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        On kit component rows, the ID of the
                                        kit's sales order line. Otherwise
                                        `null`.
                                    is_synthetic:
                                      type: boolean
                                      description: >-
                                        True for read-only component rows built
                                        from the kit bill of materials at read
                                        time. They have no fulfillment order
                                        line ID and cannot be updated.
                              total_weight:
                                type: object
                                nullable: true
                                description: >-
                                  Total product weight of this fulfillment
                                  order's own lines, at the fulfillment
                                  quantity. Present only when the line items are
                                  loaded. A product with no recorded weight
                                  contributes nothing, so a total of `0` usually
                                  means "weight unknown" rather than
                                  "weightless" — check `is_complete` before
                                  treating the total as authoritative.
                                properties:
                                  total_oz:
                                    type: number
                                    format: float
                                    description: Total weight in ounces
                                  total_lb:
                                    type: number
                                    format: float
                                    description: Total weight in pounds
                                  line_count:
                                    type: integer
                                    description: Number of fulfillment order lines
                                  weighed_line_count:
                                    type: integer
                                    description: >-
                                      Number of lines that had a usable weight
                                      and contributed to the total
                                  is_complete:
                                    type: boolean
                                    description: >-
                                      True only when there is at least one line
                                      and every line contributed a weight. When
                                      false, the total omits one or more lines
                                      whose product has no recorded weight.
                              tags:
                                type: array
                                description: >-
                                  Tags attached directly to this fulfillment
                                  order. Present when the relation is loaded.
                                  Tags inherited from the parent sales order are
                                  not included.
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: integer
                                      description: Unique identifier for the tag
                                    name:
                                      type: string
                                      description: Name of the tag
                                    description:
                                      type: string
                                      nullable: true
                                      description: Description of the tag
                                    icon:
                                      type: string
                                      nullable: true
                                      description: Icon identifier or URL for the tag
                                    color:
                                      type: string
                                      nullable: true
                                      description: Color code for the tag
                                  required:
                                    - id
                                    - name
                              purchase_orders:
                                type: array
                                description: >-
                                  Linked purchase orders. Present when the
                                  relation is loaded; deduplicated by ID.
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: integer
                                    order_status:
                                      type: string
                                      nullable: true
                                      enum:
                                        - active
                                        - deleted
                                        - completed
                              source_reference_identifier:
                                type: string
                                nullable: true
                                description: >-
                                  The source system's reference identifier for
                                  this fulfillment order (e.g. the originating
                                  OMS order ID)
                              held_for_item_change:
                                type: boolean
                                description: >-
                                  True when the fulfillment order is on hold
                                  because its sales order's items changed after
                                  it was started and nobody has reviewed the
                                  change in Luminous yet. Always false once the
                                  fulfillment order is shipped, partially
                                  shipped or cancelled.
                              created_at:
                                type: string
                                format: date-time
                                description: When the fulfillment order was created
                              updated_at:
                                type: string
                                format: date-time
                                description: When the fulfillment order was last updated
                        tags:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                              name:
                                type: string
                              description:
                                type: string
                              icon:
                                type: string
                              color:
                                type: string
                              discount_structure:
                                type: object
                              markup_structure:
                                type: object
                          description: Tags associated with the order
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        description: The current page number
                        example: 1
                      from:
                        type: integer
                        description: The starting index of the paginated results
                        example: 1
                      last_page:
                        type: integer
                        description: The last page number
                        example: 5
                      per_page:
                        type: integer
                        description: Number of items per page
                        example: 10
                      to:
                        type: integer
                        description: The ending index of the paginated results
                        example: 10
                      total:
                        type: integer
                        description: Total number of items across all pages
                        example: 50
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate using a bearer token. To create a token, navigate to
        /settings/api-tokens and click Create API Token.

````

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