> ## 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.

# CreateSalesOrderPaymentCommandRequestInput

> Creates a new payment entry and assigns it to the specified sales order. Maps to tZahlung with kBestellung set. - Request



**Kind**: `input`

## Fields

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

The ID of the sales order to assign the payment to.

---

**`amount`**: `Decimal!` (required)

Payment amount (maps to fBetrag). Must be greater than 0. Stored with 2 decimal places; a third decimal is rounded.

---

**`date`**: `DateTime`

Date of the payment (maps to dDatum). Stored without a UTC offset; the offset in the request is not persisted.

---

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

The payment method to use (maps to kZahlungsart). Must reference a valid tZahlungsart entry.

---

**`transactionType`**: `TransactionType`

Type of the payment transaction (maps to nZahlungstyp). Defaults to Payment when omitted.

---

**`transactionId`**: `String`

External transaction identifier, e.g. from a payment provider (maps to cExternalTransactionId).

---

**`receiptNumber`**: `String`

Receipt or voucher number / Belegnummer (maps to cName).

---

**`isDownPayment`**: `Boolean`

Whether this payment is a down payment / Anzahlung (maps to nAnzahlung). Defaults to false when omitted.

---

**`comment`**: `String`

Free-text comment / Anmerkung (maps to cHinweis).

---

**`glAccount`**: `String`

G/L account override / Buchungskonto. Overrides the default from the payment method (maps to cSKRManuell).

---

**`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.

