PUT
/
invoices
/
{id}
/
line-items
/
{itemID}
{
  "description": "Platform subscription",
  "quantity": "1",
  "unitPrice": "600"
}
{
  "id": "lrTlpKkF",
  "description": "Platform subscription",
  "billingPeriodStart": "2024-01-01T00:00:00Z",
  "billingPeriodEnd": "2024-01-31T23:59:59Z",
  "quantity": "1",
  "unitPrice": "500.00",
  "totalPrice": "500.00",
  "isEditable": false,
  "productId": "HyujZkkm"
}
Edits a line item in the invoice. If you have a metered product associated with that line item you’ll only be able to edit it once the billing period is over.

Params

id
string
The ID of the invoice associated with the line item..
lineItemId
string
The line item ID to update.
{
  "description": "Platform subscription",
  "quantity": "1",
  "unitPrice": "600"
}

Request

description
string
The description of the line item.
quantity
string
The quantity of the line item as a decimal string.
unitPrice
string
The unit price for the given line item as a decimal string.
{
  "id": "lrTlpKkF",
  "description": "Platform subscription",
  "billingPeriodStart": "2024-01-01T00:00:00Z",
  "billingPeriodEnd": "2024-01-31T23:59:59Z",
  "quantity": "1",
  "unitPrice": "500.00",
  "totalPrice": "500.00",
  "isEditable": false,
  "productId": "HyujZkkm"
}