Przejdź do głównej zawartości

Zaktualizuj status pozycji zwrotu

PUT
/api/v3/returns/positions/statuses/{id}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/positions/statuses/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "color": "example", "warehouseId": 1 }'

Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

id
wymagane
integer format: int32

The status identifier.

The update request.

Typ treściapplication/json
object
name
string
nullable
color
string
nullable
warehouseId
integer format: int32
nullable
Examplegenerated
{
"name": "example",
"color": "example",
"warehouseId": 1
}

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