# CreateInvoiceLineItemRequest

## Example Usage

```typescript
import { CreateInvoiceLineItemRequest } from "@flexprice/sdk/sdk/models";

let value: CreateInvoiceLineItemRequest = {
  amount: "830.09",
  quantity: "<value>",
};
```

## Fields

| Field                                                                                                                                                                 | Type                                                                                                                                                                  | Required                                                                                                                                                              | Description                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `adjustedEntitlementQuantity`                                                                                                                                         | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | adjusted_entitlement_quantity is the entitlement-covered units deducted from raw usage.                                                                               |
| `amount`                                                                                                                                                              | *string*                                                                                                                                                              | :heavy_check_mark:                                                                                                                                                    | amount is the monetary amount for this line item                                                                                                                      |
| `commitmentInfo`                                                                                                                                                      | [models.CommitmentInfo](../../sdk/models/commitment-info.md)                                                                                                          | :heavy_minus_sign:                                                                                                                                                    | N/A                                                                                                                                                                   |
| `displayName`                                                                                                                                                         | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | display_name is the optional human-readable name for this line item                                                                                                   |
| `entityId`                                                                                                                                                            | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | entity_id is the optional unique identifier of the entity associated with this line item                                                                              |
| `entityType`                                                                                                                                                          | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | entity_type is the optional type of the entity associated with this line item                                                                                         |
| `invoiceLevelDiscount`                                                                                                                                                | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | invoice_level_discount is the discount amount in invoice currency applied to all line items on the invoice.                                                           |
| `lineItemDiscount`                                                                                                                                                    | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | line_item_discount is the discount amount in invoice currency applied directly to this line item.                                                                     |
| `metadata`                                                                                                                                                            | Record<string, *string*>                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | N/A                                                                                                                                                                   |
| `meterDisplayName`                                                                                                                                                    | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | meter_display_name is the optional human-readable name of the meter                                                                                                   |
| `meterId`                                                                                                                                                             | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | meter_id is the optional unique identifier of the meter used for usage tracking                                                                                       |
| `periodEnd`                                                                                                                                                           | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                         | :heavy_minus_sign:                                                                                                                                                    | period_end is the optional end date of the period this line item covers                                                                                               |
| `periodStart`                                                                                                                                                         | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                         | :heavy_minus_sign:                                                                                                                                                    | period_start is the optional start date of the period this line item covers                                                                                           |
| `planDisplayName`                                                                                                                                                     | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | plan_display_name is the optional human-readable name of the plan                                                                                                     |
| `planId`                                                                                                                                                              | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | TODO: !REMOVE after migration<br/>plan_id is the optional unique identifier of the plan associated with this line item                                                |
| `prepaidCreditsApplied`                                                                                                                                               | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | prepaid_credits_applied is the amount in invoice currency reduced from this line item due to prepaid credits application.                                             |
| `priceId`                                                                                                                                                             | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | price_id is the optional unique identifier of the price associated with this line item                                                                                |
| `priceType`                                                                                                                                                           | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | price_type indicates the type of pricing (fixed, usage, tiered, etc.)                                                                                                 |
| `priceUnit`                                                                                                                                                           | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | price_unit is the optional 3-digit ISO code of the price unit associated with this line item                                                                          |
| `priceUnitAmount`                                                                                                                                                     | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | price_unit_amount is the optional amount converted to the price unit currency                                                                                         |
| `quantity`                                                                                                                                                            | *string*                                                                                                                                                              | :heavy_check_mark:                                                                                                                                                    | quantity is the quantity of units for this line item                                                                                                                  |
| `subscriptionId`                                                                                                                                                      | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | subscription_id overrides the invoice's subscription_id for this specific line item.<br/>Used for grouped invoicing where child line items belong to child subscriptions. |
| `subscriptionLineItemId`                                                                                                                                              | *string*                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                    | sub_line_item_id links this line item to the subscription_line_item that generated it.                                                                                |