How to Add Line Items to Sales Order

This article explains how to add Line Items to an existing Sales Order in Orderwise using OW Sync workflow actions.

What are Line Items?

A Line Item represents the association between a Variant ID (the product version) and an Order Header ID (the order itself).

  • First, you need to create the Variant.
  • Then, you need to create the Order.
  • Finally, you can add the Line Item to connect them together.

This step is slightly different from creating or updating records, as it is about linking existing data with the correct details.

Mandatory Fields

    • Order Header ID → The unique Orderwise ID of the Sales Order you want to add the item to. Ensures the Line Item is linked to the correct order. 
  • Variant ID → Identifies the specific product variant being added. Without it, the system doesn’t know which product to assign.
  • Stock Location ID → The warehouse or stock location for the product. This ensures stock is deducted from the right location.
  • Quantity → The number of units being added. Required to calculate stock, pricing, and invoicing correctly.