Skip to main content
object

Requires customer_read_orders access scope.

A customer’s completed request to purchase one or more products from a shop. Apps using the Customer Account API must meet the protected customer data requirements.

SalesAgreementConnection!
non-null

A list of sales agreements associated with the order.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

Boolean
Default:false

Reverse the order of the underlying list.


CustomerAddress

The mailing address provided by the customer. Not all orders have a mailing address.

Show fields
DateTime

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

OrderCancelReason

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

Show enum values
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.

DateTime!
non-null

The date and time when the order was created.

CurrencyCode!
non-null

The shop currency when the order was placed.

Show enum values
Customer

The customer who placed the order.

Show fields
String

The locale code representing the region where this specific order was placed.

Anchor to discountApplicationsdiscountApplications
DiscountApplicationConnection!
non-null

The discounts that have been applied to the order.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

Boolean
Default:false

Reverse the order of the underlying list.


DraftOrder

The draft order associated with the order.

Show fields
Boolean!
non-null

Whether the order has been edited or not.

String

The email address of the customer.

OrderFinancialStatus

The financial status of the order.

Show enum values
FulfillmentConnection!
non-null

The fulfillments associated with the order.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to order_id
id
Anchor to shipment_status
string
string
Boolean
Default:false

Reverse the order of the underlying list.

FulfillmentSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

OrderFulfillmentStatus!
non-null

The fulfillment status of the order.

Show enum values
ID!
non-null

A globally-unique ID.

LineItemConnection!
non-null

The list of line items of the order.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

Boolean
Default:false

Reverse the order of the underlying list.


String

The name of the fulfillment location assigned at the time of order creation.

Metafield

A metafield found by namespace and key.

Show fields

Arguments

String!
required

The identifier for the metafield.

String!
required

A container for a set of metafields.


[Metafield]!
non-null

The metafields associated with the resource matching the supplied list of namespaces and keys.

Show fields

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.

Show input fields

String!
non-null

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

String

The order's notes.

Int!
non-null

A unique numeric identifier for the order, used by both the shop owner and customer.

OrderPaymentInformation

The payment information for the order.

Show fields
String

The phone number of the customer for SMS notifications.

String

The purchase order number of the order.

DateTime!
non-null

The date and time when the order was processed. 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.

PurchasingEntity

The purchasing entity for the order.

Show union types
[Refund!]!
non-null

A list of refunds associated with the order.

Show fields
Boolean!
non-null

Whether the order requires shipping.

OrderReturnInformation!
non-null

The return information for the order.

Show fields
ReturnConnection!
non-null

The list of returns for the order with pagination.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

Boolean
Default:false

Reverse the order of the underlying list.

ReturnSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

CustomerAddress

The mailing address to which the order items are shipped.

Show fields
Anchor to shippingDiscountAllocationsshippingDiscountAllocations
[DiscountAllocation!]!
non-null

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

Show fields
ShippingLine

A summary of all shipping costs on the order.

Show fields
URL!
non-null

The unique URL for the status page of the order.

Anchor to subscriptionContractssubscriptionContracts
SubscriptionContractConnection

The customer Subscription Contracts associated with the order.

Show fields

Arguments

String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to last_billing_attempt_error_type
string
string
Anchor to updated_at
time
Boolean
Default:false

Reverse the order of the underlying list.

SubscriptionContractsSortKeys
Default:CREATED_AT

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

MoneyV2

The price of the order before duties, shipping, and taxes.

Show fields
MoneyV2

The total amount of duties after returns.

Show fields
MoneyV2!
non-null

The total amount of the order (including taxes and discounts) minus the amounts for line items that have been returned.

Show fields
MoneyV2!
non-null

The total amount refunded.

Show fields
MoneyV2!
non-null

The total cost of shipping.

Show fields
MoneyV2

The total cost of taxes.

Show fields
MoneyV2

The total value of tips.

Show fields
[OrderTransaction!]!
non-null

A list of transactions associated with the order.

Show fields
DateTime!
non-null

The date and time when the order was last updated.


Was this section helpful?

query

Returns an Order resource by ID. Apps using the Customer Account API must meet the protected customer data requirements.

Show fields

Arguments

ID!
required

The ID of the Order to return.



Was this section helpful?

interface

Was this section helpful?