Order
order?: Order
The current order state, containing order status, tracking statuses, and additional metadata.
This property is only available on the checkout success page after the order has been completed, and will be undefined on all other pages.
| Property | Type | Always present | Description |
|---|---|---|---|
status | "open" or "closed" or "cancelled" or null | No | Status of the order. |
tracking_statuses | OrderTrackingStatus[] | No | Tracking statuses of the order. |
extra | Record\<string, string> | No | Additional metadata for the order, set by partner apps. |
OrderTrackingStatus (each element of order.tracking_statuses):
| Property | Type | Always present | Description |
|---|---|---|---|
type | "shipped" or "packed" or "shipping_failure" | Yes | Type of the tracking status. |
title | string | Yes | Title of the tracking status. |
timestamp | string | Yes | Timestamp of the tracking status. |
To set order.extra from your app, dispatch the order:add:extra event.
For the exact TypeScript definitions, use the types from @tiendanube/nube-sdk-types (e.g. Order, OrderTrackingStatus).
Help us improve NubeSDK
Found an issue or have a suggestion? Let us know on GitHub.