An invoicing API that handles NAV for you

One POST, and the invoice is issued: the software does the NAV (Hungarian Tax Authority) reporting, and the response contains the number and the status. Bearer key, idempotent submission, webhook, a machine-readable (OpenAPI) description, and a free practice system that sends to the NAV test environment, so you can try everything before going live.

Practice account + API keyFull API reference58 endpoints, in four languages, readable without signing in.
The first call

This is what issuing an invoice looks like, in four languages

The same call in cURL, Python, Node.js and .NET. The reference gives it like this for every endpoint.

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
}'

The response contains the allocated number and the status of the NAV submission. ⚠️ NAV processing is asynchronous: the response to issuing is not yet the final NAV status. You can query it, or wait for it with a webhook.

How to start

Four steps to the first invoice

01
You request a key in the app

Signed in, you create an API key in the Developer settings and set what it may do: write invoices, read them, run queries. You see the key ONCE, after that only its permissions.

02
You try it in the practice system

The sandbox is a separate system, with its own key, connected to the NAV test environment. The same API, the same responses, only nothing goes into the live register.

03
You issue an invoice

One POST. The software does the NAV reporting and returns the number and the status in the response, and you request the document image separately if you need it.

04
You wire in the feedback

You can query the status, or wait for it with a webhook. The Idempotency-Key makes resending safe: the same request does not create a second invoice.

The documentation

Reference with example calls

58 endpoints, readable without signing in.

Four languages for every endpoint

cURL, Python, Node.js and .NET: not pseudocode, but a copyable call generated from the endpoint descriptor, with the real field names and headers.

Example response and error codes

The response JSON and the possible errors per endpoint. The software returns NAV's rejection codes with a human explanation and next step, not just the code.

OpenAPI 3.1, without signing in

GET /v1/openapi.yaml and .json, generated from the running backend, so it cannot fall behind the code. You can generate a client from it.

Practice system with its own key

Separate registration, its own API key, the NAV test environment. The same surface, for live you only swap the key.

Without code

Make, Zapier, n8n: three recipes

There is no separate BillFox module in these tools, and you do not need one: their built-in HTTP step calls the normal API. The request and webhook fields are the same as in the reference.

Invoice from a new order
  1. The trigger is the tool's own module (webshop, form, new row in a spreadsheet).
  2. HTTP step: POST /v1/invoices, with an invoice:write key.
  3. The order ID goes into the Idempotency-Key header, so a repeat does not issue a second invoice.
  4. For testing, first ?dryRun=true: every check runs, but no invoice is created.
Invoice status into a spreadsheet
  1. Set the address of the tool's webhook trigger as the receiving address in BillFox.
  2. The invoice.finalized event brings the invoice number and the done or aborted status.
  3. Where the tool can do HMAC (n8n), check the X-Webhook-Signature header. Where it cannot, treat it only as a signal, and request the invoice with a GET /v1/invoices/{id} call.
  4. The same event can arrive more than once: filter the repeats by X-Webhook-Id.
Marking a payment as received
  1. The trigger is the event of the system that signals the payment, with the invoice number.
  2. HTTP step: POST /v1/invoices/{id}/paid, body: {"paid": true}.
  3. The call can be repeated: the payment date of an invoice already paid does not change.

The name of the HTTP step: Make: HTTP / Make a request, Zapier: Webhooks by Zapier (on a paid plan), n8n: HTTP Request. The key goes in the Authorization: Bearer header in every request.

Worth knowing

The four things that matter when integrating

The key's permissions are narrow, and it does not reach everything

The API key only reaches DATA endpoints (documents, queries). It has no access to the management surfaces (API keys, NAV settings, profile, users): those are only available with a signed-in session. So a leaked key cannot take over the account.

Resending does not create a second invoice

After a network error you can calmly resend the request with the Idempotency-Key header: for the same key and the same request body the response is repeated, no new document is created. It does not use a number either.

Machine-readable OpenAPI description

The whole surface is also available as an OpenAPI description, so you can generate client code from it. The reference gives a copyable example call for every endpoint in cURL, Python, Node.js and .NET.

The API is included in every plan

API access is not a separate module and not a separate monthly fee. An invoice issued over the API runs on a separate meter and does not count towards the monthly quota of the app: it comes from a prepaid pack (tokens) or from month-end settlement, and with many API invoices from a monthly API package (50, 500, 3,000 invoices or unlimited) for a monthly or yearly fee.

FAQ

Frequently asked questions

Is a separate subscription needed for the API?

No. The API is available on every plan. An invoice issued over the API does not use the plan's monthly quota but a separate meter: tokens, month-end settlement, or a monthly API package.

How can I try it without going live?

The practice (sandbox) system is a separate registration, with a separate key, connected to the NAV test environment. The same API surface, but the documents issued do not go into the live NAV register.

What happens after a network error? Can I resend the request?

Yes, the Idempotency-Key header is required for issuing invoices: for the same key and request body the response is repeated, no second document is created, and no number is used.

Do I get notified when NAV responds?

Yes, with a webhook, or you can query the status. NAV processing is asynchronous, so the response to issuing is not yet the final NAV status.

Is there a machine-readable (OpenAPI) description?

Yes, for the whole surface, so you can generate a client from it. The reference page also gives an example call per endpoint in four languages.

Try it without live risk.
The practice system sends to the NAV test environment, so nothing goes into a live register. The endpoints, fields and error codes are in the API reference.
Free account