Pobierz statusy wielu zamówień po ID
POST
/api/v3/Orders/statuses/byIds
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/statuses/byIds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[1]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/statuses/byIds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ 1 ]'Odczyt – lista ID zamówień w treści żądania.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]Array<integer>
Array<integer>
Array<integer>
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
statusesOrders
Array<object>
object
statusId
integer format: int64
orderIds
Array<integer>
Examplegenerated
{ "statusesOrders": [ { "statusId": 1, "orderIds": [ 1 ] } ]}Bad Request
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

