# `Stripe.CreditNoteLineItem`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/credit_note_line_item.ex#L1)

The credit note line item object

# `t`

```elixir
@type t() :: %Stripe.CreditNoteLineItem{
  amount: integer(),
  description: binary() | nil,
  discount_amount: integer(),
  discount_amounts: term(),
  id: binary(),
  invoice_line_item: binary(),
  livemode: boolean(),
  object: binary(),
  pretax_credit_amounts: term(),
  quantity: integer() | nil,
  tax_rates: term(),
  taxes: term() | nil,
  type: binary(),
  unit_amount: integer() | nil,
  unit_amount_decimal: binary() | nil
}
```

The `credit_note_line_item` type.

  * `amount` The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
  * `description` Description of the item being credited.
  * `discount_amount` The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
  * `discount_amounts` The amount of discount calculated per discount for this line item
  * `id` Unique identifier for the object.
  * `invoice_line_item` ID of the invoice line item being credited
  * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `pretax_credit_amounts` The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
  * `quantity` The number of units of product being credited.
  * `tax_rates` The tax rates which apply to the line item.
  * `taxes` The tax information of the line item.
  * `type` 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.
  * `unit_amount` The cost of each unit of product being credited.
  * `unit_amount_decimal` Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.

# `list`

```elixir
@spec list(
  credit_note :: binary(),
  params :: %{
    optional(:ending_before) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:limit) =&gt; integer(),
    optional(:starting_after) =&gt; binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>When retrieving a credit note, you’ll get a <strong>lines</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>

#### Details

 * Method: `get`
 * Path: `/v1/credit_notes/{credit_note}/lines`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
