POST /api/payment/bank-account-transactions/{id}/assign-with-disposition
Assigns invoices to a bank account transaction and, in the same request, handles the remaining or
overpaid amount according to a chosen disposition. This combines invoice assignment and remainder
booking into one atomic operation, eliminating the separate follow-up step.
Required permission: BankAccountTransactionWrite
Request
Path parameters
Request body
Disposition values
credit_wallet_and_payout returns a 422 with reason payout_not_available for every request.
The disposition is accepted by the schema but blocked at the service layer until the payout
subsystem books its outbound ledger leg. Use credit_wallet if you want to credit the remainder
to the customer’s balance without an immediate payout.
Response
HTTP 200: Invoices assigned and remainder disposed.
Examples
Assign one invoice and leave the remainder open
Response
Assign two invoices and credit the remainder to the customer’s balance
Response
The transaction is fully booked. EUR 10.00 was credited to the customer’s balance (Guthaben).
Assign with per-invoice amount caps (open disposition)
Use assignmentAmounts when you want to assign a specific partial amount per invoice rather than
the invoice’s full outstanding balance. This is only available with disposition: "open".
Errors
All errors follow the standard problem+json format.