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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The id of the invoice the line item belongs to.

string
required

The id of the line item to update.

Body Params
integer

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.

string
enum

New currency of the line item, as an ISO 4217 code. Must match the invoice currency.

Allowed:
date-time

New ISO 8601 timestamp marking the end of the billing period covered by the line item. Must remain after period_start.

date-time

New ISO 8601 timestamp marking the start of the billing period covered by the line item.

integer

New number of units billed by the line item. Must be greater than 0.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json