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.
Anchor to Use casesUse cases
- 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.
Supported targets
- customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render
Supported targets
- customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render
Anchor to PropertiesProperties
The Order API object provides information about the placed order. Access the following properties on the API object to read order data.
- Anchor to orderorderorderStatefulRemoteSubscribable<Order | undefined>StatefulRemoteSubscribable<Order | undefined>requiredrequired
Information about the placed order, including its ID, display name, confirmation number, and timestamps.
Order
Details about the placed order, including its identifier, display name, and processing timestamps.
- cancelledAt
The date and time when the order was cancelled, in ISO 8601 format. Returns `undefined` if the order hasn't been cancelled.
string - confirmationNumber
A randomly generated alpha-numeric confirmation code for the order. Always present for orders created in 2024 and later; may be absent for older orders.
string - id
A globally-unique identifier for the order.
string - name
The merchant-facing order number that appears in the Shopify admin and on the order confirmation page.
string - processedAt
The date and time when the order was processed, in ISO 8601 format. Processing happens after checkout completes and indicates the order is available in the Shopify admin.
string
Anchor to Best practicesBest practices
- Handle undefined order: The
orderproperty may beundefinedbefore the order is fully processed. Always check forundefinedbefore accessing order fields. - Use
confirmationNumberfor buyer-facing display: TheconfirmationNumberis a short, readable identifier. Theidis a GID intended for API calls, not for display.
Anchor to LimitationsLimitations
- 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.