Перейти к основному содержанию
POST
/
v1
/
crm
/
requests
/
conditions
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/requests/conditions/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "condition": 0,
  "value": "<string>",
  "split_client": 50,
  "split_company": 50
}
'
{
  "id": 123,
  "request": 123,
  "request_inventory": 123,
  "client": 123,
  "condition": 0,
  "value": "<string>",
  "split_client": 50,
  "split_company": 50
}

Тело

request
integer | null
request_inventory
integer | null
client
integer | null
condition
enum<integer>
  • 0 - PERCENT
  • 1 - FIXED
  • 2 - SPLIT
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
value
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
split_client
integer
Требуемый диапазон: 0 <= x <= 100
split_company
integer
Требуемый диапазон: 0 <= x <= 100

Ответ

201 - application/json
id
integer
обязательно
request
integer | null
request_inventory
integer | null
client
integer | null
condition
enum<integer>
  • 0 - PERCENT
  • 1 - FIXED
  • 2 - SPLIT
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
value
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
split_client
integer
Требуемый диапазон: 0 <= x <= 100
split_company
integer
Требуемый диапазон: 0 <= x <= 100