Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Order API

The Order API provides information about the placed order, including its ID, display name, confirmation number, and timestamps. Use it to show order details or check cancellation status on the Order status page.

  • 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 Order API object provides information about the placed order. Access the following properties on the API object to read order data.

Anchor to order
order
StatefulRemoteSubscribable< | undefined>
required

Information about the placed order, including its ID, display name, confirmation number, and timestamps.


  • Handle undefined order: The order property may be undefined before the order is fully processed. Always check for undefined before accessing order fields.
  • Use confirmationNumber for buyer-facing display: The confirmationNumber is a short, readable identifier. The id is a GID intended for API calls, not for display.

  • 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?