Przejdź do głównej zawartości

Pobierz statusy wielu zamówień po ID

POST
/api/v3/Orders/statuses/byIds
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.

Array<integer>
Examplegenerated
[
1
]

Success

Typ treściapplication/json
object
statusesOrders
Array<object>
nullable
object
statusId
integer format: int64
orderIds
Array<integer>
nullable
Examplegenerated
{
"statusesOrders": [
{
"statusId": 1,
"orderIds": [
1
]
}
]
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error