Skip to main content

Order API

The Order API provides read-only access to core order details on the Order status page. Use this API to identify the current order, display its status, or correlate it with data from other Shopify APIs.

  • Display the order number: Show the human-readable order name (for example, #1000) to the buyer.
  • Show order status: Check the cancellation and processing timestamps to determine and display the current order status.
  • Reference the confirmation number: Display the confirmation number so the buyer can reference it when contacting support.

The shopify global object provides details about the placed order. Access the following properties on shopify to read the order ID, display name, confirmation number, processing date, and cancellation status.

Anchor to order
order
< | undefined>
required

The order that was placed after checkout completion. Includes the order ID, display name, confirmation number, and timestamps for processing and cancellation. The value is undefined if the order hasn't been fully processed yet.


  • Use name for display and id for lookups: The name property (for example, #1000) is the human-readable order number shown to buyers. Use the id property (a globally-unique GID) for API lookups and data storage.

  • The Order API provides summary-level information only. For detailed order data such as fulfillments or transactions, use the GraphQL Admin API through a backend service.

Was this page helpful?