Create invoice

Issue a new invoice for a buyer with line items, payment method and dates.

POST https://cotlet.dev/api/v1/szamlazz-hu/invoices

write Confirm

Issues a numbered invoice, which Számlázz.hu then reports to NAV. Returns the invoice number and the net, VAT and gross totals. The buyer gets the invoice by email only if send_email is true; the default is false. An issued invoice cannot be deleted, only cancelled with cancel_invoice. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_invoice
NameTypeDescription
buyer_name string required string Buyer name as it should print on the invoice.
buyer_tax_number string string Buyer tax number, for business buyers.
buyer_address string required string Postal code, city and street.
buyer_email string string Email for the invoice copy; used only if send_email is true.
items array required array Line items: name, quantity, unit, net_unit_price and vat_rate, for example "27%".
payment_method string required string Payment method as the invoice form names it, for example 'Átutalás'.
delivery_date date required date Delivery (teljesítés) date.
due_date date required date Payment due date.
currency string string Currency code such as 'HUF'. Default: HUF.
comment string string Comment printed on the invoice.
send_email boolean boolean Email the invoice to the buyer. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/szamlazz-hu/invoices \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"buyer_name":"buyer name","buyer_address":"buyer address","items":"items","payment_method":"payment method","delivery_date":"2026-10-01","due_date":"2026-10-01"}'
Python
result = client.call("szamlazz-hu", "create_invoice", {"buyer_name":"buyer name","buyer_address":"buyer address","items":"items","payment_method":"payment method","delivery_date":"2026-10-01","due_date":"2026-10-01"})
Node.js
const result = await cotlet.call('szamlazz-hu', 'create_invoice', {"buyer_name":"buyer name","buyer_address":"buyer address","items":"items","payment_method":"payment method","delivery_date":"2026-10-01","due_date":"2026-10-01"});
CLI
cotlet call szamlazz-hu create_invoice --data '{"buyer_name":"buyer name","buyer_address":"buyer address","items":"items","payment_method":"payment method","delivery_date":"2026-10-01","due_date":"2026-10-01"}'

Example response

JSON

{
  "invoice_number": "ABC-2026-00148",
  "net": 120000,
  "vat": 32400,
  "gross": 152400,
  "currency": "HUF",
  "emailed": false
}

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.