> ## 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.

# Create Invoice Line Item

Creates a line item for the given invoice.

## Params

<ParamField path="id" type="string">
  The ID of the invoice to create a line item for.
</ParamField>

## Request

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

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

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

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

## Response

<Snippet file="invoice-created-response.mdx" />
