The NAP audit file (Ordinance Н-18, Annex 38) for an online shop
Who files the audit file with the Bulgarian revenue agency, what it contains, which orders belong to which month, the deadline, and how Maina Scale assembles, validates and keeps it every month.
The НАП audit file is a monthly XML file under Annex 38 to Ordinance Н-18, the Bulgarian rule on registering sales. An online shop files it when it accepts card payments and, instead of a fiscal receipt, issues its own document for every card sale (the so-called alternative regime under art. 3(17)). The file lists the orders delivered during the month and is filed with a qualified electronic signature (КЕП) by the 15th of the following month.
Who has to file the audit file?
Only shops in the alternative regime. Ordinance Н-18 lets an online shop record card-not-present sales with a "document registering the sale" instead of a fiscal receipt (art. 3(17)). The conditions are that the shop's software meets art. 52с (a unique number for every order, complete and intact data, separate login for every operator) and that the shop accepts card payments. Decide with your accountant whether the regime suits you.
If you issue fiscal receipts for card payments, or don't take cards at all, the regime does not concern you and you don't file the file. Bank transfers and postal money orders through a licensed postal operator need no fiscal receipt anyway (art. 3(1)).
The regime lets you take cards, cash on delivery and bank transfer side by side. That is why the file includes every delivered order, however it was paid. The payment method is recorded with a code for each order.
What has to happen before the first sale?
The shop is registered in the НАП portal with a КЕП before trading starts (art. 52м). You file the details in Annex 33: the shop's name and domain, who hosts and maintains it, the name of the software, the kinds of goods, the payment methods, the payment providers and the virtual POS terminal numbers. НАП gives the shop a unique number (УИН), which then appears in every audit file. Any change to the details is reported within 7 days.
What document is issued for every card sale?
The document under art. 52о replaces the fiscal receipt for card payments. It contains:
- a name, number and date, where the number has 10 digits and goes up by one with every sale;
- the trader's details;
- the order number and the transaction reference from the card processor;
- the items with their tax group code, quantity, unit price and total, plus the payment method;
- a QR code under Annex 18а with the shop's УИН, the order number, the transaction reference, the date, the time and the amount.
The customer receives it electronically at the moment of payment. An invoice can replace the document only if it carries the same information, including the reference and the QR code.
What is in the audit file?
The file covers one calendar month and contains the orders with a delivery in that month. The delivery date is what counts. An order paid in October and delivered in November goes into the November file.
| Part of the file | What it contains |
|---|---|
| The shop | company ID (ЕИК), УИН, own domain or platform, web address, month and year |
| Each order | number and date, number and date of the art. 52о document (0 if none was issued), amounts before discount, the discount, VAT and the total |
| Each item | name, quantity, unit price without VAT and before discount, VAT rate and amount, total |
| The payment | a code from 1 to 6, virtual POS number, transaction reference, payment provider identifier |
| Returns | number of returned orders, amount, date and how the money went back |
There are six payment codes: 1 for a payment exempt from a fiscal receipt (such as bank transfer), 2 for a virtual POS, 3 for cash on delivery settled by postal money order, 4 for a payment service provider such as Stripe (whether your card payments are code 2 or 4 depends on your contract; confirm with your accountant), 5 for any other payment without a fiscal receipt and 6 for a payment recorded with a fiscal receipt. With code 2 the transaction reference is mandatory, and with code 4 the provider is named.
After Bulgaria adopted the euro, Annex 38 was amended (State Gazette no. 42 of 2025) and every amount in the file is in euro.
How and by when is it filed?
- The deadline is the 15th of the month after the month the file covers.
- The file is uploaded only through НАП's e-service "Filing a standardised audit file", with a КЕП.
- The file must be logically and arithmetically correct, and it is checked on submission.
In practice that means every month you gather the orders, check the totals against payments and refunds, generate the XML, validate it against НАП's schema and upload it.
Where is it easy to go wrong?
These points need the most care:
- Grouping by order date. The rule is the delivery date. A shop that groups by order date gets the month wrong for every order placed at the end of one month and delivered at the start of the next.
- The price before discount. The unit price in the file is without VAT and before the discount, and the discount is a separate field. If the promotion has already been taken off the price, the totals won't add up.
- A missing transaction reference. With a virtual POS it is mandatory. If the shop doesn't store it from the card processor's response, there is nowhere to get it from at the end of the month.
- Cash on delivery under the wrong code. Code 3 applies when the courier settles cash on delivery as a postal money order. Check your contract and ask your accountant.
Are there ready-made solutions?
For Shopify there are apps in the app store, such as "NAP Audit File Bulgaria" (a free plan and a 5.99 $ per month plan) and Oditto (from 5.99 $ to 39.99 $ per month). For WooCommerce there are plugins that generate the file. With a custom-built shop, the file has to be built into the shop itself.
How Maina Scale produces the file
In the Maina Scale package (5,500 € including VAT) the audit file is part of the shop's admin:
- for each month the file is assembled from the delivered orders with their items, VAT, payment codes and refunds;
- it is validated against НАП's schema, and any findings are shown before you go to the portal;
- the filed version is kept exactly as uploaded;
- for every card order the shop issues the art. 52о document;
- on the 1st of the month your accountant receives a package with exports of sales, VAT and the journal;
- five days before the deadline the admin reminds you if the month has not been filed yet.
Uploading in the portal with your КЕП stays with you. The module is also available as an add-on for 420 € including VAT. What else the packages include is on the online shop development page.
If you are not sure whether the regime is for you, book a free consultation or build your shop in the calculator.