---
title: Order line added and updated
slug: order-line-added-and-updated
abstract: Custom payload definition for the order line added and updated delivery configuration messages.
content_type: reference
audience: \[developer, architect]
---

# Order line added and updated

Custom payload definition of the following [Delivery Configuration](https://doc.sitecore.com/ordercloud/en/developers/platform/delivery-configuration.html) message namespaces:

- sitecore.ordercloud.messages.orders.lines.added

- sitecore.ordercloud.messages.orders.lines.updated


## Models

### OrderLine

| Name | Type | Description |
| --- | --- | --- |
| UserContext | [UserContext](https://doc.sitecore.com/ordercloud/en/developers/platform/reference/delivery-config/user-context.html) | The user context. |
| Language | string | The language of the current locale at the time of creating the order. |
| Currency | string | The order currency. |
| Email | string | Email of the user that created the order. |
| OrderId | string | The order identifier. |
| LineItem | LineItem | The line item. |

### LineItem

| Name | Type | Description |
| --- | --- | --- |
| LineID | string | The identifier of the line item. |
| Product | LineItemProduct | The product associated with the line item. |
| Quantity | decimal | The Quantity ordered. |
| Price | decimal | The price. |
| LineTotal | decimal | LineSubTotal - PromotionDiscount. |
| LineSubTotal | decimal | Unit price \* Quantity. |
| xp | dynamic | Dynamic properties assigned by the marketplace developer. |

### LineItemProduct

| Name | Type | Description |
| --- | --- | --- |
| ProductID | string | The product identifier. |
| ProductName | string | The name of the product. |
| ProductDescription | string | The description of theproduct. |
| Price | decimal | The unit price of the product. |
| Variant | Variant | The variant is specified. |
| xp | dynamic | Dynamic properties assigned by the marketplace developer. |

### Variant

| Name | Type | Description |
| --- | --- | --- |
| VariantName | string | The variant name. |
| VariantDescription | string | The variant description. |