getAllStatusesByStorageMarker
Getting all order statuses available for a specific order storage by its marker.
Description
This method retrieves all order status objects associated with a specific order storage, identified by its textual marker. It returns a Promise that resolves to an array of IOrderStatusEntity objects.
Orders.getAllStatusesByStorageMarker(
marker*,
langCode,
offset,
limit
);
Parameters schema
Schema
marker(required): string
Textual identifier of the order storage object
example: "order_storage_1"
langCode: string
Language code. Default: "en_US"
example: "en_US"
offset: number
Offset parameter. Default: 0
example: 0
limit: number
Limit parameter. Default: 30
example: 30
Examples
Minimal example
const response = await Orders.getAllStatusesByStorageMarker('my_order');
Example with attributes
const response = await Orders.getAllStatusesByStorageMarker('my_order', 'en_US');
Example response
[
{
"id": 1,
"identifier": "inProgress",
"localizeInfos": {
"title": "In Progress"
},
"isDefault": true,
"position": 1
},
{
"id": 2,
"identifier": "completed",
"localizeInfos": {
"title": "Completed"
},
"isDefault": false,
"position": 2
},
{
"id": 3,
"identifier": "cancelled",
"localizeInfos": {
"title": "Cancelled"
},
"isDefault": false,
"position": 3
}
]
Response schema
Schema: IOrderStatusEntity[]
id: number
Status identifier.
example: 1
localizeInfos: object
Localized information for the status.
identifier: string
Text identifier of the status.
example: "inProgress"
position: Record<string, unknown>
Position of the status.
isUsed: boolean
Whether the status is in use.
example: true