One POST call, and the invoice is at NAV.

JSON in, invoice out: the document issued, submitted to NAV Online Számla 3.0 (the Hungarian Tax Authority's e-invoicing system), returned as a PDF and as a thermal slip. For a webshop, a till, an internal system. This page is the full reference: all 58 endpoints, with a request and response example for each, in your own programming language, without signing in.

Base URLhttps://api.billfox.hu
Versionv1 · JSON · UTF-8
AuthenticationBearer API key · 600 requests / min / key
Machine-readable spec/v1/openapi.yaml
AI agent
A ready prompt for Claude, ChatGPT or Cursor, with the integration guide.
01

Overview

Every request goes over HTTPS, authenticated with a Bearer API key, with a JSON request and response. On issue (if you ask for it) the invoice is forwarded right away to the NAV Online Számla 3.0 system. Processing is asynchronous, you follow the state by querying the status or with a webhook.

REST endpoints with scopes
Bearer API keys from the app, with invoice:write invoice:read query:read scopes. Invoices, receipts and the non-tax documents (pro forma invoice, quote, order, delivery note, certificate of completion) on the same key.
Idempotent issuing
With the Idempotency-Key header retries are safe: the same request never issues two invoices, and you can repeat it calmly after a network error too.
Full document lifecycle
Cancellation, modifying invoice (the server computes the DIFFERENCE), technical annulment, advance and final invoice, aggregate invoice, chain query, declaring a document spoiled.
Receipts and the daily NAV reporting
Issuing receipts, thermal image, correcting document (VAT Act s. 173/B), and the state of the daily summarised NAV reporting of receipts can also be queried from the API.
Invoices stored at NAV
Your outbound and inbound invoices stored at NAV can be queried, and you can even cancel or modify an outbound invoice issued from ANOTHER system, under your own gap-free number.
Webhooks
NAV processing is asynchronous: an HMAC-signed webhook also brings the final state, you do not need to write polling.
Company, VIES and exchange rate lookup
Company lookup by tax number (name, address, VAT status), checking EU VAT numbers in VIES (with audit evidence), and the MNB mid-market rate.

The machine-readable spec is available without authentication too: GET /v1/openapi.yaml, GET /v1/openapi.json and GET /v1/postman.json: OpenAPI 3.1 and Postman v2.1, generated from the real route table. Any OpenAPI generator (for example openapi-generator) builds a client from the spec, and in the Postman collection fill in the baseUrl and apiKey variables. We deliberately do not ship an SDK: for a thin REST surface your own HTTP client is less risk than a separately versioned package. That is why the page has a ready example call for every endpoint in four languages.

02

Authentication

Every call expects an Authorization header with the API key. You create keys on the API keys page of the logged-in app, and we show the full key once, when it is created.

HTTP header
Authorization: Bearer bfx_live_••••••••a91Fx

The system sets the key prefix, and it shows the environment: bfx_live_ on the live system, bfx_test_ in the sandbox. A key is only valid in the environment where it was created, so the two cannot be mixed up by accident.

Scopes

ScopeTypeDescription
invoice:writewriteIssuing documents and changing their state: invoice, receipt, cancellation, modifying invoice, technical annulment, finalising and deleting drafts, sending emails, payment status, recording expenses, uploading attachments.
invoice:readreadRead your own documents: list, details, A4 PDF, thermal PNG, archive hashes, chain, advances, overdue invoices, overview metrics, the daily status of receipt reporting.
query:readqueryExternal queries and data stored at NAV: company lookup by tax number, VIES, MNB rate, outbound/inbound invoices stored at NAV, your own submissions, attachments, reading manual expenses.

A key can have several scopes. A missing scope gives a 403 INSUFFICIENT_SCOPE error. Management endpoints cannot be reached with an API key: managing keys, setting up the NAV technical user, the partner and product records, and setting the webhook address only work from a logged-in session, so a key can never create or revoke another key.

03

Common conventions

Request

The body is application/json (UTF-8), and the file upload endpoints expect a multipart/form-data request with a file field. Dates have the YYYY-MM-DD form, timestamps are ISO 8601 with a UTC offset. The currency is an ISO 4217 code. Field names are camelCase, and several fields have a shorter alias too (for example qty, unitPrice).

Error envelope

Every error comes in the same envelope, with a stable code you can branch on in code next to the HTTP status. The details field depends on the error code (for example the seconds left for the rate limit, the missing feature for a plan gate).

responseerror response
HTTP/1.1 403 Forbidden
Content-Type: application/json

{
  "error": {
    "code": "INSUFFICIENT_SCOPE",
    "message": "Az API kulcs nem rendelkezik jogosultsággal: invoice:write",
    "details": null
  }
}

Idempotency

When issuing an invoice with an API key (POST /v1/invoices) the Idempotency-Key header is required, without it the response is 400 IDEMPOTENCY_KEY_REQUIRED. A call repeated with the same key AND the same request body returns the earlier response, without issuing a new invoice. While the first request is still being processed (or broke off with an uncertain outcome), the repeat gets 409 IDEMPOTENCY_KEY_CONFLICT. In that case first check whether the invoice was created. Because of gap-free numbering, a blind retry would issue a real, second invoice.

Rate limit

600 requests/min per key and on top of that 1200 requests/min per company (all keys and sessions together). Above it 429 RATE_LIMITED, and the wait time in seconds is in the Retry-After header and also in the details.retryAfter field of the response.

Paging

The list endpoints take page (from 1) and pageSize (max. 100, default 25) parameters, and return the { data: [...], pagination: { page, pageSize, total } } shape. The order is stable (newest first), so paging neither duplicates nor skips rows.

Binary responses

The invoice image endpoints do not return JSON: application/pdf (A4), image/png (80 mm thermal paper) or application/zip (bulk download), with an inline Content-Disposition header, so their example calls save to a file instead of printing JSON. For an issued (DONE) invoice the PDF returns the frozen, stored bytes: we do not render again, so the file served is byte-identical to what we archived and hashed.

04

Issuing an invoice

A single call: the response already brings the NAV transaction ID and the links to the document images. NAV processing is asynchronous, so the new invoice comes back in PROCESSING state. The language picker applies to the WHOLE page: whatever you choose here, you see every further example in that language too.

POST /v1/invoices
curl -X POST 'https://api.billfox.hu/v1/invoices' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Idempotency-Key: 7c1f-44a2-9e08' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-04",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12, "unit": "fő",
      "unitPriceNet": 8500, "vatRate": 27 }
  ],
  "submitToNav": true
}'
response201 Created
{
  "id": "MK-2026-000413",
  "status": "PROCESSING",
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
             "groupMemberTaxNumber": null,
             "communityVatNumber": null, "thirdStateTaxId": null,
             "viesConsultationNumber": null, "address": null, "isPrivate": false },
  "issueDate": "2026-06-08",
  "fulfillmentDate": "2026-06-04",
  "dueDate": "2026-06-18",
  "createdAt": "2026-06-08T09:12:03+00:00",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "category": "NORMAL",
  "channel": "api",
  "totals": { "net": 102000, "vat": 27540, "gross": 129540,
              "netHuf": 102000, "vatHuf": 27540, "grossHuf": 129540 },
  "navTransactionId": "M0DS5JXAP2FU7L",
  "error": null,
  "errors": [],
  "warnings": [],
  "paymentStatus": { "paid": false, "paidAt": null, "paidVia": null,
                     "refundedAt": null, "dunningCount": 0, "dunningLastAt": null },
  "email": { "sentAt": null, "sentTo": null, "deferred": false,
             "includePayLink": true, "payLinkIncluded": false },
  "links": {
    "self":    "/v1/invoices/MK-2026-000413",
    "pdf":     "/v1/invoices/MK-2026-000413/pdf",
    "receipt": "/v1/invoices/MK-2026-000413/receipt"
  },
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12.0, "unit": "fő",
      "unitPriceNet": 8500.0, "vatRate": "27", "vatType": "PERCENTAGE",
      "lineNet": 102000, "lineVat": 27540, "lineGross": 129540 }
  ]
}

Request body fields

FieldTypeDescription
buyerobjectThe customer. Exactly ONE kind of identifier: taxNumber (Hungarian company) OR communityVatNumber (EU, for example DE811907980) OR thirdStateTaxId (outside the EU). For a private individual (isPrivate: true) none of them. For a company the name and address are required. For a VAT group customer (VAT Act s. 8/A) taxNumber is the GROUP ID number (VAT code 5, this goes on the invoice), and the member's own tax number (VAT code 4) can be given in the optional groupMemberTaxNumber field: it goes to NAV (customerTaxNumber/groupMemberTaxNumber), not to the invoice image.
itemsarrayThe invoice items, at least 1 and at most 1000. See their fields in the next section.
issueDatedate?Issue date of the invoice (YYYY-MM-DD). If omitted, today.
fulfillmentDatedate?Fulfilment date. If omitted, the issue date (on an aggregate invoice, the fulfilment of the last item).
dueDatedate?Payment due date. If omitted, we compute it from the company's default payment term.
paymentMethodstringTRANSFER (bank transfer, default) · CARD (card) · CASH (cash) · COD (cash on delivery).
currencystringISO 4217 code, default HUF. For a foreign currency exchangeRate is required, and for HUF the rate must be 1.
exchangeRatenumber?Exchange rate for 1 unit of the currency, in forints. Required on a foreign currency invoice.
submitToNavboolDefault: true, the invoice goes to NAV right away. With false a DRAFT is created (with a temporary VÁZLAT-… ID, without a number), which POST /v1/invoices/{id}/submit finalises.
categorystringNORMAL (default) · SIMPLIFIED (simplified) · ADVANCE (advance invoice). PROFORMA (pro forma invoice) is NOT valid here (400), because it is not an invoice: the Documents path issues it.
appearancestringpaper (default) or electronic (e-invoice: in that case the digital file is the legal original). It can also be issued to private individual customers.
seriesIdstring?ID of a specific numbering series, copy it in the Numbering settings ("API ID"), and the server advances the number, you never give it by hand. If omitted, the default series of the category. It can also be given in short form (the first 8 characters of the ID, as the app shows it), unique within the company. The full 32-character ID is also accepted.
siteIdstring?ID of the site: its address is frozen on the invoice at issue, next to the registered office. It can also be given in short form (8 characters), and the user copies it from the Sites list of Company and invoice settings ("API ID").
bankAccountIdstring?ID of the bank account. Copy it from Company and invoice settings → Company tab, Bank accounts list ("API ID"). Its account number/IBAN is frozen on the invoice at issue. Empty: the bank account matching the invoice currency (for example the EUR one for EUR), otherwise the default. It can also be given in short form (the first 8 characters of the ID, as the app shows it), unique within the company. The full 32-character ID is also accepted.
orderNumberstring?Manual order number (max. 50 characters), under the parties on the invoice image, sent to NAV as orderNumbers.
navReferencesobject?Standard NAV references at invoice level (conventionalInvoiceInfo): {"costCenters": ["KH-01"], "generalLedgerAccountNumbers": ["9111"], …}. 15 lists: orderNumbers, deliveryNotes, shippingDates, contractNumbers, supplierCompanyCodes, customerCompanyCodes, dealerCodes, costCenters, projectNumbers, generalLedgerAccountNumbers, glnNumbersSupplier, glnNumbersCustomer, materialNumbers, itemNumbers, ekaerIds. 1 to 100 characters per value, at most 50 per list. They go on the invoice image and to NAV, and the cancellation and modifying invoices inherit them.
additionalAdvancesstring[]?Only on POST /v1/invoices/{id}/final: the numbers of further advance invoices (at most 20) that the same final invoice deducts besides the advance in the URL. All of them must belong to the same buyer, be in the same currency, and none may be settled already. Each advance gets its own deduction line, and the item's advanceOf field shows which advance it belongs to. Ignored elsewhere.
orderSeriesIdstring?ID of the order number series (the short 8-character form works too). The number is used at issue, and a manual orderNumber takes precedence.
paymentReferenceobject?Bank transfer reference: {kind: number|order|custom|none, text?}: invoice number (default), order number (only if there is one), your own text (max. 140) or none. Frozen on the invoice at issue, not sent to NAV.
languagestringLanguage of the invoice image: hu (default) or en/de/fr/it, a bilingual image. Available on every plan.
originalFormatstringThe canonical (issued) format: a4 (default) or thermal (80 mm thermal paper).
discountobject?Document-level discount: { kind: "percent"|"amount", value, label?, scope: "all"|"selected" }. A fixed amount is GROSS forints. It appears on the invoice as a separate, labelled negative item (one line per VAT rate), not blended into the unit price.
extraClausesstring[]?At most 8 informational clauses, max. 500 characters each. They go at the bottom of the invoice image next to the MANDATORY clauses. Not sent to NAV.
metadataobject?Your own identifiers (e.g. order, CRM customer, product): at most 20 keys, a key is 1 to 40 characters (letters, digits, _ . : -), a value is text only, at most 500 characters. GET /v1/invoices/{id} and the webhook return it. It does not go on the invoice image or to NAV. A wrong shape is a 400, without a serial number. The storno and the modifier inherit the original's when you give none.
deliverEmail / deliverEmailTobool / stringAutomatically emails the download link to the customer as soon as NAV accepted the invoice (DONE), without an attachment. Without an address it goes to the partner record email.
deliveryModestring?How the buyer email is delivered, next to deliverEmail: link (default) | attachment (PDF attachment) | both. Missing → the company setting.
includePayLinkboolOn a bank transfer invoice, also offer card payment on the document page (default: false, a card invoice always has it). Only takes effect with a connected Stripe Connect account and an unpaid FORINT document.
markPaidbool?The invoice is created right away in "paid" state. If omitted, the payment method decides: CASH → paid, everything else (CARD too) → not paid.
paidOnstring?Payment date (YYYY-MM-DD), only with markPaid, for example the day the transfer for a pro forma invoice arrived. Defaults to the issue date, and a future date gives 400.

A rejection uses no number. We mirror NAV's hard errors BEFORE submission (name + address for a company customer, name/address/tax number for the issuer, the customer-side conditions of FAD and KBAET, the HUF = 1 exchange rate rule, bank account number format), and we only allocate the number after validation, so a rejected request leaves no gap in the gap-free numbering.

05

Item fields and VAT rates

Every element of the items[] array is an invoice item. The product code fields are optional, they are needed almost only for reverse charge (vatRate: FAD).

FieldTypeDescription
namestringName of the item. Required.
quantitynumberQuantity (> 0). Alias: qty.
unitstringUnit of measure (db, fő, óra…). Default: db.
unitPriceNetnumberNet unit price (≥ 0). Alias: unitPrice, price. Give exactly one of net and gross.
unitPriceGrossnumber?Gross unit price (≥ 0) instead of the net. The line is GROSS-FIRST (on invoices and documents alike): the gross is the rounded quantity × gross, the VAT is computed from above (× rate/(1+rate)), the net is the difference, so a HUF 2,500 price gives a HUF 2,500 document, and the response unitPriceNet is the back-calculated, informational net unit price. For a 0% or designated rate gross = net. It cannot be given TOGETHER with unitPriceNet (400 VALIDATION_ERROR).
vatRatestringVAT rate or designation (see below). Default: 27.
productCodeCategorystring?Product code type: VTSZ, SZJ, TESZOR, KN, OWN. Default: VTSZ if there is a value.
productCodeValuestring?The product code (for example "7204 10 00"). Mainly needed for reverse charge (FAD).
deliveryDatedate?The ITEM's fulfilment date. Only allowed on an aggregate invoice (isAggregate: true), and there it is REQUIRED on EVERY item.
exchangeRatenumber?The ITEM's exchange rate for its own fulfilment date (NAV lineExchangeRate). Only allowed on a foreign currency aggregate invoice, and if missing, the invoice's exchangeRate. The HUF amounts then come from the items, and the invoice rate is the derived quotient.
isDepositboolDeposit-type item (DRS). A pure label: it does not affect the amounts or the VAT.
isIntermediatedboolIntermediated service (Accounting Act s. 3 (4) 1.), triggers a mandatory clause. A pure label.
eraseCodesstring[]?Data erasure codes (Government Decree 726/2020), a list or line-separated text. One code per piece, at most the quantity, whole quantities only. They go on the invoice image and to NAV as one additionalLineData element per code, and the cancellation repeats them. Invoices only.
navReferencesobject?Standard NAV references on the line (conventionalLineInfo), the same 15 lists as at invoice level. For example a separate GL account and cost centre for accommodation and the minibar.
discountAppliesboolWhether the document-level discount applies to this item too (with scope: "selected").
notestring?Item note (max. 500 characters), under the item on the invoice image, not sent to NAV, cancellation/modifying invoices inherit it.

vatRate: the possible values

In NAV's data model the VAT data is a choice: an item has either a percentage or a designation, never both. That is why one field carries both here too.

ValueMeaning
27 · 18 · 5 · 0Percentage VAT rates. Can be given as a percentage (27), a fraction (0.27) and as text.
AAMSubjective VAT exemption (VAT Act Chapter XIII).
TAMExempt activity (VAT Act s. 85–86).
FADDomestic reverse charge (VAT Act s. 142): the customer needs a HUNGARIAN tax number.
KBAETIntra-Community exempt supply of goods (VAT Act s. 89), requires an EU VAT number.
EUFAD37EU supply of services, reverse charge (VAT Act s. 37 (1)), requires an EU VAT number. On the invoice image the "37. §" designation + the mandatory clause.
ATKA transaction outside the SUBJECT-MATTER scope of the VAT Act (s. 2–3). Not to be confused with a transaction performed abroad, which is outside the TERRITORIAL scope (HO / EUE / EUFADE).
EAMExport of goods outside the Community (VAT Act s. 98–109), exempt. This is an EXEMPTION, not a 0% rate.
NAMOther exemption related to international transactions (VAT Act s. 110–118).
KBAUKIntra-Community exempt supply of a new means of transport (VAT Act s. 89 (2)): the customer can also be a NON-taxable person, so it does not require an EU VAT number.
EUFADEA reverse-charged transaction performed in another member state that does NOT fall under s. 37 (for example a service connected to property there).
EUEA transaction performed in another member state that is NOT reverse charged (for example OSS distance selling): the seller pays the VAT in the customer's country.
HOA transaction performed in a third country, outside the TERRITORIAL scope of the VAT Act.
NO_VAT_CHARGENo VAT charged (VAT Act s. 17): contribution in kind, legal succession, transfer of a business. Net = gross.
TRAVEL_AGENCY · SECOND_HAND · ARTWORK · ANTIQUESMargin scheme (VAT Act Chapter XV): travel agency · second-hand goods · works of art · collectors' items and antiques. There is no VAT passed on in the item (net = gross), and the invoice image generates the mandatory clause from the key, not from the item name.

The invoice image generates the mandatory clause for the designation by itself, you do not need to write it into the item name. The image and the NAV reporting work from the same field, so they cannot differ.

06

Flags and extras

All optional, and they belong to the POST /v1/invoices request body. What they have in common is that they control a NAV flag and/or a mandatory clause on the invoice image. The scope shows whether the field applies to the INVOICE, to an ITEM or to the issuer's profile.

FieldScopeMeaning
isAggregate: true
invoice level
VAT Act s. 164
Aggregate invoice. Several fulfilments for one customer over a period on a single invoice. deliveryDate is required on EVERY item, if it is missing the request is rejected, without using a number. On a foreign currency aggregate invoice the items get their own rate (items[].exchangeRate, for their fulfilment date). An aggregate invoice cannot be simplified (category: SIMPLIFIED → rejected). From delivery notes: sourceDocuments lists the delivery note numbers (GET /v1/documents/delivery-notes/open), at issue the delivery notes are closed onto the invoice. deliveryPeriodStart/End may be omitted. If you give them, the item dates must fall within them.
isPeriodical: true
invoice level
VAT Act s. 58
Periodic settlement. If the parties agreed on settlement or payment by period (rent, subscription, flat fee). deliveryPeriodStart/End carries the period, but it may be omitted. You can only give a header period together with this or with isAggregate, because on its own NAV objects to it.
isSelfBilling: true
invoice level
VAT Act s. 169 l
Self-billing. The customer issues the invoice in the seller's name, based on a prior agreement. The issuer is still the seller, and the mandatory "Önszámlázás" (self-billing) clause is added automatically.
isDeposit: true
item level
Deposit. Line for a returnable bottle/crate. A pure label: it does not change the amounts or the VAT.
isIntermediated: true
item level
Accounting Act s. 3 (4) 1.
Intermediated service. Someone else provided the service and you invoice it on unchanged (passed-on utilities, subcontractor fee). Triggers a mandatory clause, does not affect the amounts.
extraClauses: ["…"]
invoice level
Informational clauses. Max. 8 lines, 500 characters each, NEXT TO the mandatory clauses (for example environmental product fee, warranty terms). Not sent to NAV, they only appear on the invoice image.
discount
invoice level
Invoice discount. A percentage or fixed GROSS forint discount on the whole invoice or on the discountApplies: true items. It goes on the invoice as a separate, labelled negative item (one line per VAT rate), not hidden in the unit price.
cashAccounting · smallBusiness
frozen from the profile
VAT Act s. 169 h
Cash accounting · small taxpayer. These two are NOT per-invoice data but the issuer's tax status: you switch them on in the account settings, and they are frozen on the invoice at issue. The API does NOT accept them in the request body, but you get them back in the response (only if true).
07

Endpoint reference

The full surface callable with a Bearer API key: 58 endpoints in four groups, each with a ready example call in the selected language, and an example response where the shape of the response is information in itself. The blue label is the scope the call needs. This is the WHOLE programming interface: what is not listed here cannot be called with an API key.

Invoices

Callable with a Bearer API key · 30 endpoints
POST/v1/invoicesinvoice:write201 Created
Issue an invoice and (with submitToNav: true) submit it to NAV in the background: the response comes at once, 202 with status QUEUED and the final number. With ?wait=N (at most 10 s) the server waits that long for NAV's decision. With an API key the Idempotency-Key header is REQUIRED (without it 400 IDEMPOTENCY_KEY_REQUIRED). The status field of the response can also be QUEUED or PROCESSING: the invoice is issued then, do not send it again. Idempotent: a call repeated with the same Idempotency-Key header and request body returns the earlier response and does not issue a new invoice. With submitToNav: false a DRAFT is created, without a number. Trial issue: POST /v1/invoices?dryRun=true with the same body: every gate of issuing runs, but no number or quota is used, nothing goes to NAV and nothing is left behind (200 OK, ok, errors, warnings, invoice without an invoice number).
POST /v1/invoices
curl -X POST 'https://api.billfox.hu/v1/invoices' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Idempotency-Key: 7c1f-44a2-9e08' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-04",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12, "unit": "fő",
      "unitPriceNet": 8500, "vatRate": 27 }
  ],
  "submitToNav": true
}'
response201 Created
{
  "id": "MK-2026-000413",
  "status": "PROCESSING",
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
             "groupMemberTaxNumber": null,
             "communityVatNumber": null, "thirdStateTaxId": null,
             "viesConsultationNumber": null, "address": null, "isPrivate": false },
  "issueDate": "2026-06-08",
  "fulfillmentDate": "2026-06-04",
  "dueDate": "2026-06-18",
  "createdAt": "2026-06-08T09:12:03+00:00",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "category": "NORMAL",
  "channel": "api",
  "totals": { "net": 102000, "vat": 27540, "gross": 129540,
              "netHuf": 102000, "vatHuf": 27540, "grossHuf": 129540 },
  "navTransactionId": "M0DS5JXAP2FU7L",
  "error": null,
  "errors": [],
  "warnings": [],
  "paymentStatus": { "paid": false, "paidAt": null, "paidVia": null,
                     "refundedAt": null, "dunningCount": 0, "dunningLastAt": null },
  "email": { "sentAt": null, "sentTo": null, "deferred": false,
             "includePayLink": true, "payLinkIncluded": false },
  "links": {
    "self":    "/v1/invoices/MK-2026-000413",
    "pdf":     "/v1/invoices/MK-2026-000413/pdf",
    "receipt": "/v1/invoices/MK-2026-000413/receipt"
  },
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12.0, "unit": "fő",
      "unitPriceNet": 8500.0, "vatRate": "27", "vatType": "PERCENTAGE",
      "lineNet": 102000, "lineVat": 27540, "lineGross": 129540 }
  ]
}
POST/v1/invoices/{id}/submitinvoice:write200 OK
Finalise a saved draft and submit it: this is WHEN the document gets its final, gap-free number. Empty request body. {id} is the draft's temporary VÁZLAT-… ID.
POST /v1/invoices/{id}/submit
curl -X POST 'https://api.billfox.hu/v1/invoices/VÁZLAT-8f3c1a2b/submit' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/invoicesinvoice:read200 OK
List of invoices, newest first. Filters: status, channel, q (invoice number and customer name), tag. Paging: page (from 1) and pageSize (max. 100, default 25).
GET /v1/invoices
curl -X GET 'https://api.billfox.hu/v1/invoices?status=done&q=Kov&page=1&pageSize=25' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "data": [
    {
      "id": "MK-2026-000413", "status": "DONE",
      "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
                 "address": null, "isPrivate": false },
      "issueDate": "2026-06-08", "fulfillmentDate": "2026-06-04",
      "dueDate": "2026-06-18", "createdAt": "2026-06-08T09:12:03+00:00",
      "paymentMethod": "TRANSFER", "currency": "HUF", "exchangeRate": 1.0,
      "category": "NORMAL", "channel": "api",
      "totals": { "net": 102000, "vat": 27540, "gross": 129540 },
      "navTransactionId": "M0DS5JXAP2FU7L", "error": null, "errors": [],
      "links": { "self": "…", "pdf": "…", "receipt": "…" }
    }
  ],
  "pagination": { "page": 1, "pageSize": 25, "total": 134 }
}
GET/v1/invoices/{id}invoice:read200 OK
The full data of one invoice with its items. {id} is always the NUMBER (for example MK-2026-000413), not an internal ID. The effectiveItems field gives the current line state of the CHAIN (the root + the accepted modifying invoices rolled up), effectiveHeader the current customer name, address, fulfilment date, due date and payment method. Measure against these before modifying.
GET /v1/invoices/{id}
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "id": "MK-2026-000413",
  "status": "PROCESSING",
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
             "groupMemberTaxNumber": null,
             "communityVatNumber": null, "thirdStateTaxId": null,
             "viesConsultationNumber": null, "address": null, "isPrivate": false },
  "issueDate": "2026-06-08",
  "fulfillmentDate": "2026-06-04",
  "dueDate": "2026-06-18",
  "createdAt": "2026-06-08T09:12:03+00:00",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "category": "NORMAL",
  "channel": "api",
  "totals": { "net": 102000, "vat": 27540, "gross": 129540,
              "netHuf": 102000, "vatHuf": 27540, "grossHuf": 129540 },
  "navTransactionId": "M0DS5JXAP2FU7L",
  "error": null,
  "errors": [],
  "warnings": [],
  "paymentStatus": { "paid": false, "paidAt": null, "paidVia": null,
                     "refundedAt": null, "dunningCount": 0, "dunningLastAt": null },
  "email": { "sentAt": null, "sentTo": null, "deferred": false,
             "includePayLink": true, "payLinkIncluded": false },
  "links": {
    "self":    "/v1/invoices/MK-2026-000413",
    "pdf":     "/v1/invoices/MK-2026-000413/pdf",
    "receipt": "/v1/invoices/MK-2026-000413/receipt"
  },
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12.0, "unit": "fő",
      "unitPriceNet": 8500.0, "vatRate": "27", "vatType": "PERCENTAGE",
      "lineNet": 102000, "lineVat": 27540, "lineGross": 129540 }
  ]
}
GET/v1/invoices/{id}/pdfinvoice:read200 OK · application/pdf
A4 invoice image. Binary response. For a submitted (DONE) invoice it returns the FROZEN, stored bytes, it does not render again.
GET /v1/invoices/{id}/pdf
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/pdf' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output szamla.pdf
GET/v1/invoices/{id}/nav-xmlinvoice:read200 OK · application/xml
The invoiceData XML actually submitted to NAV, bit for bit from the bytes archived at submission. 404 if the invoice has not been submitted yet (draft) or was made before the archive was introduced (2026-09-21).
GET /v1/invoices/{id}/nav-xml
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/nav-xml' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output szamla.xml
GET/v1/invoices/{id}/receiptinvoice:read200 OK · image/png
80 mm thermal invoice image as PNG. width_mm and dpi override the company default.
GET /v1/invoices/{id}/receipt
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/receipt?width_mm=80&dpi=203' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output blokk.png
POST/v1/invoices/{id}/send-emailinvoice:write200 OK
Sends the invoice to the buyer: download link, PDF attachment or both (deliveryMode: link | attachment | both, by default the company setting). Without an address it goes to the email saved for the buyer. DONE invoices only. A second send returns 409 unless resend: true.
POST /v1/invoices/{id}/send-email
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/send-email' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "to": "vevo@example.hu",
  "payLink": true,
  "resend": false,
  "deliveryMode": "both"
}'
POST/v1/invoice-items/parseinvoice:write200 OK
Invoice items from a table (xlsx or CSV, multipart `file`): returns the items and the per-row errors, writes nothing. Put the result into the invoice's `items` field.
POST /v1/invoice-items/parse
curl -X POST 'https://api.billfox.hu/v1/invoice-items/parse' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/invoices/{id}/attachmentsinvoice:read200 OK
The invoice's own attachments (metadata) and the limits: 10 MB per file, at most 5, 20 MB in total.
GET /v1/invoices/{id}/attachments
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/attachments' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/invoices/{id}/attachmentsinvoice:write201 Created
Attach a file to the issued invoice: a file in the multipart `file` field (PDF, PNG, JPEG, Excel, Word, CSV, the type is decided by the content), or JSON `certificate` with the PDF of your own certificate of completion. The buyer downloads it on the document page, and with PDF attachment delivery it also goes into the email.
POST /v1/invoices/{id}/attachments
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/attachments' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{ "certificate": "TIG-2026-000012" }'
GET/v1/invoices/{id}/attachments/{attachmentId}invoice:read200 OK
Download one attachment.
GET /v1/invoices/{id}/attachments/{attachmentId}
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/attachments/{attachmentId}' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
DELETE/v1/invoices/{id}/attachments/{attachmentId}invoice:write200 OK
Delete an attachment, the invoice itself is not affected.
DELETE /v1/invoices/{id}/attachments/{attachmentId}
curl -X DELETE 'https://api.billfox.hu/v1/invoices/MK-2026-000413/attachments/{attachmentId}' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/invoices/{id}/archiveinvoice:read200 OK
Metadata of the archived documents stored for the invoice: SHA3-512 hash, size in bytes and the 8-year retention date (1/2018 ITM decree).
GET /v1/invoices/{id}/archive
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/archive' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "invoice": "MK-2026-000413",
  "documents": [
    {
      "docType": "PDF",
      "algorithm": "SHA3-512",
      "hash": "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08…",
      "byteSize": 48213,
      "retentionUntil": "2035-12-31",
      "storageRef": null,
      "archivedAt": "2026-06-08T09:13:01+00:00"
    }
  ]
}
POST/v1/invoices/{id}/resubmitinvoice:write200 OK
Resubmit a failed (ABORTED) invoice to NAV, or report again a technically annulled (ANNULLED, approved by NAV) invoice under the same number. Empty request body. The response is the updated invoice, and for a pending annulment 409.
POST /v1/invoices/{id}/resubmit
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/resubmit' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/invoices/{id}/refresh-statusinvoice:write200 OK
Query NAV's processing state and apply it to the invoice (RECEIVED → PROCESSING → DONE / ABORTED). An alternative to the webhook if you do not want to run a receiving endpoint.
POST /v1/invoices/{id}/refresh-status
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/refresh-status' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "id": "MK-2026-000413",
  "status": "PROCESSING",
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
             "groupMemberTaxNumber": null,
             "communityVatNumber": null, "thirdStateTaxId": null,
             "viesConsultationNumber": null, "address": null, "isPrivate": false },
  "issueDate": "2026-06-08",
  "fulfillmentDate": "2026-06-04",
  "dueDate": "2026-06-18",
  "createdAt": "2026-06-08T09:12:03+00:00",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "category": "NORMAL",
  "channel": "api",
  "totals": { "net": 102000, "vat": 27540, "gross": 129540,
              "netHuf": 102000, "vatHuf": 27540, "grossHuf": 129540 },
  "navTransactionId": "M0DS5JXAP2FU7L",
  "error": null,
  "errors": [],
  "warnings": [],
  "paymentStatus": { "paid": false, "paidAt": null, "paidVia": null,
                     "refundedAt": null, "dunningCount": 0, "dunningLastAt": null },
  "email": { "sentAt": null, "sentTo": null, "deferred": false,
             "includePayLink": true, "payLinkIncluded": false },
  "links": {
    "self":    "/v1/invoices/MK-2026-000413",
    "pdf":     "/v1/invoices/MK-2026-000413/pdf",
    "receipt": "/v1/invoices/MK-2026-000413/receipt"
  },
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12.0, "unit": "fő",
      "unitPriceNet": 8500.0, "vatRate": "27", "vatType": "PERCENTAGE",
      "lineNet": 102000, "lineVat": 27540, "lineGross": 129540 }
  ]
}
POST/v1/invoices/{id}/stornoinvoice:write201 Created
Issue a cancellation (storno) invoice. Empty request body. Closes the chain, and the response contains both the original and the cancellation. There is NEVER a plan gate on it: the cancellation is a legal obligation.
POST /v1/invoices/{id}/storno
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/storno' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response201 Created
{
  "original": {
      "id": "MK-2026-000413", "status": "DONE",
      "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
                 "address": null, "isPrivate": false },
      "issueDate": "2026-06-08", "fulfillmentDate": "2026-06-04",
      "dueDate": "2026-06-18", "createdAt": "2026-06-08T09:12:03+00:00",
      "paymentMethod": "TRANSFER", "currency": "HUF", "exchangeRate": 1.0,
      "category": "NORMAL", "channel": "api",
      "totals": { "net": 102000, "vat": 27540, "gross": 129540 },
      "navTransactionId": "M0DS5JXAP2FU7L", "error": null, "errors": [],
      "links": { "self": "…", "pdf": "…", "receipt": "…" }
    },
  "storno": {
    "id": "MK-2026-000414", "status": "PROCESSING", "category": "NORMAL",
    "stornoOf": { "number": "MK-2026-000413" },
    "totals": { "net": -102000, "vat": -27540, "gross": -129540 },
    "…": "a teljes sztornó bizonylat, items-szel (negált sorok)"
  }
}
POST/v1/invoices/{id}/modifyinvoice:write201 Created
Modifying invoice. The request body is the NEW, correct COMPLETE content, the server computes the DIFFERENCE from it: only the changed lines go on the issued modifying invoice (offsetting negative items for the removed/changed lines + the changed and new items). We do not issue an empty modifying invoice (400) and use no number for it. Besides the items, the customer's name and address, the fulfilment date, the due date and the payment method can also be corrected: send the items unchanged, and a clause on the invoice image states the change. The customer's identifier (tax number, EU or foreign tax ID, private individual flag) cannot change, that gives 400 without using a number: for a different customer you need a cancellation and a new invoice. The original stays DONE.
POST /v1/invoices/{id}/modify
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/modify' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-04",
  "items": [
    { "name": "Háromfogásos menü", "quantity": 10, "unit": "fő",
      "unitPriceNet": 8500, "vatRate": 27 }
  ],
  "submitToNav": true
}'
response201 Created
{
  "original": {
      "id": "MK-2026-000413", "status": "DONE",
      "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
                 "address": null, "isPrivate": false },
      "issueDate": "2026-06-08", "fulfillmentDate": "2026-06-04",
      "dueDate": "2026-06-18", "createdAt": "2026-06-08T09:12:03+00:00",
      "paymentMethod": "TRANSFER", "currency": "HUF", "exchangeRate": 1.0,
      "category": "NORMAL", "channel": "api",
      "totals": { "net": 102000, "vat": 27540, "gross": 129540 },
      "navTransactionId": "M0DS5JXAP2FU7L", "error": null, "errors": [],
      "links": { "self": "…", "pdf": "…", "receipt": "…" }
    },
  "modifier": {
    "id": "MK-2026-000415", "status": "PROCESSING", "category": "NORMAL",
    "modifies": { "number": "MK-2026-000413", "index": 1 },
    "…": "csak a KÜLÖNBÖZET: ellentételező + új tételek, delta-összegekkel"
  }
}
POST/v1/invoices/{id}/annulinvoice:write200 OK
Technical annulment: withdrawing the NAV DATA REPORT, NOT a cancellation (the invoice stays a legally valid document). code is NAV's closed enum: ERRATIC_DATA / ERRATIC_INVOICE_NUMBER / ERRATIC_INVOICE_ISSUE_DATE / ERRATIC_ELECTRONIC_HASH_VALUE. After submission it must be approved SEPARATELY on the NAV web interface.
POST /v1/invoices/{id}/annul
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/annul' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "code": "ERRATIC_DATA",
  "reason": "Hibás adat a NAV-adatszolgáltatásban."
}'
GET/v1/invoices/{id}/chaininvoice:read200 OK
The document's lifecycle chain as NAV sees it (original → modifying invoices → cancellation), plus the next modificationIndex checked against NAV's state.
GET /v1/invoices/{id}/chain
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/chain' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "invoice": "MK-2026-000413",
  "elements": [
    { "invoiceNumber": "MK-2026-000413", "invoiceOperation": "CREATE",
      "supplierTaxNumber": "25875025", "customerTaxNumber": "24896713",
      "insDate": "2026-06-04T10:00:00Z", "originalRequestVersion": "3.0" },
    { "invoiceNumber": "MK-2026-000415", "invoiceOperation": "MODIFY", "…": "…" }
  ],
  "modificationCount": 1,
  "nextModificationIndex": 2
}
POST/v1/invoices/{id}/spoilinvoice:write200 OK
Declare a document rejected by NAV (ABORTED) spoiled. The number is kept on record, the document has no effect and cannot be submitted again. Only from ABORTED state.
POST /v1/invoices/{id}/spoil
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/spoil' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
DELETE/v1/invoices/{id}invoice:write204 No Content
Delete a draft. Only for a document with a VÁZLAT-… ID. An issued invoice cannot be deleted (gap-free numbering, VAT Act s. 169).
DELETE /v1/invoices/{id}
curl -X DELETE 'https://api.billfox.hu/v1/invoices/VÁZLAT-8f3c1a2b' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/invoices/advances/openinvoice:read200 OK
Open advance invoices that do not have a final invoice yet. To prefill the final invoice, with items.
GET /v1/invoices/advances/open
curl -X GET 'https://api.billfox.hu/v1/invoices/advances/open' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "data": [
    {
      "id": "MK-2026-000413", "status": "DONE",
      "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
                 "address": null, "isPrivate": false },
      "issueDate": "2026-06-08", "fulfillmentDate": "2026-06-04",
      "dueDate": "2026-06-18", "createdAt": "2026-06-08T09:12:03+00:00",
      "paymentMethod": "TRANSFER", "currency": "HUF", "exchangeRate": 1.0,
      "category": "NORMAL", "channel": "api",
      "totals": { "net": 102000, "vat": 27540, "gross": 129540 },
      "navTransactionId": "M0DS5JXAP2FU7L", "error": null, "errors": [],
      "links": { "self": "…", "pdf": "…", "receipt": "…" }
    }
  ]
}
POST/v1/invoices/{id}/finalinvoice:write201 Created
Issue a final invoice for an advance invoice ({id} is the ADVANCE's number). The advance deduction goes on the final invoice automatically as a negative item. You neither send this line nor send it back. With an API key the Idempotency-Key header is REQUIRED here too (without it 400), a repeat returns the earlier response, and the concurrency limit is the same as for invoices (429 + Retry-After). Several advances (2026-11-19): the `additionalAdvances` list of the request body (at most 20 advance numbers) deducts further advances in the same final invoice. All of the same customer, in the same currency, and none already settled. A separate deduction line per advance and VAT rate, each referring to its own advance (NAV `advancePaymentData` per line, the item's `advanceOf` field in the response).
POST /v1/invoices/{id}/final
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/final' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Idempotency-Key: 7c1f-44a2-9e08' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-30",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "items": [
    { "name": "Rendezvényszervezés", "quantity": 1, "unit": "db",
      "unitPriceNet": 900000, "vatRate": 27 }
  ],
  "additionalAdvances": ["MK-2026-000414"],
  "submitToNav": true
}'
POST/v1/invoices/{id}/paidinvoice:write200 OK
Mark as paid. Idempotent. Payment reminders only follow unpaid invoices.
POST /v1/invoices/{id}/paid
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/paid' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{ "paid": true }'
POST/v1/invoices/paid-bulkinvoice:write200 OK
Set the payment status in bulk. An unknown invoice number or one that is not yours is skipped silently, and the response is the number actually changed.
POST /v1/invoices/paid-bulk
curl -X POST 'https://api.billfox.hu/v1/invoices/paid-bulk' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "numbers": ["MK-2026-000413", "MK-2026-000414"],
  "paid": true
}'
response200 OK
{
  "updated": 2,
  "paid": true
}
POST/v1/invoices/pdf-zipinvoice:read200 OK · application/zip
A4 PDFs of the given invoice numbers in a single ZIP (max. 200). Every file in the ZIP is "{számlaszám}.pdf".
POST /v1/invoices/pdf-zip
curl -X POST 'https://api.billfox.hu/v1/invoices/pdf-zip' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "numbers": ["MK-2026-000413", "MK-2026-000414"]
}' \
  --output szamlak.zip
POST/v1/invoices/email-bulkinvoice:write200 OK
Emails the given invoices to their customers in one operation (max. 200). An invoice that cannot be sent (not DONE, no address, already sent) is skipped, which is not an error: you get a result per invoice.
POST /v1/invoices/email-bulk
curl -X POST 'https://api.billfox.hu/v1/invoices/email-bulk' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "numbers": ["MK-2026-000413", "MK-2026-000414"]
}'
response200 OK
{
  "sent": 1,
  "skipped": 1,
  "results": [
    { "number": "MK-2026-000413", "status": "sent", "to": "vevo@example.com" },
    { "number": "MK-2026-000414", "status": "skipped",
      "reason": "Csak NAV által befogadott (DONE) számla küldhető el emailben." }
  ]
}
GET/v1/invoices/overdueinvoice:read200 OK
Overdue, unpaid invoices, oldest first, with days overdue and the number of reminders so far.
GET /v1/invoices/overdue
curl -X GET 'https://api.billfox.hu/v1/invoices/overdue' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "data": [
    {
      "id": "MK-2026-000389", "buyer": { "name": "Kovács Bt." },
      "currency": "HUF", "gross": 129540, "dueDate": "2026-05-18",
      "daysOverdue": 21, "dunningCount": 1,
      "dunningLastAt": "2026-05-25T08:00:00+00:00", "hasEmail": true
    }
  ]
}
POST/v1/invoices/{id}/dunning-reminderinvoice:write200 OK
Sends one payment reminder to the customer right away, bypassing the schedule. Empty request body. The customer needs an email address, otherwise 400. It only goes to an issued, unpaid invoice with a due date that is not paid in cash (not cancelled, not a correction, not refunded, otherwise 400). The per-company limit on manual customer emails and 3 reminders per invoice per day apply (429).
POST /v1/invoices/{id}/dunning-reminder
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/dunning-reminder' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'

Documents and receipts

Callable with a Bearer API key · 19 endpoints
POST/v1/documentsinvoice:write201 Created
Issue a document or a RECEIPT. For a receipt issued with an API key the Idempotency-Key header is REQUIRED (without it 400), for other kinds it is optional, and a repeat returns the earlier response. The ?kind=… query parameter gives the kind: QUOTE (quote) · ORDER (order) · DELIVERY (delivery note) · PROFORMA (pro forma invoice) · CERTIFICATE (certificate of completion) · RECEIPT (receipt, unlimited and free on every plan). For a quote, acceptAction says what happens when the customer accepts it on the link: proforma (a pro forma invoice goes to the customer), proforma_draft (a pro forma draft, not sent), invoice_draft (an invoice draft) or none. Empty means the company setting. The body is a subset of the invoice payload: buyer (omit it for a receipt, because a receipt has no customer), items, discount, issueDate, validUntil, paymentMethod, currency (+ exchangeRate), notes, language (hu by default, or en/de/fr/it: bilingual image and email, always Hungarian on a receipt), bankAccountId. With the draft: true field a draft is created, without a number and quota.
POST /v1/documents
curl -X POST 'https://api.billfox.hu/v1/documents?kind=RECEIPT' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "paymentMethod": "CARD",
  "items": [
    { "name": "Eszpresszó", "quantity": 2, "unit": "db",
      "unitPriceNet": 787.4, "vatRate": 27 }
  ]
}'
response201 Created
{
  "id": "NYG-2026-000101",
  "kind": "RECEIPT",
  "kindLabel": "Nyugta",
  "status": "issued",
  "buyer": { "name": null, "taxNumber": null, "communityVatNumber": null,
             "thirdStateTaxId": null, "address": null, "isPrivate": true },
  "issueDate": "2026-07-14",
  "validUntil": null,
  "createdAt": "2026-07-14T10:22:41+00:00",
  "paymentMethod": "CARD",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "totals": { "net": 1575, "vat": 425, "gross": 2000, "grossHuf": 2000 },
  "notes": null,
  "convertedInvoiceNumber": null,
  "correction": null,
  "appearance": "paper",
  "originalFormat": "thermal",
  "email": { "sentAt": null, "sentTo": null },
  "paymentStatus": { "paid": true, "paidAt": "2026-07-14T10:22:41+00:00",
                     "paidVia": "manual", "refundedAt": null },
  "items": [
    { "name": "Eszpresszó", "quantity": 2.0, "unit": "db", "unitPriceNet": 787.4,
      "vatRate": "27", "lineNet": 1575, "lineVat": 425, "lineGross": 2000 }
  ],
  "warnings": []
}
GET/v1/documentsinvoice:read200 OK
List of documents. ?kind=… narrows to one kind, without it, all of them. Paging: page (from 1) and pageSize (max. 200, default 25). WITHOUT page you get the whole set, which for a shop issuing receipts for years is a response of tens of thousands, so ask for paging in machine calls. A paged response also has a pagination object in the body (page, pageSize, total).
GET /v1/documents
curl -X GET 'https://api.billfox.hu/v1/documents?kind=RECEIPT&page=1&pageSize=25' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/documents/{number}invoice:read200 OK
Details of one document with its items.
GET /v1/documents/{number}
curl -X GET 'https://api.billfox.hu/v1/documents/NYG-2026-000101' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "id": "NYG-2026-000101",
  "kind": "RECEIPT",
  "kindLabel": "Nyugta",
  "status": "issued",
  "buyer": { "name": null, "taxNumber": null, "communityVatNumber": null,
             "thirdStateTaxId": null, "address": null, "isPrivate": true },
  "issueDate": "2026-07-14",
  "validUntil": null,
  "createdAt": "2026-07-14T10:22:41+00:00",
  "paymentMethod": "CARD",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "totals": { "net": 1575, "vat": 425, "gross": 2000, "grossHuf": 2000 },
  "notes": null,
  "convertedInvoiceNumber": null,
  "correction": null,
  "appearance": "paper",
  "originalFormat": "thermal",
  "email": { "sentAt": null, "sentTo": null },
  "paymentStatus": { "paid": true, "paidAt": "2026-07-14T10:22:41+00:00",
                     "paidVia": "manual", "refundedAt": null },
  "items": [
    { "name": "Eszpresszó", "quantity": 2.0, "unit": "db", "unitPriceNet": 787.4,
      "vatRate": "27", "lineNet": 1575, "lineVat": 425, "lineGross": 2000 }
  ],
  "warnings": []
}
PUT/v1/documents/{number}invoice:write200 OK
Edit a DRAFT (the body is the same as for POST). An issued document can NOT be edited: one number means one content, forever. The way to correct it is to void it + issue a new document.
PUT /v1/documents/{number}
curl -X PUT 'https://api.billfox.hu/v1/documents/VÁZLAT-8f3c1a2b' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "paymentMethod": "CARD",
  "items": [
    { "name": "Eszpresszó", "quantity": 2, "unit": "db",
      "unitPriceNet": 787.4, "vatRate": 27 }
  ]
}'
POST/v1/documents/{number}/issueinvoice:write200 OK
Issue a draft: this is when it gets a real number. For a receipt draft this is where the gap-free NYG- number is used, and the date is set to the day of issue.
POST /v1/documents/{number}/issue
curl -X POST 'https://api.billfox.hu/v1/documents/VÁZLAT-8f3c1a2b/issue' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "id": "NYG-2026-000101",
  "kind": "RECEIPT",
  "kindLabel": "Nyugta",
  "status": "issued",
  "buyer": { "name": null, "taxNumber": null, "communityVatNumber": null,
             "thirdStateTaxId": null, "address": null, "isPrivate": true },
  "issueDate": "2026-07-14",
  "validUntil": null,
  "createdAt": "2026-07-14T10:22:41+00:00",
  "paymentMethod": "CARD",
  "currency": "HUF",
  "exchangeRate": 1.0,
  "totals": { "net": 1575, "vat": 425, "gross": 2000, "grossHuf": 2000 },
  "notes": null,
  "convertedInvoiceNumber": null,
  "correction": null,
  "appearance": "paper",
  "originalFormat": "thermal",
  "email": { "sentAt": null, "sentTo": null },
  "paymentStatus": { "paid": true, "paidAt": "2026-07-14T10:22:41+00:00",
                     "paidVia": "manual", "refundedAt": null },
  "items": [
    { "name": "Eszpresszó", "quantity": 2.0, "unit": "db", "unitPriceNet": 787.4,
      "vatRate": "27", "lineNet": 1575, "lineVat": 425, "lineGross": 2000 }
  ],
  "warnings": []
}
GET/v1/documents/{number}/pdfinvoice:read200 OK · application/pdf
The document's A4 PDF. For an issued document, the frozen, byte-identical image.
GET /v1/documents/{number}/pdf
curl -X GET 'https://api.billfox.hu/v1/documents/NYG-2026-000101/pdf' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output bizonylat.pdf
GET/v1/documents/{number}/receiptinvoice:read200 OK · image/png
Thermal image as PNG, the primary format of a receipt. Optional width_mm and dpi.
GET /v1/documents/{number}/receipt
curl -X GET 'https://api.billfox.hu/v1/documents/NYG-2026-000101/receipt' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output nyugta.png
POST/v1/documents/{number}/voidinvoice:write200 OK
Void: "spoiled receipt" for a receipt, a VOIDED mark for other kinds. For a receipt the {"notDelivered": true} body is required: with it you state that the customer did not receive it. For other kinds an empty body. The number is kept on record. Spoiling a receipt is only available on the day of issue and only before sending it by email.
POST /v1/documents/{number}/void
curl -X POST 'https://api.billfox.hu/v1/documents/NYG-2026-000101/void' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/documents/{number}/correctinvoice:write201 Created
Receipt correcting / cancelling document (VAT Act s. 173/B). {number} is the number of the RECEIPT TO CORRECT, and the response is the new document, with its own gap-free NYH- number. reason is required ("the nature of the change"). With MODIFY, items is the CORRECT, COMPLETE new line state of the receipt, and only the difference goes on the document. If the original had a document-level discount, you MUST repeat it in the discount field, otherwise the endpoint rejects the request with 400. The status of the original receipt does NOT change.
POST /v1/documents/{number}/correct
curl -X POST 'https://api.billfox.hu/v1/documents/NYG-2026-000101/correct' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "mode": "MODIFY",
  "reason": "Téves mennyiség a nyugtán.",
  "items": [
    { "name": "Eszpresszó", "quantity": 1, "unit": "db",
      "unitPriceNet": 787.4, "vatRate": 27 }
  ]
}'
response201 Created
{
  "id": "NYH-2026-000004",
  "kind": "RECEIPT_CORRECTION",
  "kindLabel": "Nyugta-helyesbítő okirat",
  "status": "issued",
  "issueDate": "2026-07-16",
  "currency": "HUF",
  "totals": { "net": -787, "vat": -213, "gross": -1000, "grossHuf": -1000 },
  "correction": {
    "mode": "MODIFY",
    "correctsNumber": "NYG-2026-000101",
    "correctsIssueDate": "2026-07-14",
    "reason": "Téves mennyiség a nyugtán."
  },
  "items": [
    { "name": "Eszpresszó", "quantity": -1.0, "unit": "db", "unitPriceNet": 787.4,
      "vatRate": "27", "lineNet": -787, "lineVat": -213, "lineGross": -1000 }
  ]
}
DELETE/v1/documents/{number}invoice:write204 No Content
Delete a document that was never sent and has no money trail. A sent, paid, invoiced or voided document cannot be deleted, an issued receipt never. A draft can always be deleted.
DELETE /v1/documents/{number}
curl -X DELETE 'https://api.billfox.hu/v1/documents/VÁZLAT-8f3c1a2b' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/documents/{number}/send-emailinvoice:write200 OK
Sends the document by email: download link, PDF attachment or both (deliveryMode: link | attachment | both, by default the company setting; a quote always goes with a link). For receipts, receipt correction documents, pro forma invoices, delivery notes and quotes (the buyer can accept on the link). For a receipt, to is required (a receipt has no buyer). For the others it can be omitted, payLink asks for the payment link button on pro forma invoices only.
POST /v1/documents/{number}/send-email
curl -X POST 'https://api.billfox.hu/v1/documents/NYG-2026-000101/send-email' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "to": "vevo@example.hu",
  "resend": false,
  "deliveryMode": "attachment"
}'
GET/v1/documents/{number}/attachmentsinvoice:read200 OK
The document's own attachments (metadata) and the limits: 10 MB per file, at most 5, 20 MB in total.
GET /v1/documents/{number}/attachments
curl -X GET 'https://api.billfox.hu/v1/documents/SZL-2026-000044/attachments' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/documents/{number}/attachmentsinvoice:write201 Created
Attach a file to the issued document: a file in the multipart `file` field (PDF, PNG, JPEG, Excel, Word, CSV, the type is decided by the content), or JSON `certificate` with the PDF of your own certificate of completion. The buyer downloads it on the document page, and with PDF attachment delivery it also goes into the email.
POST /v1/documents/{number}/attachments
curl -X POST 'https://api.billfox.hu/v1/documents/SZL-2026-000044/attachments' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{ "certificate": "TIG-2026-000012" }'
GET/v1/documents/{number}/attachments/{attachmentId}invoice:read200 OK
Download one attachment.
GET /v1/documents/{number}/attachments/{attachmentId}
curl -X GET 'https://api.billfox.hu/v1/documents/SZL-2026-000044/attachments/{attachmentId}' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
DELETE/v1/documents/{number}/attachments/{attachmentId}invoice:write200 OK
Delete an attachment, the document itself is not affected.
DELETE /v1/documents/{number}/attachments/{attachmentId}
curl -X DELETE 'https://api.billfox.hu/v1/documents/SZL-2026-000044/attachments/{attachmentId}' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
GET/v1/documents/delivery-notes/openinvoice:read200 OK
Delivery notes that can still be invoiced, with items, by delivery date (deliveryDate, buyerKey). Query: q (number, company name, tax number). Link the invoice to them with the sourceDocuments field of POST /v1/invoices: one customer, the invoice's customer, one currency. At issue the delivery notes are closed onto the invoice.
GET /v1/documents/delivery-notes/open
curl -X GET 'https://api.billfox.hu/v1/documents/delivery-notes/open' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/documents/{number}/mark-convertedinvoice:write200 OK
Mark the document "Invoiced" with the number of the resulting invoice. The conversion itself happens on the normal POST /v1/invoices path, and this endpoint only records the link and the lock on the source document.
POST /v1/documents/{number}/mark-converted
curl -X POST 'https://api.billfox.hu/v1/documents/DB-2026-000017/mark-converted' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{ "invoiceNumber": "MK-2026-000418" }'
POST/v1/documents/pdf-zipinvoice:read200 OK · application/zip
PDFs of the given document numbers in a single ZIP (max. 200), any kind (receipt, pro forma invoice, quote, delivery note). For an issued document the FROZEN bytes are returned: bit for bit what the customer received. An unknown number is skipped silently, and if none is found → 400.
POST /v1/documents/pdf-zip
curl -X POST 'https://api.billfox.hu/v1/documents/pdf-zip' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "numbers": ["MK-2026-000413", "MK-2026-000414"]
}' \
  --output bizonylatok.zip
POST/v1/documents/email-bulkinvoice:write200 OK
⚠️ PRO FORMA INVOICES only. Emails the given pro forma invoices to their customers in one operation (max. 200). Receipts are skipped: a receipt has no named customer (VAT Act s. 173), so sending one always needs an explicit address. A document that cannot be sent (voided, already sent, no address) is skipped, which is not an error: you get a result per document.
POST /v1/documents/email-bulk
curl -X POST 'https://api.billfox.hu/v1/documents/email-bulk' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "numbers": ["MK-2026-000413", "MK-2026-000414"]
}'
response200 OK
{
  "sent": 1,
  "skipped": 1,
  "results": [
    { "number": "MK-2026-000413", "status": "sent", "to": "vevo@example.com" },
    { "number": "MK-2026-000414", "status": "skipped",
      "reason": "Csak NAV által befogadott (DONE) számla küldhető el emailben." }
  ]
}

Queries and NAV data

Callable with a Bearer API key · 20 endpoints
GET/v1/taxpayers/{taxNumber}query:read200 OK
Company data by tax number from the NAV register: name, address, validity, VAT status. If NAV finds no taxpayer: 404.
GET /v1/taxpayers/{taxNumber}
curl -X GET 'https://api.billfox.hu/v1/taxpayers/24896713-2-42' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "taxNumber": "24896713-2-42",
  "name": "Kovács Kereskedelmi Bt.",
  "address": "1051 Budapest, Bajcsy-Zsilinszky út 12.",
  "valid": true,
  "vatStatus": "NORMAL"
}
GET/v1/vies/{communityVatNumber}query:read200 OK
Check an EU VAT number in VIES (qualified check): validity + name and address depending on the member state. The returned consultationNumber is the audit evidence, and the invoice editor stores it on the invoice automatically. If the member state database is unavailable: 502 VIES_UNAVAILABLE.
GET /v1/vies/{communityVatNumber}
curl -X GET 'https://api.billfox.hu/v1/vies/DE811907980' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "countryCode": "DE",
  "vatNumber": "811907980",
  "fullVatNumber": "DE811907980",
  "valid": true,
  "name": "BAYERISCHE MOTOREN WERKE AG",
  "address": "PETUELRING 130, 80809 MUENCHEN",
  "consultationNumber": "WAPIAAAAY1234567",
  "requestDate": "2026-06-10"
}
GET/v1/fx/mnb-ratequery:read200 OK
MNB mid-market exchange rate for 1 unit (default EUR, HUF → 1). A convenience fill: using the MNB rate requires the issuer's prior notification to NAV (VAT Act s. 80). If the MNB is unavailable: 503 FX_UNAVAILABLE.
GET /v1/fx/mnb-rate
curl -X GET 'https://api.billfox.hu/v1/fx/mnb-rate?currency=EUR' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "currency": "EUR",
  "rate": 353.66,
  "date": "2026-07-03"
}
GET/v1/nav/invoicesquery:read200 OK
List of invoices stored at NAV. Parameters: direction (OUTBOUND default | INBOUND), from, to, page. Every row has a localStatus flag (whether it has a local counterpart).
GET /v1/nav/invoices
curl -X GET 'https://api.billfox.hu/v1/nav/invoices?direction=OUTBOUND&from=2026-06-01&to=2026-06-30&page=1' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "direction": "OUTBOUND",
  "data": [
    {
      "invoiceNumber": "MK-2026-000413", "direction": "OUTBOUND",
      "issueDate": "2026-06-08",
      "supplierTaxNumber": "12345678-2-41", "supplierName": "Saját Kft.",
      "customerTaxNumber": "24896713-2-42", "customerName": "Kovács Bt.",
      "net": 102000, "vat": 27540, "gross": 129540, "currency": "HUF",
      "invoiceCategory": "NORMAL", "invoiceOperation": "CREATE",
      "localStatus": "DONE"
    }
  ],
  "pagination": { "page": 1, "availablePages": 1, "total": 1 }
}
GET/v1/nav/transactionsquery:read200 OK
List of OUR OWN submissions (transactions) for a period ("did everything we issued arrive?"), and recovering a lost transactionId. Every row has a knownLocally flag.
GET /v1/nav/transactions
curl -X GET 'https://api.billfox.hu/v1/nav/transactions?from=2026-06-01&to=2026-06-30&page=1' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "from": "2026-06-01", "to": "2026-06-30",
  "data": [
    {
      "transactionId": "5F5824PTM7SSXDT3", "insDate": "2026-06-08T10:00:00.000Z",
      "source": "MGM", "insCusUser": "tech_user", "requestStatus": "DONE",
      "technicalAnnulment": false, "originalRequestVersion": "3.0",
      "knownLocally": true
    }
  ],
  "pagination": { "page": 1, "availablePages": 1, "total": 1 }
}
GET/v1/nav/invoices/{number}query:read200 OK
The FULL data of an invoice reported to NAV: parties, items with product code, VAT and amounts. The document type is reconstructed (category, advanceOf, modifies). {number} may contain a "/" character.
GET /v1/nav/invoices/{number}
curl -X GET 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043?direction=INBOUND' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "invoiceNumber": "BEV-2026/1043", "id": "BEV-2026/1043",
  "direction": "INBOUND", "category": "NORMAL",
  "issueDate": "2026-05-30", "fulfillmentDate": "2026-05-30",
  "dueDate": "2026-06-13", "paymentMethod": "TRANSFER",
  "currency": "HUF", "exchangeRate": 1.0, "status": "DONE",
  "supplier": { "name": "Metro Kereskedelmi Kft.", "taxNumber": "13638955-2-44",
    "address": "2040 Budaörs, Keleti út 3.",
    "bankAccount": "10300002-20201234-00003285" },
  "buyer": { "name": "Margitkert Étterem Kft.", "taxNumber": "26583149-2-41",
    "communityVatNumber": null, "thirdStateTaxId": null, "isPrivate": false,
    "address": "1023 Budapest, Margit körút 15." },
  "advanceOf": null, "modifies": null,
  "items": [
    { "name": "Pékáru", "quantity": 1.0, "unit": "tétel", "unitPriceNet": 31800.0,
      "vatRate": "18", "lineNet": 31800, "lineVat": 5724, "lineGross": 37524 }
  ],
  "totals": { "net": 242500, "vat": 62613, "gross": 305113 },
  "source": "nav"
}
GET/v1/nav/invoices/{number}/pdfquery:read200 OK · application/pdf
A4 image of an invoice stored at NAV: a RECONSTRUCTION for documents that have no local record (an inbound supplier invoice, or an external outbound one issued from another program). The image is marked as a reconstructed copy.
GET /v1/nav/invoices/{number}/pdf
curl -X GET 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/pdf?direction=INBOUND' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output bejovo.pdf
GET/v1/nav/invoices/{number}/receiptquery:read200 OK · image/png
The same as an 80 mm thermal PNG.
GET /v1/nav/invoices/{number}/receipt
curl -X GET 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/receipt?direction=INBOUND' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output bejovo.png
POST/v1/nav/receipt-day/{day}/closeinvoice:write200 OK
Manual daily close: the day's receipt summary goes to NAV NOW, without waiting for the automatic close at night. Empty request body. Consequence: after this no receipt, correcting document or spoiling is possible for the day (409 RECEIPT_DAY_CLOSED), the next receipt goes into the next day's summary, and the close cannot be undone. For a day without receipts 400. Not required, without it the day closes by itself at night. Typical use: the POS system's end-of-day close also closes the receipt day in one call.
POST /v1/nav/receipt-day/{day}/close
curl -X POST 'https://api.billfox.hu/v1/nav/receipt-day/2026-09-02/close' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "day": "2026-07-14", "deadline": "2026-07-17", "state": "recorded",
  "configured": true, "receiptCount": 12, "cancelledCount": 1,
  "navId": "25875025_20260714_1", "reportedAt": "2026-07-15T01:50:11+00:00",
  "reports": [
    {
      "status": "RECORDED", "currency": "HUF", "exchangeRate": null,
      "serialNumberStart": "NYG-2026-000101", "numberOfSale": 12,
      "total": "154900.00", "navId": "25875025_20260714_1",
      "submittedAt": "2026-07-15T01:50:11+00:00", "attempts": 1,
      "vatItems": [
        { "vat": "27%", "saleDocument": "142400.00", "modifyingDocument": "0.00" },
        { "vat": "5%",  "saleDocument": "12500.00",  "modifyingDocument": "0.00" }
      ]
    }
  ]
}
GET/v1/nav/receipt-day/{day}/summaryinvoice:read200 OK
End-of-day summary for reconciling the till: the day's receipts and correcting documents per currency, by payment method (count + gross, a correcting document reduces it with its sign). "total" is the grand total of the daily NAV summary, "matchesNav" shows if it would differ. A spoiled receipt is not counted.
GET /v1/nav/receipt-day/{day}/summary
curl -X GET 'https://api.billfox.hu/v1/nav/receipt-day/2026-10-20/summary' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "day": "2026-10-20", "firstNumber": "NYG-000018", "lastNumber": "NYG-000019",
  "cancelledCount": 0, "closed": false,
  "issuer": { "name": "Minta Kft.", "taxNumber": "12345678-2-42" },
  "currencies": [
    {
      "currency": "HUF", "receiptCount": 2, "correctionCount": 0,
      "salesGross": "2540.00", "correctionsGross": "0.00",
      "total": "2540.00", "navTotal": "2540.00", "matchesNav": true,
      "byPayment": [
        { "method": "CASH", "label": "Készpénz", "receipts": 1, "corrections": 0, "gross": "1270.00" },
        { "method": "CARD", "label": "Bankkártya", "receipts": 1, "corrections": 0, "gross": "1270.00" }
      ],
      "byAppearance": [
        { "appearance": "paper", "label": "Papír", "count": 2, "gross": "2540.00" }
      ],
      "receipts": [
        { "number": "NYG-000018", "kind": "RECEIPT", "corrects": null, "time": "09:12",
          "method": "CASH", "methodLabel": "Készpénz", "appearance": "paper",
          "appearanceLabel": "Papír", "gross": "1270.00", "cancelled": false }
      ]
    }
  ],
  "generatedAt": "2026-10-20T18:05+02:00"
}
GET/v1/nav/receipt-day/{day}/summary/pdfinvoice:read200 OK · application/pdf
The end-of-day summary as a printable, branded A4 PDF: the day's receipts one by one (number, time, payment method, paper or electronic, gross), then totals by payment method, form and kind, and whether the grand total matches the daily NAV summary. An informational report, not a tax document.
GET /v1/nav/receipt-day/{day}/summary/pdf
curl -X GET 'https://api.billfox.hu/v1/nav/receipt-day/2026-10-20/summary/pdf' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output napzaro.pdf
GET/v1/nav/receipt-day/{day}/summary/receiptinvoice:read200 OK · image/png
The same as a thermal image, with the company's printer settings (paper width, DPI, as for receipts, optional query: width_mm, dpi). The X-Paper-Width-Mm response header gives the paper width.
GET /v1/nav/receipt-day/{day}/summary/receipt
curl -X GET 'https://api.billfox.hu/v1/nav/receipt-day/2026-10-20/summary/receipt' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output napzaro.png
GET/v1/nav/receipt-day/{day}invoice:read200 OK
Status and summary of one day's RECEIPT reporting. Receipts are not reported one by one: ONE summary PER DAY goes to NAV's separate receipt system. The status belongs to the DAY, not to a document: recorded | correcting | pending | awaiting | failed | overdue | off.
GET /v1/nav/receipt-day/{day}
curl -X GET 'https://api.billfox.hu/v1/nav/receipt-day/2026-07-14' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "day": "2026-07-14", "deadline": "2026-07-17", "state": "recorded",
  "configured": true, "receiptCount": 12, "cancelledCount": 1,
  "navId": "25875025_20260714_1", "reportedAt": "2026-07-15T01:50:11+00:00",
  "reports": [
    {
      "status": "RECORDED", "currency": "HUF", "exchangeRate": null,
      "serialNumberStart": "NYG-2026-000101", "numberOfSale": 12,
      "total": "154900.00", "navId": "25875025_20260714_1",
      "submittedAt": "2026-07-15T01:50:11+00:00", "attempts": 1,
      "vatItems": [
        { "vat": "27%", "saleDocument": "142400.00", "modifyingDocument": "0.00" },
        { "vat": "5%",  "saleDocument": "12500.00",  "modifyingDocument": "0.00" }
      ]
    }
  ]
}
POST/v1/nav/invoices/{number}/stornoinvoice:write201 Created
Cancel an EXTERNAL outbound invoice (not issued here): from the NAV data we issue a local cancellation document with YOUR OWN gap-free number, referring to the external original, and submit it. Empty request body. Only for an invoice that has no local record.
POST /v1/nav/invoices/{number}/storno
curl -X POST 'https://api.billfox.hu/v1/nav/invoices/TESZT-2026-0042/storno' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response201 Created
{
  "original": { "number": "TESZT-2026-0042", "external": true },
  "storno": {
    "id": "LK-2026-000030", "status": "PROCESSING",
    "stornoOf": { "number": "TESZT-2026-0042" },
    "…": "a teljes sztornó bizonylat, items-szel (negált sorok)"
  }
}
POST/v1/nav/invoices/{number}/modifyinvoice:write201 Created
The same with a modifying invoice: the request body is the new, correct COMPLETE content, the issued document is in correcting format (offsetting + new items), with its own number, modificationIndex = 1.
POST /v1/nav/invoices/{number}/modify
curl -X POST 'https://api.billfox.hu/v1/nav/invoices/TESZT-2026-0042/modify' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-04",
  "items": [
    { "name": "Háromfogásos menü", "quantity": 10, "unit": "fő",
      "unitPriceNet": 8500, "vatRate": 27 }
  ],
  "submitToNav": true
}'
GET/v1/nav/invoices/{number}/attachmentsquery:read200 OK
List of documents uploaded to the inbound/external invoice (with SHA3-512 hash). Not applicable to your own issued invoices, because they have a frozen original.
GET /v1/nav/invoices/{number}/attachments
curl -X GET 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/attachments?direction=INBOUND' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "data": [
    {
      "id": "3f1c9a2b4d5e", "filename": "szallito-szamla.pdf",
      "mime": "application/pdf", "byteSize": 48213, "hash": "9F86D081…",
      "uploadedAt": "2026-06-10T09:13:01+00:00"
    }
  ]
}
POST/v1/nav/invoices/{number}/attachmentsinvoice:write201 Created
Upload the document you received (PDF/image) to the inbound/external invoice. multipart/form-data, the file in the file field. If the inbound invoice was issued by a BillFox user (billfoxOriginal: true), 400: the original is already available.
POST /v1/nav/invoices/{number}/attachments
curl -X POST 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/attachments' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -F 'file=@bizonylat.pdf'
GET/v1/nav/invoices/{number}/attachments/{attId}query:read200 OK · binary
Download one uploaded original, with its own Content-Type.
GET /v1/nav/invoices/{number}/attachments/{attId}
curl -X GET 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/attachments/3f1c9a2b4d5e' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output eredeti.pdf
DELETE/v1/nav/invoices/{number}/attachments/{attId}invoice:write200 OK
Delete an uploaded original.
DELETE /v1/nav/invoices/{number}/attachments/{attId}
curl -X DELETE 'https://api.billfox.hu/v1/nav/invoices/BEV-2026/1043/attachments/3f1c9a2b4d5e' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{ "deleted": true }
GET/v1/dashboardinvoice:read200 OK
Overview metrics: counts, 7-day volume and the latest invoices.
GET /v1/dashboard
curl -X GET 'https://api.billfox.hu/v1/dashboard' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
response200 OK
{
  "metrics": { "total": 134, "today": 6, "errors": 1, "processing": 2 },
  "volume7d": [
    { "d": "H", "v": 12 }, { "d": "K", "v": 9 }, { "d": "Sze", "v": 14 },
    { "d": "Cs", "v": 7 }, { "d": "P", "v": 11 }, { "d": "Szo", "v": 0 },
    { "d": "V", "v": 6 }
  ],
  "recent": [ {
      "id": "MK-2026-000413", "status": "DONE",
      "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42",
                 "address": null, "isPrivate": false },
      "issueDate": "2026-06-08", "fulfillmentDate": "2026-06-04",
      "dueDate": "2026-06-18", "createdAt": "2026-06-08T09:12:03+00:00",
      "paymentMethod": "TRANSFER", "currency": "HUF", "exchangeRate": 1.0,
      "category": "NORMAL", "channel": "api",
      "totals": { "net": 102000, "vat": 27540, "gross": 129540 },
      "navTransactionId": "M0DS5JXAP2FU7L", "error": null, "errors": [],
      "links": { "self": "…", "pdf": "…", "receipt": "…" }
    } ]
}

Expenses

With a Bearer API key · from the Plus plan · 6 endpoints
POST/v1/expensesinvoice:write201 Created
Record a manual expense invoice (one that does not exist at NAV): a foreign supplier, something bought from a private individual, a receipt, a paper invoice from a partner that does not report. Required: supplierName, issueDate, netAmount, vatAmount. For a foreign currency document also exchangeRate, and we compute the HUF equivalent.
POST /v1/expenses
curl -X POST 'https://api.billfox.hu/v1/expenses' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "supplierName": "Külföldi Szállító GmbH",
  "issueDate": "2026-07-14",
  "currency": "EUR",
  "netAmount": 100,
  "vatAmount": 27,
  "exchangeRate": 395.5,
  "note": "Alkatrész-beszerzés"
}'
response201 Created
{
  "id": "3f9a1c7e",
  "supplierName": "Külföldi Szállító GmbH",
  "supplierTaxNumber": null,
  "invoiceNumber": null,
  "issueDate": "2026-07-14",
  "currency": "EUR",
  "netAmount": 100.0,
  "vatAmount": 27.0,
  "grossAmount": 127.0,
  "netAmountHuf": 39550.0,
  "vatAmountHuf": 10679.0,
  "grossAmountHuf": 50229.0,
  "exchangeRate": 395.5,
  "note": "Alkatrész-beszerzés",
  "hasDocument": false,
  "documentFilename": null,
  "createdAt": "2026-07-15T10:00:00+00:00"
}
GET/v1/expensesquery:read200 OK
List of manually recorded expenses. By default the last 365 days, and from/to narrow by document date. The response is { "data": [ … ] }.
GET /v1/expenses
curl -X GET 'https://api.billfox.hu/v1/expenses?from=2026-01-01&to=2026-07-31' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
PUT/v1/expenses/{id}invoice:write200 OK
Modify a recorded expense (full replacement). Unlike our own, immutable documents, this can be modified: it is not OUR document, only a note about another company's paper.
PUT /v1/expenses/{id}
curl -X PUT 'https://api.billfox.hu/v1/expenses/3f9a1c7e' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Content-Type: application/json' \
  -d '{
  "supplierName": "Külföldi Szállító GmbH",
  "issueDate": "2026-07-14",
  "currency": "EUR",
  "netAmount": 100,
  "vatAmount": 27,
  "exchangeRate": 395.5,
  "note": "Alkatrész-beszerzés"
}'
DELETE/v1/expenses/{id}invoice:write204 No Content
Delete a recorded expense.
DELETE /v1/expenses/{id}
curl -X DELETE 'https://api.billfox.hu/v1/expenses/3f9a1c7e' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
POST/v1/expenses/{id}/documentinvoice:write201 Created
Upload a photo or PDF of the document. multipart/form-data, file field. PDF, PNG or JPEG, and we check the type from the content, not from the extension. One expense = one document: uploading again replaces the previous one.
POST /v1/expenses/{id}/document
curl -X POST 'https://api.billfox.hu/v1/expenses/3f9a1c7e/document' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -F 'file=@bizonylat.pdf'
GET/v1/expenses/{id}/documentquery:read200 OK · binary
Download the uploaded document. If nothing was uploaded: 404.
GET /v1/expenses/{id}/document
curl -X GET 'https://api.billfox.hu/v1/expenses/3f9a1c7e/document' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output kiadas.pdf

Plan gate: the expense side (inbound NAV invoices and manual expenses) is available from the Plus plan. On the free plan the /v1/expenses endpoints return 403 PLAN_FEATURE_UNAVAILABLE. But we never gate a legal obligation: cancellation, modifying invoices and NAV reporting work on every plan.

08

NAV processing statuses

Submission is asynchronous: the invoice comes back in PROCESSING state, and NAV sets the final state. The refresh-status endpoint brings the update, or you get it by webhook.

RECEIVEDReceivedNAV accepted the submission, it is waiting to be processed.
PROCESSINGIn progressNAV is processing the document right now.
DONESubmittedProcessed successfully and stored at NAV.
ABORTEDErrorProcessing failed, the reasons are in the errors array.
SPOILEDSpoiledA rejected document declared spoiled: it has no effect, its number is kept on record.

There is also a sixth, rare state: if the submission breaks off BEFORE the transaction ID arrives, we do not know whether NAV received it. In that case the document goes to NAV reconciliation with its reserved number, and the system clears it up with NAV itself. There is no blind resubmission, because that would duplicate it.

09

Error codes

Next to the HTTP status you always get a stable code you can branch on in code. The list shows the documented codes, and the shape of the envelope is the same for every error.

HTTPCodeMeaning
400VALIDATION_ERRORA missing or invalid field in the request.
401UNAUTHORIZEDMissing or invalid API key.
403KEY_REVOKEDThe API key used has been revoked.
403INSUFFICIENT_SCOPEThe key is valid, but it lacks the required scope (for example invoice:write).
403PLAN_FEATURE_UNAVAILABLEThe feature is not in the plan. details.requiredFeature / requiredPlan tells you what is missing.
403INVOICE_QUOTA_EXCEEDEDThe monthly document quota is used up and there is no more prepaid pack. details gives the meter, the quota and the usage.
403ORGANIZATION_SUSPENDEDThe company is suspended, the account is read only.
404NOT_FOUNDThe requested resource was not found (or does not belong to this account).
409INVOICE_NUMBER_NOT_UNIQUEThe invoice number already exists in the NAV system.
400IDEMPOTENCY_KEY_REQUIREDIssuing an invoice, final invoice, receipt or receipt document with an API key without an Idempotency-Key header. Nothing happened.
409IDEMPOTENCY_KEY_CONFLICTThe same Idempotency-Key is still being processed (or ended with an uncertain outcome). First check the result of the earlier request.
409NAV_NOT_CONFIGUREDThe company's NAV technical user is missing or cannot be decrypted.
409ONBOARDING_INCOMPLETEThe company data and numbering are not final yet. Without them a wrong issuer would be frozen on the invoice.
409ACCOUNT_CLOSEDThe account is being closed, so it is read only.
422NAV_REJECTEDNAV accepted the request but rejected the document data.
429RATE_LIMITEDRate limit exceeded, or too many concurrent (4 per company) or unsettled (100 per company) issues. In the last two cases this request issued no invoice and can be retried with the same Idempotency-Key. The wait time in seconds is in the Retry-After header and also in the details.retryAfter field.
502VIES_UNAVAILABLEThe EU VIES service (or the member state's database) is temporarily unavailable.
503NAV_UNAVAILABLENAV is unreachable (network / gateway / 5xx), can be retried.
503FX_UNAVAILABLEThe MNB exchange rate service is unavailable.
503MAINTENANCE_MODEMaintenance. 503 + Retry-After, deliberately not 500, so that a machine caller comes back.

A NAV rejection is NOT an HTTP error

If NAV rejects the document data, the submission succeeds at HTTP level: the response is 200/201, the document status is ABORTED, and the reasons come in the errors array of the response. NAV can report several reasons at once, we return all of them (the older error field carries the first reason, for backward compatibility). NAV's original message and code are always kept, and explanation and action are our human explanation and the concrete next step. The same structure is used for the non-blocking warnings items.

responseABORTED document
{
  "id": "MK-2026-000413",
  "status": "ABORTED",
  "errors": [
    {
      "code": "INCORRECT_HEAD_DATA_CUSTOMER_TAXPAYERID",
      "message": "…a NAV eredeti üzenete…",
      "explanation": "A vevő adószáma nem szerepel a NAV nyilvántartásában.",
      "action": "Ellenőrizd a vevő adószámát, majd küldd be újra.",
      "known": true
    }
  ]
}
10

Webhooks

NAV processing is asynchronous. If you do not want to write polling, add a webhook target in the logged-in app (API keys page): when the final state is reached we POST a signed JSON to it. We generate the signing secret and show it once. Setting up targets is a session operation, it cannot be changed with an API key.

responseinvoice.finalized
POST /a-te-vegpontod HTTP/1.1
Content-Type: application/json
X-Webhook-Event: invoice.finalized
X-Webhook-Id: 8f3c1a2b4d5e6f70
X-Webhook-Timestamp: 1780000000
X-Webhook-Signature: sha256=9f86d081884c7d659a2feaa0c55ad015…

{
  "event": "invoice.finalized",
  "invoiceNumber": "MK-2026-000413",
  "status": "done",
  "transactionId": "M0DS5JXAP2FU7L",
  "gross": 129540.0,
  "currency": "HUF",
  "issuedAt": "2026-06-08",
  "warnings": [],
  "errors": [],
  "metadata": { "orderId": "W-1001", "product": "webshop" },
  "channel": "webshop",
  "timestamp": "2026-06-08T09:14:22+00:00"
}

The request comes from the Cloudflare network, there is no fixed sender address, so IP-based filtering cannot be used: the signature proves authenticity. The address must be public, we recommend port 443.

Several products, several targets. A company can have several webhook targets, each with its own signing secret. API keys can be bound to a target: notifications for invoices issued with a bound key (and their storno or modifier) go to that key's target, everything else goes to the default target. The metadata field of the payload is the issuing request's object and channel is the key's source label, so the receiver can also split notifications in its own system.

Verifying on the receiving side

1. Signature. Recompute the HMAC-SHA256 over the raw request body with the shared secret, and compare it with the X-Webhook-Signature header using a constant-time comparison. The format is sha256=<hex>.

2. Replay window. X-Webhook-Timestamp (unix epoch, seconds) may differ from your own clock by at most ±5 minutes, so drop a request outside the window.

3. Deduplication. Store X-Webhook-Id for a short time, and drop a repeated ID. We retry a failed delivery with exponential backoff (30 s, 60 s, 120 s… for up to an hour), so the same event can arrive more than once.

11

Full flow: from issuing to the PDF

Three calls, in the same language: issuing the invoice, querying the NAV state (if you do not use a webhook), and finally downloading the frozen A4 invoice image.

1. Issue and submit the invoice
POST /v1/invoices
curl -X POST 'https://api.billfox.hu/v1/invoices' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  -H 'Idempotency-Key: 7c1f-44a2-9e08' \
  -H 'Content-Type: application/json' \
  -d '{
  "buyer": { "name": "Kovács Bt.", "taxNumber": "24896713-2-42" },
  "fulfillmentDate": "2026-06-04",
  "paymentMethod": "TRANSFER",
  "currency": "HUF",
  "items": [
    { "name": "Háromfogásos menü", "quantity": 12, "unit": "fő",
      "unitPriceNet": 8500, "vatRate": 27 }
  ],
  "submitToNav": true
}'
2. Query the NAV status (if you do not use a webhook)
POST /v1/invoices/{id}/refresh-status
curl -X POST 'https://api.billfox.hu/v1/invoices/MK-2026-000413/refresh-status' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx'
3. Download the frozen A4 invoice image
GET /v1/invoices/{id}/pdf
curl -X GET 'https://api.billfox.hu/v1/invoices/MK-2026-000413/pdf' \
  -H 'Authorization: Bearer bfx_live_••••a91Fx' \
  --output szamla.pdf
12

Sandbox: a free practice system

You need no live data and no payment to develop.

The practice system sends to the NAV test system, not to live, and it is a completely separate system: it runs on a separate address, with separate registration, separate data, separate subscription and separate numbering. It does not touch your live account, and nothing syncs between the two. The sandbox account does not expire, it stays next to the live one. The examples above show the live host and prefix. In the sandbox only these two differ.

EnvironmentAPI hostKey prefix
liveapi.billfox.hubfx_live_
sandboxapi-sandbox.billfox.hubfx_test_

Billing: API access is included in every plan, there is no key limit. The monthly free document quota (Free 10 · Plus 50 · Premium unlimited) applies to issuing on the web, while a document issued over the API runs on a separate meter that has no built-in quota: it is paid per document (a prepaid pack or month-end settlement). Nothing is issued live in the sandbox, so developing there costs nothing.

You create the API key with one click.
Registration is free. The logged-in documentation gives the same reference with your own stack's host and a downloadable OpenAPI spec.
Free account + API key