Add line items to Shopify orders

On an existing order, a line SKU that is not already on the order, with Line: Quantity > 0, is added through order editing. The SKU must exist on this shop.

Use this to add a variant to an order that already exists. Remove line items is quantity 0. Create of a new order is Import unpaid orders.

Columns

NeedColumns
MinimumName, Line: SKU, Line: Quantity (greater than 0).
RecommendedID, Name, Line: SKU, Line: Quantity, Line: Title.
Empty cellsEmpty Line: Quantity skips that line (no add, no remove).

Steps

  1. Match the order with Name or ID.
  2. Add a row with a SKU that is not already on the order, quantity 1 or more.
  3. Import, Dry run on.
TOTE-1 is new on #1001. WOOL-M was already there (quantity 1 stays unless you change it).

What a dry-run comment looks like

Would update. orderEditAddVariant runs on write for the new SKU.

What fails

  • Line add skipped: variant {sku} not found.
  • Empty quantity: that line is skipped.
  • Paid-create on a Name that does not exist. This page assumes the order exists.

FAQ

Change quantity of an existing line?
A matched line with quantity 0 removes it. Other quantity edits go through the same order edit path when the line matches.
SKU must exist?
Yes. Add-line uses a variant that is already on this shop.
Paid orders?
You can add a line to an existing order. Creating a captured paid order still fails.