Skip to main content
PATCH
Patch discounts

Авторизации

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 доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры пути

id
integer
обязательно

Тело

request
integer | null
write-only
request_inventory
integer | null
type
enum<integer>
  • 0 - Из справочника
  • 1 - Разовая
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
discount
integer | null
discount_amount
string<decimal> | null
по умолчанию:0.00
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
scheduled
boolean
scheduled_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
start_at
string<date> | null
end_at
string<date> | null

Ответ

200 - application/json
id
integer
обязательно
read-only
created_by
integer | null
обязательно
read-only
comments
object[]
обязательно
read-only
request_inventory
integer | null
type
enum<integer>
  • 0 - Из справочника
  • 1 - Разовая
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
discount
integer | null
discount_amount
string<decimal> | null
по умолчанию:0.00
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
scheduled
boolean
scheduled_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
start_at
string<date> | null
end_at
string<date> | null