v1
latestOpenAPI 3.1.02026-07-228956435.8 KBInvoices
Update an invoice line item
Updates a line item of a draft invoice and recalculates the invoice total. All body fields are optional; send only the fields you want to change. The invoice must be in draft status and any new currency must match the invoice currency.
patch/invoices/{invoice_id}/lines/{id}
Path parameters
invoice_idstring required
The id of the invoice the line item belongs to.
idstring required
The id of the line item to update.
Request body
Example request
{
"amount": 80000,
"currency": "CLP",
"period_end": "2026-06-01T00:00:00Z",
"period_start": "2026-05-01T00:00:00Z",
"quantity": 2,
"name": "Premium Plan",
"description": "A premium plan"
}Response
The updated line item. The invoice total already reflects the new amount.
Example response
{
"id": "il_2bVdX0PqJs6RhNu9FmZlTo2EyKq",
"amount": 30000,
"currency": "CLP",
"description": "A premium plan",
"name": "Premium Plan",
"period_end": "2026-06-01T00:00:00Z",
"period_start": "2026-05-01T00:00:00Z",
"quantity": 1
}