Przejdź do głównej zawartości

Utwórz status zamówienia

POST
/api/v3/Statuses
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Statuses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "shortName": "example", "color": "example", "description": "example", "isFavorite": true, "groupId": 1, "position": 1, "id": 1 }'

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

Typ treściapplication/json
object
name
wymagane
string
>= 1 characters
shortName
wymagane
string
>= 1 characters
color
wymagane
string
>= 1 characters
description
string
nullable
isFavorite
boolean
groupId
integer format: int64
nullable
position
integer format: int64
nullable
id
integer format: int64
nullable
Examplegenerated
{
"name": "example",
"shortName": "example",
"color": "example",
"description": "example",
"isFavorite": true,
"groupId": 1,
"position": 1,
"id": 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"
}