Sales Order Lines
Get Sales Order Line
Get detailed information for a single sales order line. Includes inventory allocation details with purchase order coverage and release sources.
Delete Sales Order Line
Delete a single sales order line. Recalculates order discounts if any were applied.
Bulk Delete Sales Order Lines
Bulk delete multiple sales order lines. Handles partial success and returns details of each line's outcome.
Update Line Nominal Code
Set or clear the nominal code override for a single sales order line. Used by the line-level nominal code editor on the V2 sales order detail page (only visible when the `accounting.use_sales_order_line_nominal_codes` config flag is true).
Map Line to Product
Map a sales order line to an existing product. Used to link unmapped channel order lines to SKU products.
Bulk Map Lines to Product
Map multiple unmapped sales order lines to the same product at once.
Mark Line as Non-Product
Mark an unmapped sales order line as a non-product line (e.g. shipping fee, gift wrapping). Only applicable to lines with no product_id.
Get Matching Unmapped Lines
Find other unmapped sales order lines across all orders that have the same product description as the given line. Useful for bulk mapping suggestions.
Manage Reservations
Reserve or reverse-reserve inventory for specific sales order lines. Returns the updated sales order.
Convert to Financial Line
Convert a sales order line to a specific financial line type (e.g., revenue, adjustment).
Suggest Fulfillment Warehouse
Read-only fulfillment-routing suggestion for an UNALLOCATED line. Runs the same warehouse priority + on-hand check the real routing uses to pick a default warehouse, and returns the ordered candidates with per-warehouse availability so the Allocate dialog can explain WHY a warehouse won and offer an override. Allocation itself is then performed via the split-across-warehouses endpoint with a single slice. Authenticate with a Personal Access Token (PAT).
Split Line Across Warehouses
Redistribute a sales order line's **pre-dispatch** fulfillment across multiple warehouses WITHOUT duplicating the line (Pattern C). The channel line stays 1:1 with upstream; the split materialises as **one InventoryAllocation + one FulfillmentOrder per warehouse** (`1 SOL → N allocations → N FOs`). Each slice allocates on-hand up to availability at that warehouse, with the remainder planned (backorder).
Import Lines from CSV
Import sales order lines from a CSV file or raw CSV string. Required CSV columns: sku. Optional columns: description, quantity, price, pricing_tier, warehouse_id, warehouse_name.
Override Edition
Override the subscription edition for a sales order line. Assigns a specific edition instead of the automatically resolved one.
Clear Edition Override
Clear the edition override on a sales order line, reverting to automatic edition resolution.