---
title: 'Liquid objects: order'
description: 'An [order](https://help.shopify.com/manual/orders).'
api_name: liquid
source_url:
html: 'https://shopify.dev/docs/api/liquid/objects/order'
md: 'https://shopify.dev/docs/api/liquid/objects/order.md'
---
# order
An [order](https://help.shopify.com/manual/orders).
## Properties
* * attributes
* The attributes on the order.
If there are no attributes on the order, then `nil` is returned.
Tip
Attributes are [collected with the cart](https://shopify.dev/themes/architecture/templates/cart#support-cart-notes-and-attributes).
ExampleOutput the attributes
```liquid
{% for attribute in order.attributes -%}
- {{ attribute.first }}: {{ attribute.last }}
{%- endfor %}
```
* billing\_address
[address](https://shopify.dev/docs/api/liquid/objects/address)
* The billing address of the order.
* cancel\_reason
[string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values
* The reason that the order was cancelled.
| Possible values | Description |
| - | - |
| customer | Customer changed/cancelled order |
| declined | Payment declined |
| fraud | Fraudulent order |
| inventory | Items unavailable |
| staff | Staff error |
| other | Other |
* cancel\_reason\_label
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The localized version of the [cancellation reason](https://shopify.dev/docs/api/liquid/objects/order#order-cancel_reason) for the order.
Tip
Use this property to output the cancellation reason on the storefront.
* cancelled
[boolean](https://shopify.dev/docs/api/liquid/basics#boolean)
* Returns `true` if the order was cancelled. Returns `false` if not.
* cancelled\_at
[string](https://shopify.dev/docs/api/liquid/basics#string)
* A timestamp for when the order was cancelled.
Tip
Use the [`date` filter](https://shopify.dev/docs/api/liquid/filters/date) to format the timestamp.
* cart\_level\_discount\_applications
array of [discount\_application](https://shopify.dev/docs/api/liquid/objects/discount_application)
* The discount applications that apply at the order level.
* confirmation\_number
[string](https://shopify.dev/docs/api/liquid/basics#string)
* A randomly generated alpha-numeric identifier for the order that may be shown to the customer instead of the sequential order name. For example, "XPAV284CT", "R50KELTJP" or "35PKUN0UJ". This value isn't guaranteed to be unique.
* created\_at
[string](https://shopify.dev/docs/api/liquid/basics#string)
* A timestamp for when the order was created.
Tip
Use the [`date` filter](https://shopify.dev/docs/api/liquid/filters/date) to format the timestamp.
* customer
[customer](https://shopify.dev/docs/api/liquid/objects/customer)
* The customer that placed the order.
* customer\_order\_url
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The URL for the new order details page.
Customer accounts includes a list of Buyers Orders and an Order Details View. This liquid function exposes a URL to a specific Orders Details in customer accounts. [Setup process for the new order details page](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) can be found in the help center.
* customer\_url
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The URL for the customer to view the order in their account.
* discount\_applications
array of [discount\_application](https://shopify.dev/docs/api/liquid/objects/discount_application)
* All of the discount applications for the order and its line items.
* email
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The email that's associated with the order.
If no email is associated with the order, then `nil` is returned.
* financial\_status
[string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values
* The order's financial status.
| Possible values |
| - |
| authorized |
| expired |
| paid |
| partially\_paid |
| partially\_refunded |
| pending |
| refunded |
| unpaid |
| voided |
* financial\_status\_label
* The localized version of the [financial status](https://shopify.dev/docs/api/liquid/objects/order#order-financial_status) of the order.
Tip
Use this property to output the financial status on the storefront.
* fulfillment\_status
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The fulfillment status of the order.
* fulfillment\_status\_label
[string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values
* The localized version of the [fulfillment status](https://shopify.dev/docs/api/liquid/objects/order#order-fulfillment_status) of the order.
Tip
Use this property to output the fulfillment status on the storefront.
| Possible values |
| - |
| complete |
| fulfilled |
| partial |
| restocked |
| unfulfilled |
* id
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The ID of the order.
* item\_count
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The number of items in the order.
* line\_items
array of [line\_item](https://shopify.dev/docs/api/liquid/objects/line_item)
* The line items in the order.
* line\_items\_subtotal\_price
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The sum of the prices of all of the line items in the order in the currency's subunit, after any line item discounts have been applied.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* metafields
* The [metafields](https://shopify.dev/docs/api/liquid/objects/metafield) applied to the order.
Tip
To learn about how to create metafields, refer to [Create and manage metafields](https://shopify.dev/apps/metafields/manage) or visit the [Shopify Help Center](https://help.shopify.com/manual/metafields).
* name
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The name of the order.
* note
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The note on the order.
If there's no note on the order, then `nil` is returned.
Tip
Notes are [collected with the cart](https://shopify.dev/themes/architecture/templates/cart#support-cart-notes-and-attributes).
* order\_number
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The integer representation of the order [name](https://shopify.dev/docs/api/liquid/objects/order#order-name).
* order\_status\_url
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The URL for the [**Order status** page](https://help.shopify.com/manual/orders/status-tracking) for the order.
* phone
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The phone number associated with the order.
* pickup\_in\_store?
[boolean](https://shopify.dev/docs/api/liquid/basics#boolean)
* Returns `true` if the order is a store pickup order.
* shipping\_address
[address](https://shopify.dev/docs/api/liquid/objects/address)
* The shipping address of the order.
* shipping\_methods
array of [shipping\_method](https://shopify.dev/docs/api/liquid/objects/shipping_method)
* The shipping methods for the order.
* shipping\_price
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The shipping price of the order in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* subtotal\_line\_items
array of [line\_item](https://shopify.dev/docs/api/liquid/objects/line_item)
* The non-tip line items in the order.
Note
These line items are used to calculate the the [subtotal price](https://shopify.dev/docs/api/liquid/objects/order#order-subtotal_price).
* subtotal\_price
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The sum of the prices of the [subtotal line items](https://shopify.dev/docs/api/liquid/objects/order#order-subtotal_line_items) in the currency's subunit, after any line item or cart discounts have been applied.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* tags
array of [string](https://shopify.dev/docs/api/liquid/basics#string)
* The [tags](https://help.shopify.com/manual/shopify-admin/productivity-tools/using-tags) on the order.
The tags are returned in alphabetical order.
* tax\_lines
array of [tax\_line](https://shopify.dev/docs/api/liquid/objects/tax_line)
* The tax lines on the order.
* tax\_price
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The total amount of taxes applied to the order in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* total\_discounts
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The total amount of all discounts applied to the order in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* total\_duties
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The sum of all duties applied to the line items in the order in the currency's subunit.
If there are no duties, then `nil` is returned. The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* total\_net\_amount
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The net amount of the order in the currency's subunit.
The amount is calculated after refunds are applied, so is equal to `order.total_price` minus `order.total_refunded_amount`.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* total\_price
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The total price of the order in the currency's subunit.
Note
The total price is calculated before refunds are applied. Use [`order.total_net_amount`](https://shopify.dev/docs/api/liquid/objects/order#order-total_net_amount) to output the total minus any refunds.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* total\_refunded\_amount
[number](https://shopify.dev/docs/api/liquid/basics#number)
* The total amount that's been refunded from the order in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
Tip
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount.
* transactions
array of [transaction](https://shopify.dev/docs/api/liquid/objects/transaction)
* The transactions of the order.
## Deprecated Properties
* * discounts
[discount](https://shopify.dev/docs/api/liquid/objects/discount)
Deprecated
* The discounts on the order.
Deprecated
Deprecated because not all discount types and details are captured.
The `order.discounts` property has been replaced by [`order.discount_applications`](https://shopify.dev/docs/api/liquid/objects/order#order-discount_applications).
```json
{
"attributes": {},
"billing_address": {},
"cancel_reason": null,
"cancel_reason_label": null,
"cancelled": false,
"cancelled_at": null,
"cart_level_discount_applications": [],
"confirmation_number": "0YMJHPM8U",
"created_at": "2022-04-29 11:15:46 -0400",
"customer": {},
"customer_order_url": "https://shopify.com/56174706753/account/orders/4295688749121?locale=en®ion_country=CA",
"customer_url": "https://polinas-potent-potions.myshopify.com/account/orders/8be02e56c658bcd1f034d28c496fddd9",
"discount_applications": [],
"discounts": null,
"email": "cornelius.potionmaker@gmail.com",
"financial_status": "paid",
"financial_status_label": "Paid",
"fulfillment_status": "partial",
"fulfillment_status_label": "Partial",
"id": 4295688749121,
"item_count": 6,
"line_items": [],
"line_items_subtotal_price": "492.93",
"metafields": {},
"name": "#1001",
"note": null,
"order_number": 1001,
"order_status_url": "https://polinas-potent-potions.myshopify.com/56174706753/orders/8be02e56c658bcd1f034d28c496fddd9/authenticate?key=4f9baf2b8ebd0f75ec73eb9bac6e4519",
"phone": null,
"pickup_in_store?": false,
"shipping_address": {},
"shipping_methods": [],
"shipping_price": "0.00",
"subtotal_line_items": [],
"subtotal_price": "492.93",
"tags": [],
"tax_lines": [],
"tax_price": "0.00",
"total_discounts": "0.00",
"total_duties": null,
"total_net_amount": "492.93",
"total_price": "492.93",
"total_refunded_amount": "0.00",
"transactions": []
}
```
##### Example
```
{
"attributes": {},
"billing_address": {},
"cancel_reason": null,
"cancel_reason_label": null,
"cancelled": false,
"cancelled_at": null,
"cart_level_discount_applications": [],
"confirmation_number": "0YMJHPM8U",
"created_at": "2022-04-29 11:15:46 -0400",
"customer": {},
"customer_order_url": "https://shopify.com/56174706753/account/orders/4295688749121?locale=en®ion_country=CA",
"customer_url": "https://polinas-potent-potions.myshopify.com/account/orders/8be02e56c658bcd1f034d28c496fddd9",
"discount_applications": [],
"discounts": null,
"email": "cornelius.potionmaker@gmail.com",
"financial_status": "paid",
"financial_status_label": "Paid",
"fulfillment_status": "partial",
"fulfillment_status_label": "Partial",
"id": 4295688749121,
"item_count": 6,
"line_items": [],
"line_items_subtotal_price": "492.93",
"metafields": {},
"name": "#1001",
"note": null,
"order_number": 1001,
"order_status_url": "https://polinas-potent-potions.myshopify.com/56174706753/orders/8be02e56c658bcd1f034d28c496fddd9/authenticate?key=4f9baf2b8ebd0f75ec73eb9bac6e4519",
"phone": null,
"pickup_in_store?": false,
"shipping_address": {},
"shipping_methods": [],
"shipping_price": "0.00",
"subtotal_line_items": [],
"subtotal_price": "492.93",
"tags": [],
"tax_lines": [],
"tax_price": "0.00",
"total_discounts": "0.00",
"total_duties": null,
"total_net_amount": "492.93",
"total_price": "492.93",
"total_refunded_amount": "0.00",
"transactions": []
}
```
## Templates using order
[](https://shopify.dev/themes/architecture/templates/customers-order)
[Theme architecturecustomers/order template](https://shopify.dev/themes/architecture/templates/customers-order)