Pobierz listę ID zamówień
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/ids';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/ids \ --header 'Authorization: Bearer <token>'Zwraca tylko identyfikatory zamówień spełniających filtry – lżejsza alternatywa listy zamówień do synchronizacji przyrostowej.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”Id of the order in SellRocket
Id or ids of the order in SellRocket or in Source platform.
One can provide a single order id or multiple order ids separated by comma.
Examples:
- 204295
- 204295,101333
- 204295,1d719a60-ecee-11ee-926c-6ff59449f5d9
Id of the order status in SellRocket, to be used before all other filters (ignores operator)
Id of a connection definition used for shipments, if set to “ANY” it will return orders with all orders with connection definition set if set to “NONE” it will return orders with no shipments
Filters orders where the order’s shipment tracking number is fully contained within the provided value.
This works as a reverse-contains check: for example, if the tracking number is “12345”,
then a filter value of “XXX12345YYY” would match it.
Filters orders where the order’s shipment external carrier
tracking number is fully contained within the provided value.
This works as a reverse-contains check: for example, if the tracking number is “12345”,
then a filter value of “XXX12345YYY” would match it.
object
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
object
Examplegenerated
{ "list": [ { "id": 1 } ], "pageNumber": 1, "total": 1}Bad Request
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

