# The sales order row object

| Attribute                                       | Description                                                                                                                                                                                 |
| :---------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 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.                                                                                                                                      |
| batch\_transactions                             | An array of batch transactions and their quantities. You can fulfill the item on the order from multiple batches.                                                                           |
| batch\_transaction.batch\_id                    | ID of the batch for the fulfilled item.                                                                                                                                                     |
| batch\_transactions.quantity                    | The quantity fulfilled from a particular batch.                                                                                                                                             |
| serial\_numbers                                 | An array of serial number IDs                                                                                                                                                               |
| serial\_number\_transactions                    | An array of serial number transactions and their quantities. You can add multiple serial numbers to an item.                                                                                |
| 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.                                                                                                                                    |