Skip to main content
POST
Generar borradores mensuales async para todos los clientes con suscripción activa

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
periodo
string
required

Billing period in YYYY-MM format

Example:

"2026-02"

client_rounding_adjustments
object

Optional map of client UUID to non-negative CLP rounding adjustment. Used to make a draft total match an external document (e.g. a purchase order).

Example:

Response

202

Batch iniciado. Campos: batch_job_id, total.