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.
v2 · Base URL https://api.fintoc.com/v2Autorizaciones
Parámetros de ruta
The id of the invoice the line item belongs to.
The id of the line item to update.
Cuerpo
New amount of the line item, in the smallest unit of currency (for example, 30000 for $30000 CLP, since CLP has no minor unit, or 3000 for $30.00 MXN). Must be greater than 0.
80000
New currency of the line item, as an ISO 4217 code. Must match the invoice currency.
CLP, MXN "CLP"
New ISO 8601 timestamp marking the end of the billing period covered by the line item. Must remain after period_start.
"2026-06-01T00:00:00Z"
New ISO 8601 timestamp marking the start of the billing period covered by the line item.
"2026-05-01T00:00:00Z"
New number of units billed by the line item. Must be greater than 0.
2
New display name for the line item shown on the invoice.
"Premium Plan"
New additional details about the line item shown on the invoice.
"A premium plan"
Respuesta
The updated line item. The invoice total already reflects the new amount.
Unique identifier of the line item.
"il_2bVdX0PqJs6RhNu9FmZlTo2EyKq"
Type of the object. Always line_item.
Amount of the line item, in the smallest unit of currency (for example, 30000 for $30000 CLP, since CLP has no minor unit, or 3000 for $30.00 MXN).
30000
Currency of the line item, as an ISO 4217 code. Always matches the invoice currency.
CLP, MXN "CLP"
Additional details about the line item shown on the invoice. null when the line item has no description.
"A premium plan"
Display name for the line item shown on the invoice.
"Premium Plan"
ISO 8601 datetime in UTC marking the end of the billing period covered by the line item. null for line items on invoices not tied to a subscription.
"2026-06-01T00:00:00Z"
ISO 8601 datetime in UTC marking the start of the billing period covered by the line item. null for line items on invoices not tied to a subscription.
"2026-05-01T00:00:00Z"
Number of units billed by the line item.
1