> ## Documentation Index
> Fetch the complete documentation index at: https://alguna.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Invoice Line Item

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

<ParamField path="id" type="string">
  The ID of the invoice associated with the line item..
</ParamField>

<ParamField path="lineItemId" type="string">
  The line item ID to update.
</ParamField>

<RequestExample>
  ```json Request theme={null}
  {
    "description": "Platform subscription",
    "quantity": "1",
    "unitPrice": "600"
  }
  ```
</RequestExample>

## Request

<ParamField path="description" type="string">
  The description of the line item.
</ParamField>

<ParamField path="quantity" type="string">
  The quantity of the line item as a decimal string.
</ParamField>

<ParamField path="unitPrice" type="string">
  The unit price for the given line item as a decimal string.
</ParamField>

<ResponseExample>
  ```json Response theme={null}
  {
    "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"
  }
  ```
</ResponseExample>
