| id | Unique identifier for the object. |
| sales_order_id | The ID of the sales order the row belongs to. |
| quantity | The quantity of items for the order line. |
| variant_id | ID of product variant added to the order line. |
| tax_rate_id | ID of tax added to price per unit. |
| location_id | ID of the location from which the order row is shipped (leave empty, when sales order location should be used for this sales order row) |
| product_availability | Stock status for the products required by the sales order row. Possible values are "IN_STOCK", "EXPECTED", "PICKED", "NOT_AVAILABLE", "NOT_APPLICABLE" |
| product_expected_date | The latest date of a manufacturing order production deadline or a purchasing order expected arrival date that relates to the required products |
| price_per_unit | Sales price of one unit (excluding taxes). |
| price_per_unit_in_base_currency | The sales price of one unit (excluding taxes) in base currency. |
| total_discount | The total discount amount applied to the entire sales order row (excluding taxes) |
| total | The total value of the sales order row (excluding taxes) in sales order currency. |
| total_in_base_currency | The total value of the order row (excluding taxes) in base currency. |
| cogs_value | Total Cost of Goods Sold (COGS) for the delivered quantity. Calculated based on the average cost of the product at the time of delivery |
| attributes | An array of sales order row attributes. Each attribute is a key-value pair. Used to add extra details to the sales order row. |
| attributes.key | Custom key for the sales order row attribute. |
| attributes.value | Custom value for the key in sales order row attribute. |
| traceability | An array of allocation entries describing how the row quantity is fulfilled across batches, serial numbers, and bin locations. Preferred over batch_transactions, serial_numbers, and serial_number_transactions; when traceability is supplied it takes precedence over them. Sending an empty array clears the row's allocations, whereas omitting it leaves them unchanged. |
| traceability.batch_id | ID of the batch the allocation is drawn from. Null when the allocation is untraced or serial-tracked. Mutually exclusive with serial_number_id. |
| traceability.serial_number_id | ID of the serial number for the allocation. Null when the allocation is untraced or batch-tracked. Mutually exclusive with batch_id. |
| traceability.bin_location_id | ID of the bin location the allocation is drawn from. Null when not bin-tracked. |
| traceability.quantity | Decimal string quantity for the allocation entry. Serial entries are implicitly "1". |
| batch_transactions | Deprecated — use traceability instead. An array of batch transactions and their quantities. You can fulfill the item on the order from multiple batches. When traceability is supplied it takes precedence over batch_transactions. |
| batch_transaction.batch_id | ID of the batch for the fulfilled item. |
| batch_transactions.quantity | The quantity fulfilled from a particular batch. |
| serial_numbers | Deprecated — use traceability instead. An array of serial number IDs. When traceability is supplied it takes precedence over serial_numbers. |
| serial_number_transactions | Deprecated — use traceability instead. An array of serial number transactions and their quantities. You can add multiple serial numbers to an item. When traceability is supplied it takes precedence over serial_number_transactions. |
| serial_number_transactions.serial_number_id | ID of the serial number for the fulfilled item. |
| serial_number_transactions.quantity | The quantity of given serial number, can either be added (1) or removed (0) |
| linked_manufacturing_order_id | The ID of the manufacturing order if there is a make-to-order (MTO) manufacturing order related to the sales order row. |
| conversion_rate | Currency rate used to convert from sales order currency into factory base currency. If multiple fulfillments exist for a sales order row, the latest date and corresponding rate are used. |
| conversion_date | The date of the conversion rate used. If multiple fulfillments exist for a sales order row, the latest date is used. |
| created_at | The timestamp when the sales order row was created. |
| updated_at | The timestamp when the sales order row was last updated. |