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 API for interacting with the order confirmation, available on the Thank You page.

Anchor to orderconfirmationapiOrderConfirmationApi

The API object provided to purchase.thank-you extension targets.

Anchor to orderConfirmation
orderConfirmation
StatefulRemoteSubscribable<>
required

Order information that's available post-checkout.

Examples
import {
reactExtension,
Banner,
useApi,
useSubscription,
} from '@shopify/ui-extensions-react/checkout';

export default reactExtension(
'purchase.thank-you.block.render',
() => <Extension />,
);

function Extension() {
const {orderConfirmation} = useApi();
const {id} = useSubscription(orderConfirmation);

if (id) {
return (
<Banner>
Please include your order confirmation ID
({id}) in support requests
</Banner>
);
}

return null;
}
Was this page helpful?