Skip to main content
POST
Create a transaction for a customer

Authorizations

Authorization
string
header
required

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

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The customer identifier

Body

application/json
type
enum<string>
required

The type.

Available options:
sale_invoice,
sale,
collection,
purchase_invoice,
payment,
opening_balance
transaction_date
string<date-time>
required

Transaction date (YYYY-MM-DD).

amount
number | null

Monetary amount.

Required range: x >= 0.01
currency_id
integer | null

The currency ID.

exchange_rate
number | null

Currency exchange rate.

Required range: x >= 0
payment_method
enum<string>

The payment method.

Available options:
bank_account,
transfer_cash,
other,
clinic_credit_card,
credit_card,
private_insurance,
sgk
description
string | null

The description.

Maximum string length: 65535
invoice_number
string | null

Invoice number.

Maximum string length: 255
debit_credit_code
enum<string> | null

Debit or credit code.

Available options:
debit,
credit
account_id
integer | null

Account ID.

is_installment
boolean | null

Whether this is an installment transaction.

installment_count
integer | null

Number of installments.

Required range: 2 <= x <= 12
first_due_date
string<date-time> | null

First installment due date (YYYY-MM-DD).

installments
object[] | null

List of installments.

Minimum array length: 2

Response

success
string
required
data
CustomerTransactionResource · object
required