Lines (also called order lines, sale lines or line items) describe the products included in an order.
Lines don’t have their own
GET actions, since they’re included in their entirety
when you get orders.
product_idfield is required.
unit_priceshould only be specified if you want to override the default site pricing of the product. It should be specified as an ex tax price, and the current taxes that are set for that product will then be applied.
price_variationfor percentage based discounts and surcharges. The value works as a coefficient of the line's subtotal. For example,
0.9means a 10% discount, and
1.15means a 15% surcharge.
price_fixed_variationfor fixed currency based discounts and surcharges. For example,
-2.00means a $2.00 discount, and
1.15means a $1.15 surcharge.
price_fixed_variationcannot both be specified on the same line.
Before an order is accepted, you can update lines.
modifiersarray, all previously added modifiers will be overwritten. You should treat this array as a discreet value to be overwritten.