Skip to main content
POST
Creates a new payment entry and assigns it to the specified sales order. Maps to tZahlung with kBestellung set.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
string<uuid>
required

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

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Body

application/json

Request model for CreateSalesOrderPayment command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

amount
number<decimal>
required

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

paymentMethodId
string<uuid>
required

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

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

date
string<date-time>

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

transactionType
enum<integer>

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

Available options:
0,
1,
2,
3
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).

Response

The payment was successfully created.

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

paymentId
string<uuid>
required

The ID of the newly created payment.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"