This API object is provided to extensions registered for the extension targets that appear exclusively on the **Order status** page. It extends the [StandardApi](/docs/api/checkout-ui-extensions/apis/standardapi) and provides access to an order object.
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;
}
import {
Banner,
extension,
} from '@shopify/ui-extensions/checkout';
export default extension(
'customer-account.order-status.customer-information.render-after',
(root, {order}) => {
let bannerShown = false;
order.subscribe((order) => {
if (order && !bannerShown) {
root.appendChild(
root.createComponent(
Banner,
undefined,
`Please include your order ID (${order.id}) in support requests`,
),
);
bannerShown = true;
}
});
},
);
See the [StandardApi examples](/docs/api/checkout-ui-extensions/apis/standardapi#examples) for more information on how to use the API.
Order information that's available post-checkout.
Information about an order that was placed.
A globally-unique identifier.
Unique identifier for the order that appears on the order.
If cancelled, the time at which the order was cancelled.