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": "paid_for",
"localizeInfos": {
"title": "Paid for"
},
"isDefault": false,
"position": 1,
"isUsed": false
},
{
"id": 2,
"identifier": "inProgress",
"localizeInfos": {
"title": "In progress"
},
"isDefault": true,
"position": 2,
"isUsed": true
}
]
Response schema
Schema: IOrderStatusEntity[]
id: number
Status identifier.
example: 1
localizeInfos: ILocalizeInfo
Localized information for the status.
identifier: string
Text identifier of the status.
example: "inProgress"
position: number
Position of the status.
example: 1
isUsed: boolean
Whether the status is in use.
example: true
isDefault: boolean
Whether the status is the default status.
example: true