| name | reverse_payment |
| tier | 2 |
| task | T18 |
| description | This skill should be used when the task asks to "reverse a payment", "reverser betalingen", "reverser ein betaling", "annuler un paiement", "estornar o pagamento", "Zahlung stornieren", "reverse the payment", or involves reversing/cancelling a payment that was returned by the bank so that the invoice shows outstanding again. |
Reverse a Returned Payment
Exactly 2 API calls. The payment voucher already exists — find it and reverse it.
Call 1: Find Payment Voucher
On a fresh sandbox there are very few vouchers. The payment voucher's description always starts with "Betaling:". Find it directly — no need to search for customer or invoice first.
GET /ledger/voucher?dateFrom=2020-01-01&dateTo=2030-12-31&fields=id,description,date&count=50
Find the voucher whose description starts with "Betaling:". That's the payment to reverse.
Call 2: Reverse It
PUT /ledger/voucher/<voucher_id>/:reverse?date=2026-03-20
Total: 2 calls, 0 errors.
Gotchas
date query parameter is required on :reverse
- Payment voucher descriptions start with "Betaling:" — match on this
- No need to GET customer or invoice — the voucher is self-contained
- If multiple payment vouchers exist, match by customer name or invoice number in the description