Skip to main content
POST
Creates a new payment entry and assigns it to the specified sales order.

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. Must be greater than 0. Stored with 2 decimal places; a third decimal is rounded.

paymentMethodId
string<uuid>
required

The payment method to use. Must reference an existing payment method.

Example:

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

date
string<date-time>

Date of the payment. Stored without a UTC offset; the offset in the request is not persisted.

transactionType
enum<integer>

Type of the payment transaction. Defaults to Payment when omitted.

Available options:
0,
1,
2,
3
transactionId
string

External transaction identifier, e.g. from a payment provider.

receiptNumber
string

Receipt or voucher number / Belegnummer.

isDownPayment
boolean

Whether this payment is a down payment / Anzahlung. Defaults to false when omitted.

comment
string

Free-text comment / Anmerkung.

glAccount
string

G/L account override / Buchungskonto. Overrides the default from the payment method.

Response

The payment was successfully created.

Creates a new payment entry and assigns it to the specified sales order. - Response

paymentId
string<uuid>
required

The ID of the newly created payment.

Example:

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