# order - customer - QUERY Version: 2024-10 ## Description Returns an Order resource by ID. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data). ### Access Scopes ## Arguments * [id](/docs/api/customer/2024-10/scalars/ID): ID! - The ID of the Order to return. ## Returns * [billingAddress](/docs/api/customer/2024-10/objects/CustomerAddress): CustomerAddress The mailing address provided by the customer. Not all orders have a mailing address. * [cancelReason](/docs/api/customer/2024-10/enums/OrderCancelReason): OrderCancelReason The reason for the cancellation of the order. Returns `null` if the order wasn't canceled. * [cancelledAt](/docs/api/customer/2024-10/scalars/DateTime): DateTime The date and time when the order was canceled. Returns `null` if the order wasn't canceled. * [confirmationNumber](/docs/api/customer/2024-10/scalars/String): 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. * [createdAt](/docs/api/customer/2024-10/scalars/DateTime): DateTime! The date and time when the order was created. * [currencyCode](/docs/api/customer/2024-10/enums/CurrencyCode): CurrencyCode! The shop currency when the order was placed. * [customer](/docs/api/customer/2024-10/objects/Customer): Customer The customer who placed the order. * [customerLocale](/docs/api/customer/2024-10/scalars/String): String The locale code representing the region where this specific order was placed. * [draftOrder](/docs/api/customer/2024-10/objects/DraftOrder): DraftOrder The draft order associated with the order. * [edited](/docs/api/customer/2024-10/scalars/Boolean): Boolean! Whether the order has been edited or not. * [email](/docs/api/customer/2024-10/scalars/String): String The email address of the customer. * [financialStatus](/docs/api/customer/2024-10/enums/OrderFinancialStatus): OrderFinancialStatus The financial status of the order. * [id](/docs/api/customer/2024-10/scalars/ID): ID! A globally-unique ID. * [locationName](/docs/api/customer/2024-10/scalars/String): String The name of the fulfillment location assigned at the time of order creation. * [metafield](/docs/api/customer/2024-10/objects/Metafield): Metafield A metafield found by namespace and key. * [metafields](/docs/api/customer/2024-10/objects/Metafield): Metafield! The metafields associated with the resource matching the supplied list of namespaces and keys. * [name](/docs/api/customer/2024-10/scalars/String): String! The identifier for the order that appears on the order. For example, _#1000_ or _Store1001. * [note](/docs/api/customer/2024-10/scalars/String): String The order's notes. * [number](/docs/api/customer/2024-10/scalars/Int): Int! A unique numeric identifier for the order, used by both the shop owner and customer. * [paymentInformation](/docs/api/customer/2024-10/objects/OrderPaymentInformation): OrderPaymentInformation The payment information for the order. * [phone](/docs/api/customer/2024-10/scalars/String): String The phone number of the customer for SMS notifications. * [poNumber](/docs/api/customer/2024-10/scalars/String): String The purchase order number of the order. * [processedAt](/docs/api/customer/2024-10/scalars/DateTime): DateTime! 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](/docs/api/customer/2024-10/unions/PurchasingEntity): PurchasingEntity The purchasing entity for the order. * [refunds](/docs/api/customer/2024-10/objects/Refund): Refund! A list of refunds associated with the order. * [requiresShipping](/docs/api/customer/2024-10/scalars/Boolean): Boolean! Whether the order requires shipping. * [shippingAddress](/docs/api/customer/2024-10/objects/CustomerAddress): CustomerAddress The mailing address to which the order items are shipped. * [shippingDiscountAllocations](/docs/api/customer/2024-10/objects/DiscountAllocation): DiscountAllocation! The discounts that have been allocated onto the shipping line by discount applications. * [shippingLine](/docs/api/customer/2024-10/objects/ShippingLine): ShippingLine A summary of all shipping costs on the order. * [statusPageUrl](/docs/api/customer/2024-10/scalars/URL): URL! The unique URL for the status page of the order. * [subtotal](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2 The price of the order before duties, shipping, and taxes. * [totalDuties](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2 The total amount of duties after returns. * [totalPrice](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2! The total amount of the order (including taxes and discounts) minus the amounts for line items that have been returned. * [totalRefunded](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2! The total amount refunded. * [totalShipping](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2! The total cost of shipping. * [totalTax](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2 The total cost of taxes. * [totalTip](/docs/api/customer/2024-10/objects/MoneyV2): MoneyV2 The total value of tips. * [transactions](/docs/api/customer/2024-10/objects/OrderTransaction): OrderTransaction! A list of transactions associated with the order. ## Examples