Skip to main content
POST
Create a new discount

Authorizations

Authorization
string
header
required

Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.

Body

application/json
client_id
string
required

Client UUID

motivo_descuento_id
string
required

Motivo descuento UUID

tipo_descuento
enum<string>
required

Discount type

Available options:
porcentaje,
monto_clp,
monto_uf
valor
number
required

Discount value (10 = 10% or $10 or 10 UF)

periodo_inicio
string
required

Start period in YYYY-MM format

Example:

"2026-03"

duracion_meses
number
required

Duration in months (1 = one-time, N = recurring)

Required range: 1 <= x <= 36
subscription_id
string

Subscription UUID (null = entire invoice). Deprecated: use subscription_ids.

subscription_ids
string[]

Array of subscription UUIDs for multi-subscription discounts

motivo_otro
string

Custom reason text (only when motivo is "Otro")

Response

Discount created successfully