Order Item JSON Example

A reusable line item for carts, orders and invoices.

Example

{
  "sku": "JSN-100",
  "title": "JSON Notebook",
  "qty": 2,
  "unitPrice": 12.99,
  "discount": 1.00,
  "giftWrap": false
}

Explanation

Store price and quantity separately so totals can be calculated.