Przejdź do głównej zawartości

Zmień status wielu zamówień (jedno zadanie)

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

Jak zbiorcza zmiana statusu, ale wszystkie zmiany (do 1000 zamówień) trafiają do jednego zadania — operacja nadal jest asynchroniczna.

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
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"
}

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"
}