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 read-only access to order data. Use this API to get order information and build contextual experiences based on the selected order context. The API offers order details for implementing order-specific functionality and workflows.
Anchor to Use casesUse cases
- Order access: Access the order identifier to implement order-specific functionality.
- Order extensions: Build extensions displaying order information or management tools.
- Contextual UI: Create contextual interfaces adapting based on current order context.
- External integrations: Link order data with external systems or order management platforms.
Supported targets
- pos.
exchange. post. action. menu-item. render - pos.
exchange. post. action. render - pos.
exchange. post. block. render - pos.
order-details. action. menu-item. render - pos.
order-details. action. render - pos.
order-details. block. render - pos.
purchase. post. action. menu-item. render - pos.
purchase. post. action. render - pos.
purchase. post. block. render - pos.
return. post. action. menu-item. render - pos.
return. post. action. render - pos.
return. post. block. render
Supported targets
- pos.
exchange. post. action. menu-item. render - pos.
exchange. post. action. render - pos.
exchange. post. block. render - pos.
order-details. action. menu-item. render - pos.
order-details. action. render - pos.
order-details. block. render - pos.
purchase. post. action. menu-item. render - pos.
purchase. post. action. render - pos.
purchase. post. block. render - pos.
return. post. action. menu-item. render - pos.
return. post. action. render - pos.
return. post. block. render
Anchor to PropertiesProperties
The Order API object provides access to order data. Access the following properties on the API object to get the order identifier, name, and associated customer for implementing order-specific functionality.
- Anchor to idididnumbernumberrequiredrequired
The unique identifier for the order. Use for order lookups, implementing order-specific functionality, and integrating with external systems.
- Anchor to namenamenamestringstringrequiredrequired
The name of the order as configured by the merchant. Use for order identification, displays, and customer-facing interfaces.
- Anchor to customerIdcustomerIdcustomerIdnumbernumber
The unique identifier of the customer associated with the order. Returns
undefinedif no customer is associated. Use for customer-specific functionality and personalized experiences.
Anchor to Best practicesBest practices
- Implement order-specific features: Use the order context to enable specialized functionality like order fulfillment, customer communication, or order modification workflows.
- Validate order access: Verify that the order ID is valid before performing order-specific operations or external API calls.
Anchor to LimitationsLimitations
- The API provides only basic order information—use Shopify APIs or external systems to fetch additional order details like line items, totals, or fulfillment status.
- Order data reflects the current POS session and may not include real-time updates from other channels until the session is refreshed.