# The Credit Note Line Item object

### The Credit Note Line Item object

```json
{
  "id": "cnli_1NPtOx2eZvKYlo2CBH1NpUsU",
  "object": "credit_note_line_item",
  "amount": 749,
  "description": "My First Invoice Item (created for API docs)",
  "discount_amount": 0,
  "discount_amounts": [],
  "invoice_line_item": "il_1NPtOx2eZvKYlo2CAUuq0WVl",
  "livemode": false,
  "quantity": 1,
  "taxes": [],
  "tax_rates": [],
  "type": "invoice_line_item",
  "unit_amount": null,
  "unit_amount_decimal": null
}
```

## Attributes

- `id` (string)
  Unique identifier for the object.

- `object` (string)
  String representing the object’s type. Objects of the same type share the same value.

- `amount` (integer)
  The integer amount in the smallest currency unit representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.

- `description` (string, nullable)
  Description of the item being credited.

- `discount_amount` (integer)
  The integer amount in the smallest currency unit representing the discount being credited for this line item.

- [`discount_amounts`](https://docs.stripe.com/api/credit_notes/line_item.md?query=discount_amounts) (array of objects)
  The amount of discount calculated per discount for this line item

- `invoice_line_item` (string, nullable)
  ID of the invoice line item being credited

- `livemode` (boolean)
  If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.

- `metadata` (map, nullable)
  Set of [key-value pairs](https://docs.stripe.com/api/metadata.md) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

- [`pretax_credit_amounts`](https://docs.stripe.com/api/credit_notes/line_item.md?query=pretax_credit_amounts) (array of objects)
  The pretax credit amounts (ex: discount, credit grants, etc) for this line item.

- `quantity` (integer, nullable)
  The number of units of product being credited.

- [`tax_rates`](https://docs.stripe.com/api/credit_notes/line_item.md?query=tax_rates) (array of objects)
  The tax rates which apply to the line item.

- [`taxes`](https://docs.stripe.com/api/credit_notes/line_item.md?query=taxes) (array of objects, nullable)
  The tax information of the line item.

- `type` (enum)
  The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice.
Possible enum values:
  - `custom_line_item`
  - `invoice_line_item`

- `unit_amount` (integer, nullable)
  The cost of each unit of product being credited.

- `unit_amount_decimal` (decimal string, nullable)
  Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.
