Skip to main content
POST
Create conditions

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Тело

parent
integer | null
request
integer | null
client
integer | null
condition
enum<integer>
  • 0 - Процент
  • 1 - Фиксированная сумма
  • 2 - Разделить
Доступные опции:
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
обязательно
read-only
parent
integer | null
request
integer | null
client
integer | null
condition
enum<integer>
  • 0 - Процент
  • 1 - Фиксированная сумма
  • 2 - Разделить
Доступные опции:
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