Skip to main content
inputCreateIncomingInvoiceCashDiscountLineItemsCommandRequestInput

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

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.