Skip to main content
POST
Regenerate billing drafts by group for a client

Authorizations

Authorization
string
header
required

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

Path Parameters

clientId
string
required

Client UUID

Body

application/json
periodo
string
required

Billing period in YYYY-MM format

Example:

"2026-03"

billing_group_id
string

When provided, regenerate only the draft for this specific billing group

Example:

"uuid-of-billing-group"

receiver_rut
string

Override receiver RUT (e.g. after correcting a client RUT). When provided, uses this value instead of reading from the client table.

Example:

"76072681-8"

rounding_adjustment_amount
number

Optional non-negative CLP adjustment added to the draft total to match an external document (e.g. a purchase order).

Example:

1

Response

200

Grouped draft regeneration report