# The line item option object

A line item option object is returned as part of the response body of each successful list, retrieve, create or update API call to the `/api/line_item_options` endpoint.

## Fields

| Field                                   | Type       | Description                                                                                                                                                                                             |
| --------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **type**                                | `string`   | `line_item_options`                                                                                                                                                                                     |
| **id**                                  | `string`   | The line item option unique identifier                                                                                                                                                                  |
| links.**self**                          | `string`   | The line item option endpoint URL                                                                                                                                                                       |
| attributes.**name**                     | `string`   | The name of the line item option. When blank, it gets populated with the name of the associated SKU option.                                                                                             |
| attributes.**quantity**                 | `integer`  | The line item option's quantity.                                                                                                                                                                        |
| attributes.**currency\_code**           | `string`   | The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.                                                                          |
| attributes.**unit\_amount\_cents**      | `integer`  | The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. |
| attributes.**unit\_amount\_float**      | `float`    | The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.                                               |
| attributes.**formatted\_unit\_amount**  | `string`   | The unit amount of the line item option, formatted. This can be useful to display the amount with currency in you views.                                                                                |
| attributes.**total\_amount\_cents**     | `integer`  | The unit amount x quantity, in cents.                                                                                                                                                                   |
| attributes.**total\_amount\_float**     | `float`    | The unit amount x quantity, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.                                                            |
| attributes.**formatted\_total\_amount** | `string`   | The unit amount x quantity, formatted. This can be useful to display the amount with currency in you views.                                                                                             |
| attributes.**delay\_hours**             | `integer`  | The shipping delay that the customer can expect when adding this option (hours). Inherited from the associated SKU option.                                                                              |
| attributes.**delay\_days**              | `integer`  | The shipping delay that the customer can expect when adding this option (days, rounded).                                                                                                                |
| attributes.**options**                  | `object`   | Set of key-value pairs that represent the selected options.                                                                                                                                             |
| attributes.**\_add\_tags**              | `string`   | Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.                                                                  |
| attributes.**\_remove\_tags**           | `string`   | Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.                                                                |
| attributes.**created\_at**              | `datetime` | Time at which the resource was created.                                                                                                                                                                 |
| attributes.**updated\_at**              | `datetime` | Time at which the resource was last updated.                                                                                                                                                            |
| attributes.**reference**                | `string`   | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.     |
| attributes.**reference\_origin**        | `string`   | Any identifier of the third party system that defines the reference code.                                                                                                                               |
| attributes.**metadata**                 | `object`   | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.                                            |
| relationships.**line\_item**            | `object`   | The associated line item.                                                                                                                                                                               |
| relationships.**sku\_option**           | `object`   | The associated SKU option.                                                                                                                                                                              |
| relationships.**events**                | `array`    | The associated events.                                                                                                                                                                                  |
| relationships.**tags**                  | `array`    | The associated tags. Cannot be passed by sales channels.                                                                                                                                                |
| relationships.**event\_stores**         | `array`    | The associated event stores.                                                                                                                                                                            |
| meta.**mode**                           | `string`   | The resource environment (can be one of `test` or `live`)                                                                                                                                               |
