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

write Confirm

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

Parameters: record_payment
NameTypeDescription
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
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"}'
Python
result = client.call("szamlazz-hu", "record_payment", {"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"})
Node.js
const result = await cotlet.call('szamlazz-hu', 'record_payment', {"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"});
CLI
cotlet call szamlazz-hu record_payment --data '{"invoice_number":"ABC-2026-00142","date":"2026-10-13","amount":50000,"title":"Bank transfer"}'

Example response

JSON

{
  "invoice_number": "ABC-2026-00142",
  "recorded": {
    "date": "2026-10-13",
    "amount": 50000,
    "title": "Bank transfer"
  },
  "paid_total": 50000,
  "outstanding": 77000,
  "currency": "HUF"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.