Skip to main content
POST
Create Payment Method

Authorizations

Authorization
string
header
required

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

Scopes

masterdata.write
oauth2-authorization-code

Write master data

masterdata.write
oauth2-client-credentials

Write master data

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.

Body

application/json

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

name
string
required

The name in the default language, at most 255 characters. It must be unique among the payment methods, ignoring case.

generalLedgerAccount
string

The G/L account, at most 32 characters. An empty text removes it.

isDebit
boolean

Whether the amount can be collected by direct debit.

canShipBeforePayment
boolean

Whether an order can be shipped before the payment arrived. A change applies to open orders with this payment method.

isDunningActive
boolean

Whether open invoices paid with this method are dunned.

cashDiscountValue
number<decimal>

The cash discount in percent, 0 to 100. 0 removes it.

cashDiscountDays
integer<int32>

How many days the cash discount applies, at least 0. 0 removes it.

paymentOption
string

The eBay payment option. An empty text removes it.

Response

Created.

Creates a payment method in the default language. It is active and not the default. Errors: errorCode is PAYMENT_METHOD_NAME_ALREADY_EXISTS (another payment method has this name, regardless of upper and lower case). - Response

paymentMethodId
string<uuid>
required

The ID of the new payment method.

Example:

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