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

# CreateIncomingInvoiceCashDiscountLineItemsCommandRequestInput

> Applies a cash discount granted by the supplier and replaces the cash discount line items the invoice has. The discount is split over the tax rates of the line items in proportion to their amounts, and one cash discount line item with a negative price is added per tax rate. Send exactly one of "percentage" and "amount". - Request



**Kind**: `input`

## Fields

**`incomingInvoiceId`**: `ID!` (required)

The ID of the incoming invoice.

---

**`percentage`**: `Decimal`

Discount in percent of the basis, greater than 0 and at most 100. Not together with "amount".

---

**`amount`**: `Decimal`

Discount as an amount in the invoice currency, net or gross according to "basis", greater than 0. Not together with "percentage". At most 12 digits before the decimal point; larger values are refused (400).

---

**`basis`**: `CashDiscountBasis!` (required)

Whether the percentage or amount refers to the net or the gross amount.

---

**`name`**: `String`

Description of the new line items. Defaults to "Cash discount" in the language of the request. At most 255 characters.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

