---
title: "The order domain model"
slug: "the-order-domain-model"
abstract: ""
---
# The order domain model

![03000012.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/102/sitecore-experience-commerce/images/03000012.png)

<details>
<summary><h2>Class: Order</h2></summary>

The `Order` class is responsible for representing an order.

| Name | Type | Description |
| --- | --- | --- |
| OrderId | String | Unique identifier for the order in the commerce system. This can be used to get a reference to the order using the commerce system's native API.<br><br>Is typically empty until an order has been created in an external system. |
| OrderDate | DateTime | The date the order was placed. |
| TrackingNumber | String | The tracking number for the order. |
| IsOfflineOrder | Bool | Specifies whether the order was placed offline (that is, in an external system or physical store) and synchronized with the online order and analytics system. |

</details>

<details>
<summary><h2>Class: OrderHeader</h2></summary>

The `OrderHeader` class is responsible for representing an order header.

| Name | Type | Description |
| --- | --- | --- |
| OrderId | String | Unique identifier for the order in the commerce system. This can be used to get a reference to the order using the commerce system's native API.<br><br>Is typically empty until an order has been created in an external system. |
| OrderDate | DateTime | The date the order was placed. |

</details>

<details>
<summary><h2>Class: OrderCancellation</h2></summary>

The `OrderCancellation` class is an extensible enumeration that represents the result status of a request to cancel all or part of an order.

The following table contains the list of default OrderCancellation options.

| Name | Type | Description |
| --- | --- | --- |
| Granted | OrderCancellation | Indicates that the order cancellation request was granted. |
| Denied | OrderCancellation | Indicates that the order cancellation request was denied. |

</details>