---
schema_version: "1"
id: 3c317a9c2122705fdf9c088c2cc1dbbd6e5b55b891919b27e088b6f6009ef3d7
title: Line Item Attribute
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-engagement-mobile-sdk/guides/c360a-api-engagement-mobile-sdk-line-item-attribute.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-engagement-mobile-sdk/guide/c360a-api-engagement-mobile-sdk-line-item-attribute.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2cf0830c28487889cfc18968c6f14c9fb3786842c5b2575f3c5d3d39319c9815
products:
  - Data 360 Engagement Mobile SDK
  - Data 360 Developer Documentation
---
# Line Item Attribute

Line items describe purchasable items and are used in cart and order-related interactions.

| Field Name          | Field Type | Description                                                                                                               |
| ------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------- |
| `attributes`        | object     | A dictionary of user-supplied key-value pairs that to add more detail, such as `{"color": "blue"}`                        |
| `catalogObjectType` | string     | **Required**. A type name representing the catalog object referenced in the line item. For example, `Product`, and `SKU`. |
| `catalogObjectId`   | string     | **Required**. A unique ID representing the catalog object referenced in the line item.                                    |
| `currency`          | string     | The currency for the `price` field. For example, `USD`, and `GBP`.                                                        |
| `price`             | number     | The price of the catalog object referenced in the line item.                                                              |
| `quantity`          | number     | **Required**. The number of catalog objects in this line item.                                                            |

## Line Item Attribute Example for iOS

Here's an example of a `LineItem` for iOS.

```nolang
LineItem(
    catalogObjectType: "Product",
    catalogObjectId: "product-11",
    quantity: 1,
    price: 20.0,
    currency: "USD",
    attributes: [
      "gift_wrap: true
    ]
)
```

## Line Item Attribute Example for Android

Here's an example of a `LineItem` for Android.

```nolang
LineItem(
    catalogObjectId = "product-1",
    catalogObjectType = "Product",
    quantity = 1,
    price = 20.0,
    currency = "USD",
    attributes = mapOf(
      "gift_wrap" to true
    )
    )
```
