Skip to main content
PUT
Update requests

Авторизации

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

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

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

Тело

type
enum<integer>
  • 0 - За период
  • 1 - Посуточно
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
plus_id
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
rent_start
string<date-time>
rent_end
string<date-time>
autorenewal
boolean
autowithdraw
boolean
counting_duration
string | null
price_inventory_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_service_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_delivery
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_referral
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tax_percent
string<decimal>
Pattern: ^-?\d{0,3}(?:\.\d{0,2})?$
tax_included
boolean
price_tax
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_combine
boolean
additional_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_auto
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_custom
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_step_duriation
string
penalty_disabled
boolean
extra
any
active
boolean
tenant
integer
client
integer | null
discount
integer | null
rental_point
integer | null
rental_point_return
integer | null
bag
string<uuid> | null
default_tarif_period
integer | null

Ответ

200 - application/json
id
integer
обязательно
read-only
created_at
string<date-time>
обязательно
read-only
updated_at
string<date-time>
обязательно
read-only
type
enum<integer>
  • 0 - За период
  • 1 - Посуточно
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
plus_id
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
rent_start
string<date-time>
rent_end
string<date-time>
autorenewal
boolean
autowithdraw
boolean
counting_duration
string | null
price_inventory_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_service_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_delivery
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_referral
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tax_percent
string<decimal>
Pattern: ^-?\d{0,3}(?:\.\d{0,2})?$
tax_included
boolean
price_tax
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_combine
boolean
additional_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_auto
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_custom
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_step_duriation
string
penalty_disabled
boolean
extra
any
active
boolean
tenant
integer
client
integer | null
discount
integer | null
rental_point
integer | null
rental_point_return
integer | null
bag
string<uuid> | null
default_tarif_period
integer | null