Lista zamówień konta, od najnowszych. Wąska strona: header/kontrahent/płatność/pozycje (key, sku, quantity, price/unitPrice), produkt bez gallery, externalDocuments: []. Bez positionKey, totalValue, vatRate, methodTitle, paidAmount. Pełny kontrakt jest na GET /orders/{id}. Zamiast skip użyj cursor.
| Query | Opis |
|---|---|
limit | Domyślnie 50, max 200. Powyżej → 400 limit_exceeded (bez cichego capu) |
cursor | Następna strona (wartość nextCursor) |
skip | Offset (wolniejszy niż cursor) |
scope | mine — tylko zamówienia utworzone przez tę integrację |
Odpowiedź 200
{
"items": [
{
"_id": "6a6da0cd0ceabb38f6cade11",
"id": "6a6da0cd0ceabb38f6cade11",
"header": {
"symbol": "ZK",
"externalNumber": "SHOP-1001",
"documentNumber": "5756",
"status": "new"
},
"positions": [],
"externalDocuments": []
}
],
"nextCursor": null
}
Przykład
curl -H "x-api-key: $API_KEY" \ "https://integration-dev.ecommigo.com/v1/orders?limit=10"