v4

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-129176872.7 MB
v1

patch/v1/crm/discounts/{id}/

Path parameters

idinteger required

Request body

idinteger
namestring
discountinteger
discount_type0 | 1
  • 0 - Процент
  • 1 - Сумма
type0 | 1 | 2
  • 0 - Скидка
  • 1 - Промокод
  • 2 - Сумма
{"stackTrail":"components:schemas:PatchedDiscountUpdate:properties:extra","oasType":"schema","type":"unknown"}
activeboolean
start_atstring date-time nullable
end_atstring date-time nullable
usage_limitinteger

Response

idinteger required
namestring required
discountinteger
discount_type0 | 1
  • 0 - Процент
  • 1 - Сумма
type0 | 1 | 2
  • 0 - Скидка
  • 1 - Промокод
  • 2 - Сумма
{"stackTrail":"components:schemas:DiscountUpdate:properties:extra","oasType":"schema","type":"unknown"}
activeboolean
start_atstring date-time nullable
end_atstring date-time nullable
usage_limitinteger