Przejdź do głównej zawartości

Zmień pozycję statusu zamówienia

PUT
/api/v3/Statuses/{statusId}/Position
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Statuses/1/Position \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "positionAction": "MoveToTop", "itemId": 1 }'

Ustala kolejność wyświetlania statusu. Używane głównie przez panel Sellrocket.

statusId
wymagane
integer format: int64
Typ treściapplication/json
object
positionAction
string
Dozwolone wartości: MoveToTop MoveOneUp MoveOneDown MoveToBottom PlaceAfter
itemId
integer format: int64
nullable

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

Forbidden

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