The API for interacting with the order, available on the **Order status** page.
The API object provided to `customer-account.order-status` extension targets.
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.
Returns the order information that's available on the **Order status** page.
Returns the order information that's available post-checkout.
export function useOrder< Target extends RenderExtensionTarget = RenderExtensionTarget, >(): Order | undefined { const api = useApi<Target>(); if ('order' in api) { return useSubscription(api.order); } throw new ExtensionHasNoMethodError('order', api.extension.target); }
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.