Skip to main content

Get Sales Order Line Items

GET 

/api/v2/sales-orders/:salesOrder/line-items

Returns line items with full product details, inventory, allocations, and warehouse info. Pre-loads realtime inventory for all products in a single query. Loaded in parallel with show().

Unmapped channel lines (product_id is null) include a listing object describing the raw sales-channel listing (Amazon, Shopify, eBay, Magento, WooCommerce) used by the "Link Line Item to Product" modal. For Amazon lines whose seller SKU matches a synced AmazonProduct, the listing object also includes the internal id and integration_instance_id, which the UI uses to deep-link to the Amazon product detail page.

Each line item includes bundle_proration_basis ("cost" | "price" | "quantity" | null). For bundle component lines this indicates the methodology used to prorate the bundle’s price across its components (SKU-7157): "cost" — proportional to component unit costs (used when all components have unit_cost > 0); "price" — proportional to component prices (fallback when any component is missing a cost but all have price > 0); "quantity" — equal split per component quantity (last-resort fallback). Null for non-component lines and for legacy component lines expanded before this feature (those were price-based).

Authentication: Requires Bearer token.

Request

Responses

Successful response