Record payment
Record a full or part payment on an invoice with credit date, amount and title.
POST https://cotlet.dev/api/v1/szamlazz-hu/invoices/{invoice_number}/payments
Opens Pénzügyek / Befizetések for the invoice and adds one payment with the credit date, amount and title. A smaller amount is recorded as a part payment, and you can record several payments on one invoice. Returns the paid total and the amount still outstanding. Needs a paid package and permission to manage payment status. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number as shown in Outgoing invoices, from list_invoices. |
| date date required | date | Credit date (jóváírás dátuma). |
| amount number required | number | Amount in the invoice currency. |
| title string | string | Payment type or title (jogcím), for example the way it was paid. |
| comment string | string | Optional comment on the credit entry. |
Request
curl -X POST https://cotlet.dev/api/v1/szamlazz-hu/invoices/ABC-2026-00142/payments \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"2026-10-13","amount":50000,"title":"Bank transfer"}' result = client.call("szamlazz-hu", "record_payment", {"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"}) const result = await cotlet.call('szamlazz-hu', 'record_payment', {"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"}); cotlet call szamlazz-hu record_payment --data '{"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"}' Example response
{
"invoice_number": "ABC-2026-00142",
"recorded": {
"date": "2026-10-13",
"amount": 50000,
"title": "Bank transfer"
},
"paid_total": 50000,
"outstanding": 77000,
"currency": "HUF"
}