Skip to main content
object

Requires unauthenticated_read_customers access scope.

An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information.

MailingAddress

The address associated with the payment method.

DateTime

The date and time when the order was canceled. Returns null if the order wasn't canceled.

OrderCancelReason

The reason for the order's cancellation. Returns null if the order wasn't canceled.

CurrencyCode!
non-null

The code of the currency used for the payment.

Anchor to currentSubtotalPricecurrentSubtotalPrice
MoneyV2!
non-null

The subtotal of line items and their discounts, excluding line items that have been removed. Does not contain order-level discounts, duties, shipping costs, or shipping discounts. Taxes aren't included unless the order is a taxes-included order.

MoneyV2

The total cost of duties for the order, including refunds.

MoneyV2!
non-null

The total amount of the order, including duties, taxes and discounts, minus amounts for line items that have been removed.

Anchor to currentTotalShippingPricecurrentTotalShippingPrice
MoneyV2!
non-null

The total cost of shipping, excluding shipping lines that have been refunded or removed. Taxes aren't included unless the order is a taxes-included order.

MoneyV2!
non-null

The total of all taxes applied to the order, excluding taxes for returned line items.

[Attribute!]!
non-null

A list of the custom attributes added to the order. For example, whether an order is a customer's first.

String

The locale code in which this specific order happened.

URL

The unique URL that the customer can use to access the order.

Anchor to discountApplicationsdiscountApplications
DiscountApplicationConnection!
non-null

Discounts that have been applied on the order.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


Boolean!
non-null

Whether the order has had any edits applied or not.

String

The customer's email address.

OrderFinancialStatus

The financial status of the order.

OrderFulfillmentStatus!
non-null

The fulfillment status for the order.

ID!
non-null

A globally-unique ID.

OrderLineItemConnection!
non-null

List of the order’s line items.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

String!
required

The identifier for the metafield.


[Metafield]!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.

The input must not contain more than 250 values.


String!
non-null

Unique identifier for the order that appears on the order. For example, #1000 or _Store1001.

Int!
non-null

A unique numeric identifier for the order for use by shop owner and customer.

MoneyV2

The total cost of duties charged at checkout.

MoneyV2!
non-null

The total price of the order before any applied edits.

String

The customer's phone number for receiving SMS notifications.

DateTime!
non-null

The date and time when the order was imported. This value can be set to dates in the past when importing from other systems. If no value is provided, it will be auto-generated based on current date and time.

MailingAddress

The address to where the order will be shipped.

Anchor to shippingDiscountAllocationsshippingDiscountAllocations
[DiscountAllocation!]!
non-null

The discounts that have been allocated onto the shipping line by discount applications.

URL!
non-null

The unique URL for the order's status page.

MoneyV2

Price of the order before shipping and taxes.

Anchor to successfulFulfillmentssuccessfulFulfillments
[Fulfillment!]

List of the order’s successful fulfillments.

Arguments

Int

Truncate the array result to this size.


MoneyV2!
non-null

The sum of all the prices of all the items in the order, duties, taxes and discounts included (must be positive).

MoneyV2!
non-null

The total amount that has been refunded.

MoneyV2!
non-null

The total cost of shipping.

MoneyV2

The total cost of taxes.

Deprecated fields

MoneyV2
Deprecated
MoneyV2!
non-nullDeprecated
MoneyV2!
non-nullDeprecated
Anchor to totalShippingPriceV2totalShippingPriceV2
MoneyV2!
non-nullDeprecated
MoneyV2
Deprecated

Was this section helpful?


Was this section helpful?