Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

query

Returns an Order resource by ID.

ID!required

The ID of the Order to return.


Was this section helpful?

An order is a customer's request to purchase one or more products from a shop. You can retrieve and update orders using the Order object. Learn more about editing an existing order with the GraphQL Admin API.

Only the last 60 days' worth of orders from a store are accessible from the Order object by default. If you want to access older orders, then you need to request access to all orders. If your app is granted access, then you can add the read_all_orders scope to your app along with read_orders or write_orders. Private apps are not affected by this change and are automatically granted the scope.

Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.

additionalFees
non-null

A list of additional fees applied to the order.

agreements
non-null

A list of sales agreements associated with the order.

alerts
non-null

A list of messages that appear on the order page in the Shopify admin.

app

The application that created the order.

billingAddress

The billing address of the customer.

billingAddressMatchesShippingAddress
non-null

Whether the billing address matches the shipping address.

cancellation

Cancellation details for the order.

cancelledAt

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

cancelReason

The reason provided when the order was canceled. Returns null if the order wasn't canceled.

canMarkAsPaid
non-null

Whether the order can be manually marked as paid.

canNotifyCustomer
non-null

Whether a customer email exists for the order.

capturable
non-null

Whether payment for the order can be captured.

cartDiscountAmountSet

The total order-level discount amount, before returns, in shop and presentment currencies.

channelInformation

Details about the channel that created the order.

clientIp

The IP address of the API client that created the order.

closed
non-null

Whether the order is closed.

closedAt

The date and time when the order was closed. Returns null if the order isn't closed.

confirmationNumber

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.

confirmed
non-null

Whether inventory has been reserved for the order.

createdAt
non-null

Date and time when the order was created in Shopify.

currencyCode
non-null

The shop currency when the order was placed.

currentCartDiscountAmountSet
non-null

The current order-level discount amount after all order updates, in shop and presentment currencies.

currentShippingPriceSet
non-null

The current shipping price after applying refunds and discounts. If the parent order.taxesIncluded field is true, then this price includes taxes. Otherwise, this field is the pre-tax price.

currentSubtotalLineItemsQuantity
non-null

The sum of the quantities for all line items that contribute to the order's current subtotal price.

currentSubtotalPriceSet
non-null

The sum of the prices for all line items after discounts and returns, in shop and presentment currencies. If taxesIncluded is true, then the subtotal also includes tax.

currentTaxLines
non-null

A list of all tax lines applied to line items on the order, after returns. Tax line prices represent the total price for all tax lines with the same rate and title.

currentTotalAdditionalFeesSet

The total amount of additional fees after returns, in shop and presentment currencies. Returns null if there are no additional fees for the order.

currentTotalDiscountsSet
non-null

The total amount discounted on the order after returns, in shop and presentment currencies. This includes both order and line level discounts.

currentTotalDutiesSet

The total amount of duties after returns, in shop and presentment currencies. Returns null if duties aren't applicable.

currentTotalPriceSet
non-null

The total price of the order, after returns, in shop and presentment currencies. This includes taxes and discounts.

currentTotalTaxSet
non-null

The sum of the prices of all tax lines applied to line items on the order, after returns, in shop and presentment currencies.

currentTotalWeight
non-null

The total weight of the order after returns, in grams.

customAttributes
non-null

A list of additional merchant-facing details that have been added to the order. For example, whether an order is a customer's first.

customer

The customer that placed the order.

customerAcceptsMarketing
non-null

Whether the customer agreed to receive marketing materials.

customerJourneySummary

The customer's visits and interactions with the online store before placing the order.

customerLocale

A two-letter or three-letter language code, optionally followed by a region modifier.

discountApplications
non-null

A list of discounts that are applied to the order, not including order edits and refunds.

discountCode

The discount code used for the order.

discountCodes
non-null

The discount codes used for the order.

displayAddress

The primary address of the customer. Returns null if neither the shipping address nor the billing address was provided.

displayFinancialStatus

The financial status of the order that can be shown to the merchant. This field doesn't capture all the details of an order's financial state. It should only be used for display summary purposes.

displayFulfillmentStatus
non-null

The fulfillment status for the order that can be shown to the merchant. This field does not capture all the details of an order's fulfillment state. It should only be used for display summary purposes. For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.

disputes
non-null

A list of the disputes associated with the order.

dutiesIncluded
non-null

Whether duties are included in the subtotal price of the order.

edited
non-null

Whether the order has had any edits applied.

email

The email address associated with the customer.

estimatedTaxes
non-null

Whether taxes on the order are estimated. This field returns false when taxes on the order are finalized and aren't subject to any changes.

events
non-null

A list of events associated with the order.

fulfillable
non-null

Whether there are line items that can be fulfilled. This field returns false when the order has no fulfillable line items. For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.

fulfillmentOrders
non-null

A list of fulfillment orders for a specific order.

FulfillmentOrder API access scopes govern which fulfillments orders are returned. An API client will only receive a subset of the fulfillment orders which belong to an order if they don't have the necessary access scopes to view all of the fulfillment orders. In the case that an API client does not have the access scopes necessary to view any of the fulfillment orders that belong to an order, an empty array will be returned.

fulfillments
non-null

List of shipments for the order.

fulfillmentsCount

The count of fulfillments including the cancelled fulfillments.

fullyPaid
non-null

Whether the order has been paid in full.

hasTimelineComment
non-null

Whether the merchant added a timeline comment to the order.

id
non-null

A globally-unique ID.

legacyResourceId
non-null

The ID of the corresponding resource in the REST Admin API.

lineItems
non-null

A list of the order's line items.

merchantBusinessEntity
non-null

The merchant's business entity associated with the order.

merchantEditable
non-null

Whether the order can be edited by the merchant. For example, canceled orders can’t be edited.

merchantEditableErrors
non-null

A list of reasons why the order can't be edited. For example, "Canceled orders can't be edited".

merchantOfRecordApp

The application acting as the Merchant of Record for the order.

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.

metafields
non-null

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

name
non-null

The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, "#1001", "EN1001", or "1001-A". This value isn't unique across multiple stores.

netPaymentSet
non-null

The net payment for the order, based on the total amount received minus the total amount refunded, in shop and presentment currencies.

nonFulfillableLineItems
non-null

A list of line items that can't be fulfilled. For example, tips and fully refunded line items can't be fulfilled. For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.

note

The contents of the note associated with the order.

originalTotalAdditionalFeesSet

The total amount of additional fees at the time of order creation, in shop and presentment currencies. Returns null if additional fees aren't applicable.

originalTotalDutiesSet

The total amount of duties at the time of order creation, in shop and presentment currencies. Returns null if duties aren't applicable.

originalTotalPriceSet
non-null

The total price of the order at the time of order creation, in shop and presentment currencies.

paymentCollectionDetails
non-null

The payment collection details for the order.

paymentGatewayNames
non-null

A list of the names of all payment gateways used for the order. For example, "Shopify Payments" and "Cash on Delivery (COD)".

paymentTerms

The payment terms associated with the order.

phone

The phone number associated with the customer.

poNumber

The PO number associated with the order.

presentmentCurrencyCode
non-null

The payment CurrencyCode of the customer for the order.

processedAt
non-null

The date and time when the order was processed. This date and time might not match the date and time when the order was created.

publication

The publication that the order was created from.

purchasingEntity

The purchasing entity for the order.

refundable
non-null

Whether the order can be refunded.

refundDiscrepancySet
non-null

The difference between the suggested and actual refund amount of all refunds that have been applied to the order. A positive value indicates a difference in the merchant's favor, and a negative value indicates a difference in the customer's favor.

refunds
non-null

A list of refunds that have been applied to the order.

registeredSourceUrl

The URL of the source that the order originated from, if found in the domain registry.

requiresShipping
non-null

Whether the order has shipping lines or at least one line item on the order that requires shipping.

restockable
non-null

Whether any line item on the order can be restocked.

retailLocation

The physical location where a retail order is created or completed, except for draft POS orders completed via the “mark as paid” flow in Admin, which return null. Transactions associated with the order might have been processed at a different location.

returns
non-null

A list of returns for the order.

returnStatus
non-null

The order's aggregated return status for display purposes.

risk
non-null

The risk characteristics for the order.

shippingAddress

The mailing address of the customer.

shippingLine

A summary of all shipping costs on the order.

shippingLines
non-null

A list of the order's shipping lines.

shopifyProtect

The Shopify Protect details for the order. If Shopify Protect is disabled for the shop, then this will be null.

sourceIdentifier

A unique POS or third party order identifier. For example, "1234-12-1000" or "111-98567-54". The receipt_number field is derived from this value for POS orders.

sourceName

The name of the source associated with the order.

staffMember

The staff member associated with the order.

statusPageUrl
non-null

The URL where the customer can check the order's current status.

subtotalLineItemsQuantity
non-null

The sum of the quantities for all line items that contribute to the order's subtotal price.

subtotalPriceSet

The sum of the prices for all line items after discounts and before returns, in shop and presentment currencies. If taxesIncluded is true, then the subtotal also includes tax.

suggestedRefund

A suggested refund for the order.

tags
non-null

A comma separated list of tags associated with the order. Updating tags overwrites any existing tags that were previously added to the order. To add new tags without overwriting existing tags, use the tagsAdd mutation.

taxesIncluded
non-null

Whether taxes are included in the subtotal price of the order.

taxExempt
non-null

Whether taxes are exempt on the order.

taxLines
non-null

A list of all tax lines applied to line items on the order, before returns. Tax line prices represent the total price for all tax lines with the same rate and title.

test
non-null

Whether the order is a test. Test orders are made using the Shopify Bogus Gateway or a payment provider with test mode enabled. A test order can't be converted into a real order and vice versa.

totalCapturableSet
non-null

The authorized amount that's uncaptured or undercaptured, in shop and presentment currencies. This amount isn't adjusted for returns.

totalCashRoundingAdjustment
non-null

The total rounding adjustment applied to payments or refunds for an Order involving cash payments. Applies to some countries where cash transactions are rounded to the nearest currency denomination.

totalDiscountsSet

The total amount discounted on the order before returns, in shop and presentment currencies. This includes both order and line level discounts.

totalOutstandingSet
non-null

The total amount not yet transacted for the order, in shop and presentment currencies. A positive value indicates a difference in the merchant's favor (payment from customer to merchant) and a negative value indicates a difference in the customer's favor (refund from merchant to customer).

totalPriceSet
non-null

The total price of the order, before returns, in shop and presentment currencies. This includes taxes and discounts.

totalReceivedSet
non-null

The total amount received from the customer before returns, in shop and presentment currencies.

totalRefundedSet
non-null

The total amount that was refunded, in shop and presentment currencies.

totalRefundedShippingSet
non-null

The total amount of shipping that was refunded, in shop and presentment currencies.

totalShippingPriceSet
non-null

The total shipping amount before discounts and returns, in shop and presentment currencies.

totalTaxSet

The total tax amount before returns, in shop and presentment currencies.

totalTipReceivedSet
non-null

The sum of all tip amounts for the order, in shop and presentment currencies.

totalWeight

The total weight of the order before returns, in grams.

transactions
non-null

A list of transactions associated with the order.

transactionsCount

The number of transactions associated with the order.

unpaid
non-null

Whether no payments have been made for the order.

updatedAt
non-null

The date and time when the order was modified last.

cartDiscountAmount

The total order-level discount amount, before returns, in shop currency.

channel

The channel that created the order.

customerJourney

The customer's visits and interactions with the online store before placing the order.

landingPageDisplayText

The URL of the first page of the online store that the customer visited before they submitted the order.

landingPageUrl

The first page of the online store that the customer visited before they submitted the order.

localizationExtensions
non-null

List of localization extensions for the resource.

metafieldDefinitions
non-null

List of metafield definitions.

netPayment
non-null

The net payment for the order, based on the total amount received minus the total amount refunded, in shop currency.

physicalLocation

The fulfillment location that was assigned when the order was created. Orders can have multiple fulfillment orders. These fulfillment orders can each be assigned to a different location which is responsible for fulfilling a subset of the items in an order. The Order.physicalLocation field will only point to one of these locations. Use the FulfillmentOrder object for up to date fulfillment location information.

privateMetafield

Returns a private metafield by namespace and key that belongs to the resource.

privateMetafields
non-null

List of private metafields that belong to the resource.

referralCode

The marketing referral code from the link that the customer clicked to visit the store. Supports the following URL attributes: "ref", "source", or "r". For example, if the URL is {shop}.myshopify.com/products/slide?ref=j2tj1tn2, then this value is j2tj1tn2.

referrerDisplayText

A web domain or short description of the source that sent the customer to your online store. For example, "shopify.com" or "email".

referrerUrl

The URL of the webpage where the customer clicked a link that sent them to your online store.

riskLevel
non-null

The fraud risk level of the order.

risks
non-null

A list of risks associated with the order.

subtotalPrice

The sum of the prices for all line items after discounts and before returns, in shop currency. If taxesIncluded is true, then the subtotal also includes tax.

totalCapturable
non-null

The authorized amount that's uncaptured or undercaptured, in shop currency. This amount isn't adjusted for returns.

totalDiscounts

The total amount discounted on the order before returns, in shop currency. This includes both order and line level discounts.

totalPrice
non-null

The total price of the order, before returns, in shop currency. This includes taxes and discounts.

totalReceived
non-null

The total amount received from the customer before returns, in shop currency.

totalRefunded
non-null

The total amount that was refunded, in shop currency.

totalShippingPrice
non-null

The total shipping amount before discounts and returns, in shop currency.

totalTax

The total tax amount before returns, in shop currency.

totalTipReceived
non-null

The sum of all tip amounts for the order, in shop currency.


Was this section helpful?