Przejdź do głównej zawartości

Zmień status wielu zamówień

PUT
/api/v4/Orders/OrdersStatusUpdate
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v4/Orders/OrdersStatusUpdate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "ids": [ 1 ], "statusId": 1, "skipAjs": true, "passThroughCommandData": { "additionalProperty": {} } }'

Ustawia jeden status dla wielu zamówień. Zmiany są wykonywane asynchronicznie, w zadaniach obejmujących po kilkaset zamówień. Odpowiednik setOrderStatuses w BaseLinker.

Typ treściapplication/json
object
ids
wymagane
Array<integer>
statusId
wymagane
integer format: int64
skipAjs
boolean
nullable
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
Examplegenerated
{
"ids": [
1
],
"statusId": 1,
"skipAjs": true,
"passThroughCommandData": {
"additionalProperty": {}
}
}

Success

Typ treściapplication/json
Array<object>
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
[
{
"status": "New"
}
]