Ana içeriğe geç

getAllOrdersByMarker

Kullanıcı tarafından oluşturulan sipariş depolama nesnesinden tüm siparişleri alma. 🔐 Bu yöntem yetkilendirme? gerektirir.

Siparişler?.getAllOrdersByMarker( marker?, langCode?, offset?, limit? );

Minimal örnek

const value = await Orders.getAllOrdersByMarker('my-order')
Şema

marker(required): string
Sipariş depolama nesnesinin metinsel tanımlayıcısı
örnek: "order_storage_1"

langCode: string
Dil kodu. Varsayılan: "en_US"
örnek: "en_US"

offset: number
Ofset parametresi. Varsayılan: 0
örnek: 0

limit: number
Limit parametresi. Varsayılan: 30
örnek: 30

Bu yöntem, belirteç ile tüm sipariş depolama nesnelerini alır. Yöntem, isteğin gövdesine varsayılan dili ekleyecektir. Dili değiştirmek isterseniz, sadece ikinci argüman olarak geçirin.

Örnek yanıt

{
"items": [
{
"id": 233,
"storageId": 1,
"createdDate": "2025-07-21T09:40:08.552Z",
"statusIdentifier": "inProgress",
"formIdentifier": "orderForm",
"formData": [
{
"marker": "order_name",
"value": "Ivan",
"type": "string"
}
],
"attributeSetIdentifier": "order_form",
"totalSum": "300.00",
"currency": "",
"paymentAccountIdentifier": "cash",
"paymentAccountLocalizeInfos": {
"title": "Nakit"
},
"products": [
{
"id": 2957,
"title": "Cosmo",
"sku": null,
"previewImage": null,
"price": 150,
"quantity": 2
}
],
"isCompleted": false
},
{
"id": 232,
"storageId": 1,
"createdDate": "2025-07-21T01:54:32.065Z",
"statusIdentifier": "inProgress",
"formIdentifier": "orderForm",
"formData": [
{
"marker": "order_name",
"value": "Ivan",
"type": "string"
}
],
"attributeSetIdentifier": "order_form",
"totalSum": "300.00",
"currency": "",
"paymentAccountIdentifier": "cash",
"paymentAccountLocalizeInfos": {
"title": "Nakit"
},
"products": [
{
"id": 2957,
"title": "Cosmo",
"sku": null,
"previewImage": null,
"price": 150,
"quantity": 2
}
],
"isCompleted": false
},
{
"id": 231,
"storageId": 1,
"createdDate": "2025-07-21T01:49:51.641Z",
"statusIdentifier": "inProgress",
"formIdentifier": "orderForm",
"formData": [
{
"marker": "order_name",
"value": "Ivan",
"type": "string"
}
],
"attributeSetIdentifier": "order_form",
"totalSum": "300.00",
"currency": "",
"paymentAccountIdentifier": "cash",
"paymentAccountLocalizeInfos": {
"title": "Nakit"
},
"products": [
{
"id": 2957,
"title": "Cosmo",
"sku": null,
"previewImage": null,
"price": 150,
"quantity": 2
}
],
"isCompleted": false
},
"..."
],
"total": 40
}
Şema

items: IOrderByMarkerEntity[]
Sipariş depolama nesnelerinin dizisi.
örnek:

[
{
"id": 55,
"storageId": 1,
"createdDate": "2025-03-22T21:12:42.371Z",
"statusIdentifier": "inProgress",
"formIdentifier": "orderForm",
"formData": [
{
"marker": "order_name",
"value": "Ivan",
"type": "string"
}
],
"attributeSetIdentifier": "order_form",
"totalSum": "300.00",
"currency": "",
"paymentAccountIdentifier": "cash",
"paymentAccountLocalizeInfos": {
"title": "Nakit"
},
"products": [
{
"id": 2957,
"title": "Cosmo",
"sku": null,
"previewImage": null,
"price": 150,
"quantity": 2
}
],
"isCompleted": false
}
]

total: number
Bulunan kayıtların toplam sayısı.
örnek: 100