Skip to main content

OrderStatusApi

This API object is provided to extensions registered for the extension targets that appear exclusively on the Order status page.

It extends the StandardApi and provides access to an order object.

See the StandardApi examples for more information on how to use the API.

StatefulRemoteSubscribable< | undefined>
required

Order information that's available post-checkout.

Was this section helpful?
import {
reactExtension,
Banner,
useOrder,
} from '@shopify/ui-extensions-react/checkout';

export default reactExtension(
'customer-account.order-status.customer-information.render-after',
() => <Extension />,
);

function Extension() {
const order = useOrder();

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

return null;
}