# Order The API for interacting with the order, available on the **Order status** page. ## OrderStatusApi The API object provided to `customer-account.order-status` extension targets. ### Docs_OrderStatus_OrderApi ### order value: `StatefulRemoteSubscribable` - Order: export interface Order { /** * A globally-unique identifier. * @example 'gid://shopify/Order/1' */ id: string; /** * Unique identifier for the order that appears on the order. * @example '#1000' */ name: string; /** * If cancelled, the time at which the order was cancelled. */ cancelledAt?: string; } Order information that's available post-checkout. ### Order Information about an order that was placed. ### id value: `string` A globally-unique identifier. ### name value: `string` Unique identifier for the order that appears on the order. ### cancelledAt value: `string` If cancelled, the time at which the order was cancelled. ## Related - [Targets](https://shopify.dev/docs/api/checkout-ui-extensions/targets) - [Components](https://shopify.dev/docs/api/checkout-ui-extensions/components) - [Configuration](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) - [Tutorials](/apps/checkout) ## useOrder Returns the order information that's available on the **Order status** page. ### UseOrderGeneratedType Returns the order information that's available post-checkout. #### Returns: Order | undefined export function useOrder< Target extends RenderExtensionTarget = RenderExtensionTarget, >(): Order | undefined { const api = useApi(); if ('order' in api) { return useSubscription(api.order); } throw new ExtensionHasNoMethodError('order', api.extension.target); } ### Order Information about an order that was placed. ### id value: `string` A globally-unique identifier. ### name value: `string` Unique identifier for the order that appears on the order. ### cancelledAt value: `string` If cancelled, the time at which the order was cancelled. ## Related - [Targets](https://shopify.dev/docs/api/checkout-ui-extensions/targets) - [Components](https://shopify.dev/docs/api/checkout-ui-extensions/components) - [Configuration](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) - [Tutorials](/apps/checkout)