Share the details
Policies and handbooksSystems

Virtual fiscal device Tanzania: integrating invoicing software with TRA's EFDMS, so every invoice, credit note and Z-report arrives in order

A VFD lets the ERP sign and transmit each invoice to TRA without retyping into a machine. The law, the registration route, the receipt fields, the counter and outage rules, the controlled documents and a worked example for a Mwanza distributor.

CPA Altho MwangoaChief Financial Officer, Zatra Consultants Limited
16 November 2026Published
16 November 2026Updated
20 min4,459 words
On this page
  1. What the law says
  2. Who should read this
  3. What is a virtual fiscal device, and how is it different from an EFD machine?
  4. Who may integrate, and how does registration with TRA work?
  5. What must every receipt carry, and what does the system generate?
  6. How do counters, Z-reports, cancellations and credit notes work?
  7. What happens when TRA's server is offline?
  8. System design: the controlled documents and roles
  9. Worked example: a Mwanza distributor with 600 invoices a month
  10. What does an auditor or TRA officer check?
  11. Mainland and Zanzibar
  12. What to do now
  13. Key dates and deadlines
  14. What the NEMBO desk prepares
  15. How Zatra helps
  16. Sources and status
  17. Frequently asked questions
Quick answer

What is a virtual fiscal device in Tanzania and how does invoicing software connect to TRA?

A virtual fiscal device is a software registration on TRA's Electronic Fiscal Device Management System, set up through an approved supplier, that signs each invoice, sends it to TRA, prints a verification code and QR, and closes each day with a Z-report. The ERP keeps a global counter with no gaps, a daily counter, an offline queue that resends in order, and maps credit notes to the fiscal adjustment flow.

Cover: Virtual fiscal device Tanzania, integrating invoicing software with TRA's EFDMS

A virtual fiscal device Tanzania companies run inside their invoicing software does the job an EFD machine used to do at the counter. It signs each invoice, sends it to the Tanzania Revenue Authority's Electronic Fiscal Device Management System, prints the verification code and QR, and closes each day with a Z-report. For a company invoicing from QuickBooks, Odoo, Sage or a custom system, the question is how to wire the software so that every invoice, credit note and daily report reaches TRA in order. This note covers the law, registration, the receipt fields, counters and outage rules, and the controlled documents. It builds on the notes on EFD receipts and tax invoices, credit notes and standard operating procedures.

What the law says

The duty sits in the Tax Administration Act, Cap. 438. In the arrangement of sections of the revised edition, section 43 covers maintenance of documents and section 44 the issuance of a fiscal receipt. Section 97 is the offence for failing to use a fiscal device. Older material cites the same provisions as sections 36 and 86, the numbering before the revised edition. The operative text of section 44 did not reach the desk, so the receipt content below is taken from TRA's pages and the integration specification, and tiered verify.

TRA's EFD and VFD suppliers page, read on 16 November 2026, defines a VFD as the digital system, software and cloud based, approved by the Commissioner General to capture, transmit and keep records of sales data electronically. A fiscal receipt is one issued by a fiscal device, the Government electronic payment gateway, or any other electronic system the Commissioner General approves. The obligation on the same page is settled: a person who supplies goods or services, whose annual turnover is assessed at TZS 11 million and above, shall acquire and issue fiscal receipts using a device bought from an approved supplier. Erroneous data or a device failure must be reported to the supplier and the Commissioner General within twenty-four hours.

The Income Tax Act, Cap. 332 adds the buyer's side. Section 11(4), inserted by the Finance Act 2024, allows a deduction only where the expenditure is supported by a fiscal receipt, with exceptions for non-resident suppliers and suppliers excluded from the device rules. The Zatra note on EFD receipt rules and the Zatra note on who needs an EFD carry the legal detail. VATupdate's Tanzania e-invoicing booklet of 7 July 2026 names the implementing instrument as the Income Tax (Electronic Fiscal Devices) Regulations, 2012, GN No. 389, with five-year retention. The desk did not read the Regulations and treats both points as verify.

Who should read this

Finance managers and IT officers of companies that invoice from accounting or ERP software and still retype each invoice into an EFD machine. Distributors with several hundred invoices a month, service firms that invoice on credit, e-commerce sellers and multi-branch groups. Developers building a billing system for a Tanzanian client. Accountants who have found the sales ledger and the VAT return drifting apart. Zanzibar operators should read the Mainland and Zanzibar section, because the islands run a different system under a different authority.

What is a virtual fiscal device, and how is it different from an EFD machine?

An EFD machine is hardware with fiscal memory and a SIM card, fiscalised by the supplier against one TIN and one premises. A VFD is a registration on TRA's system that a billing application uses through an interface. TRA's suppliers page requires a minimum capital of TZS 1.5 billion for an EFD supplier and TZS 50 million for a VFD supplier, five years' experience and a qualified technical team. TRA's approved EFD and VFD suppliers sheet lists seventeen companies with columns for EFD and VFD. The sheet carries no date, so confirm the current version before signing with anyone.

Three routes exist: invoicing in an approved provider's application; connecting the company's own ERP to the provider's interface; or direct integration with TRA's interface under a certificate TRA issues. Which route is open to a given company is TRA's decision through the supplier and the regional office.

What is a virtual fiscal device, and how is it different from an EFD machine?
FeatureEFD machineVirtual fiscal deviceSource and tier
FormHardware with fiscal memory and SIMSoftware registration on EFDMSTRA suppliers page, settled
Supplier minimum capitalTZS 1.5 billionTZS 50 millionTRA suppliers page, settled
Identity on each receiptDevice serial and registration IDEFDSERIAL and REGID issued at registrationIntegration specification, verify
Verification codePrinted by the deviceBuilt by the taxpayer system from the receipt code and counterIntegration specification, verify
FitsRetail counters, one till per premisesERP invoicing, online sales, multi-branch groupsZatra note, 14 September 2026

Who may integrate, and how does registration with TRA work?

The company must hold a TIN in its own name and, where VAT registered, a VRN; both are copied into every receipt header. Zatra's TIN and VAT registration desk sequences that step. The company then signs with a supplier from TRA's list and hands over the registration pack of certificates, licence, lease and the signing director's identity.

The technical registration follows TRA's VFD integration specification, which the desk read in a community copy at tra-docs.netlify.app, last updated 12 September 2021. Registration is a one-time request in which the taxpayer system sends its TIN and vendor serial, signed with the private key TRA issued. The acknowledgment returns the registration ID, the serial, the taxpayer's name, address, VRN, tax office, the receipt code used to build verification numbers, the current global counter, and the credentials for token requests. The system saves all of this. Each later request carries a token, renewed only on expiry, and each receipt and Z-report is signed with the certificate. The parameters are verify-tier, because the current specification is issued by TRA to the integrator and the community copy is five years old.

What must every receipt carry, and what does the system generate?

The receipt shows the seller's identity, the date and time, the counters, each item with its tax code, the totals, the payment type, and the verification code and QR. The buyer's identity type and number are mandatory fields, with type 6 for a buyer with no identity. The verification code is the receipt code TRA issued at registration followed by the global counter. The QR encodes TRA's verification address with that code. Anyone can check a receipt at verify.tra.go.tz.

What must every receipt carry, and what does the system generate?
Field on the receiptWhere it comes fromWhy it matters
Seller name, address, TIN, VRNRegistration acknowledgment, header linesMust match the BRELA and VAT certificates exactly
Receipt number and global counterTaxpayer system, from 1, no gaps, never reusedA gap or a reuse is a missing or duplicate sale on TRA's side
Daily counterResets to 1 after midnightTies each receipt to one Z-report
Buyer identity type and numberKeyed at invoicing; a TIN is nine digitsThe buyer's input tax and deduction depend on it
Item lines with tax codeItem master, codes 1 to 51 standard 18 percent, 2 special, 3 zero rated, 4 special relief, 5 exempt
Totals and payment typeCASH, CHEQUE, CCARD, EMONEY or INVOICEReceipts use the first four; invoices use INVOICE only
Verification code and QRReceipt code plus global counter; QR built by the taxpayer systemMust print on every copy; the return verifies against it

The tax code list predates the reduced 16 percent rate for electronically paid business-to-consumer supplies under the Finance Act 2025, which TRA's notice of 2 September 2025 made subject to a later naming of eligible persons. Ask the supplier how that rate is coded.

How do counters, Z-reports, cancellations and credit notes work?

The specification sets rules the developer must build in rather than leave to users. The receipt number and the global counter start at 1, stay equal, and rise by one for every receipt for the life of the device. The daily counter restarts each day. The report number is the date written as a number. A cancelled transaction keeps its number and the next takes the next number. A receipt sent with wrong data that received a success response is not resent; the correction takes a new number and the original is reversed with an adjustment. A receipt with no response, or a negative acknowledgment, is resent with the original content and the original date and time until the acknowledgment code is zero.

After the close of business the system sends the Z-report, a summary of the day by tax rate and payment type with counters, before any sale of the next day. The report carries the header lines, the VRN, the tax office, the registration ID and serial, totals, corrections, voids, and any change to tax rates or header lines since registration. A month of Z-reports is the output figure behind the VAT return. Where the ledger and the Z-reports disagree, TRA believes the Z-report.

Credit notes are the most common design gap. A price reduction, a return or an invoice to the wrong customer is corrected by an adjustment note under the VAT Act, raised through the fiscal flow and quoting the original, as the credit note note sets out. VATupdate records a formal adjustment note filed with TRA within seven days. A credit note raised in the ERP alone leaves TRA's sales ledger higher than yours.

What happens when TRA's server is offline?

The specification is explicit. The system continues to generate transactions as they occur and prints or sends each receipt without waiting for TRA. It records each transaction as pending, keeps checking the connection, and resends all pending transactions in order when the connection resumes, one at a time, moving on only when the current one has succeeded. A system that drops transactions during an outage, or resends with today's date, leaves the sale missing on TRA's side or in the wrong Z-report. The outage queue needs a monitor that a named person reads each morning. The twenty-four hour reporting rule still applies to a failed device, so the SOP must say who writes to the supplier and to TRA when the queue has not cleared by the next trading day.

System design: the controlled documents and roles

A fiscal integration is a control system, so it needs an SOP, a register, a role matrix and an evidence trail. The controlled documents note explains numbering and approval; the delegation of authority matrix note explains who approves what.

System design: the controlled documents and roles
Controlled documentOwnerWhat it fixes
Fiscal integration SOPFinance managerIssue, cancel, credit, outage, Z-report, month-end reconciliation, incident reporting within twenty-four hours
Device registerIT officerRegistration ID, serial, receipt code, certificate serial and expiry, supplier, premises, go-live date
Tax code mapAccountantEvery item in the item master against codes 1 to 5, reviewed when a rate or product changes
Role matrixManaging directorWho issues, cancels, raises a credit note, closes the day, holds the certificate and token credentials
Reconciliation workbookAccountantSales ledger to Z-report totals by day and tax rate, differences explained, signed monthly
Incident logIT officerOutages, rejected receipts with acknowledgment codes, supplier tickets, TRA correspondence
Retention scheduleCompany secretaryReceipts, Z-reports, XML messages and acknowledgments kept five years

Issuing and cancelling must never sit with one person: a cashier who can do both can sell for cash, cancel the receipt and keep the money. The ERP permissions, the provider's user accounts and the role matrix must say the same thing. The record retention note sets the periods; the XML messages and acknowledgments belong in the same schedule as the receipts.

Worked example: a Mwanza distributor with 600 invoices a month

A distributor of building materials in Mwanza issues 600 invoices a month from its ERP at an average of TZS 1,500,000 before VAT. Monthly sales are TZS 900,000,000 before VAT, output VAT at 18 percent is TZS 162,000,000, and invoiced totals are TZS 1,062,000,000. A clerk retyped each invoice into an EFD machine, 60 hours a month. In one month 40 invoices worth TZS 60,000,000 before VAT never reached the machine because the clerk was on leave.

The exposure is three-sided. The register records the seller's offence at a fine of 20 percent of the value or 100 currency points, TZS 2,000,000, whichever is greater, capped at 200 points, TZS 4,000,000 (NEW-02-13, Cap. 438 s.97(1) and (3)). Imprisonment up to three years and twice any tax evaded sit beside the fine. On TZS 60,000,000 the 20 percent figure is TZS 12,000,000, so the cap of TZS 4,000,000 applies on conviction. The 40 buyers lose input VAT of TZS 10,800,000, and the TZS 60,000,000 cannot be deducted under section 11(4), which at the 30 percent corporate rate is TZS 18,000,000 of tax across them. A buyer who did not demand the receipt faces the greater of 20 percent of the tax evaded or 2 currency points, TZS 40,000 (NEW-02-14, s.97(4)).

After the integration, the ERP posts each approved invoice to the provider. The global counter stood at 14,200 at the start of the month and ends at 14,800. Twenty-six trading days produce 26 Z-reports, numbered 311 to 336. The month-end reconciliation compares the ledger's TZS 900,000,000 with the Z-report net totals and finds TZS 901,500,000: one invoice was posted twice under a new number after a timeout. The fix is an adjustment note against the duplicate, not a deletion, and the return on the 20th carries output VAT of TZS 162,000,000, not TZS 162,270,000. Every figure in this example is illustrative.

What does an auditor or TRA officer check?

A TRA visit is short. The officer asks for the last Z-report, watches a live issue, checks the code on a handset, and samples purchases to trace input tax claimed to receipts whose codes resolve. For a VFD the officer also checks that the registration carries the company's TIN and the premises visited. An external auditor asks for the reconciliation workbook, tests a sample of invoices from ledger to acknowledgment, and reads the incident log. Three findings end a visit badly: a parallel system that never reached EFDMS, a queue of unsent transactions older than a day, and claimed input tax whose codes do not resolve. Where a finding hardens into an assessment, the objection runs under the Tax Administration Act with its deposit rule, and representation before the Tax Revenue Appeals Board goes to an advocate. Zatra's TRA audit and dispute desk organises the file.

Mainland and Zanzibar

The rules above are Mainland rules under TRA. VAT is not a Union tax. A branch in Zanzibar registers with the Zanzibar Revenue Authority, whose standard rate is 15 percent and whose threshold is TZS 100 million, and issues receipts through ZRA's Virtual Fiscal Management System, not EFDMS. ZRA's notice of 1 September 2026 on the amended VFMS regulations required accommodation operators to run ZRA-approved software integrated with VFMS by 2 November 2026, as the Zatra note on the Zanzibar hotel software rule explains. The ZRA file is a scanned image the desk could not read, so the legal notice number and penalties are tiered verify. Income tax remains a Union matter, so the section 11(4) receipt rule reaches a Zanzibar buyer through TRA. A group with premises on both sides runs two registrations, two integrations and two reconciliations.

What to do now

  1. Confirm the TIN, VRN and BRELA name on the company's own certificates, because the header copies all three.
  2. Choose the route and the supplier: provider application, ERP connected to a provider, or direct integration, from TRA's current list.
  3. Map every item to a tax code before the first test receipt, and ask how the reduced 16 percent rate is coded if any consumer sales are paid electronically.
  4. Build the counters and the queue to the specification: global counter from 1 with no gaps, daily counter reset at midnight, pending status per transaction, resend with original content, one at a time.
  5. Map credit notes, cancellations and discounts to the fiscal adjustment flow and test each on the supplier's test server.
  6. Write the SOP, device register, role matrix and reconciliation workbook as controlled documents, with issuing and cancelling separated in every system.
  7. Run a parallel week, reconcile the ledger to the Z-reports daily, and sign off only when the difference is nil or explained.
  8. Go live and close the old device with the supplier and the regional office, keeping its Z-reports for the retention period.
  9. Calendar the monthly reconciliation and the certificate renewal, and brief every cashier that the receipt goes out before the money is counted.

Key dates and deadlines

Key dates and deadlines
Date or periodWhat it governsSource and tier
Within twenty-four hoursReport erroneous data or device failure to the supplier and the Commissioner GeneralTRA suppliers page, settled
Before the first sale of the next daySend the Z-report for the day closedIntegration specification, verify
Seven daysAdjustment note for a credit after issueVAT Act as read in the credit note note and VATupdate, verify
20th of the following monthVAT return and payment; input tax claimable within six months of the receiptRegister F0245, VAT Act Cap. 148, settled
1 July 2024Fiscal receipt required for a deduction; currency point TZS 20,000Finance Act 2024, legal desk reference and register, settled
1 July and 1 September 2025Withholding VAT; reduced 16 percent rate subject to TRA's notice of 2 September 2025Zatra note and VATupdate, verify
2 November 2026Zanzibar accommodation operators on ZRA-approved software integrated with VFMSZRA notice of 1 September 2026, scanned; Zatra note, verify
Five yearsRetention of receipts, Z-reports and fiscal recordsRegulations as described by VATupdate, verify

What the NEMBO desk prepares

NEMBO designs and delivers the documents and the system around the integration: the fiscal integration SOP, the device register and role matrix, the tax code map, the reconciliation workbook, the incident log and the invoice layouts that carry the verification code and QR. Its automation desk moves approved invoices from the ERP to the provider and flags a stuck queue to a named person. Zatra Consultants prepares and checks the content: the tax codes against the Act, the registration pack, the reconciliation method, the VAT return, and the objection file where an assessment follows, with an advocate for the Board. Government charges, meaning the tax, any penalty and any interest, are paid to TRA against its control number at the official rate. They are never part of NEMBO's or Zatra's fees, which are quoted in writing from the packages and pricing pages. The supplier's charge for the VFD service is the supplier's own invoice to the client. NEMBO does not decide or guarantee any authority's outcome. See the policies and SOPs desk, the systems desk, the process page, or share the details.

How Zatra helps

Zatra's digital transformation and AI automation desk assesses whether the ERP and the sales process are ready for a fiscal integration and names the owner of each step. Its business process and SOP desk writes the procedure and the role matrix with the client's managers. Its tax and regulatory compliance desk runs the VAT return on the 20th and the monthly reconciliation, with CPA Altho Mwangoa signing the tax position. Zatra prepares, structures and coordinates; it does not fiscalise a device, certify software or issue a ruling. Representation before the Tax Revenue Appeals Board or a court goes to an advocate, and tax and reporting positions go to an accountant. The WhatsApp AI agent note explains where an agent can watch the queue and where a person must still sign.

Next step

Company policies, SOPs and controlled documents

Zatra Consultants prepares and checks the content on the details the Client shares. NEMBO designs and delivers it. Fees are published on the packages page and quoted in writing.

Open the desk page

Sources and status

Accurate as at 16 November 2026. The operative text of section 44 of the Tax Administration Act did not reach the desk. The integration specification was read in a community copy last updated 12 September 2021; its parameters are verify-tier until confirmed in the version TRA issues to the integrator. The GN number of the 2012 Regulations and the five-year retention period are from VATupdate. TRA's suppliers sheet carries no date. The ZRA notice file is a scanned image. Worked example figures are illustrative.

Figures to confirm before you act

  • The current VFD integration specification, endpoints, field names and tax codes, from TRA through your approved supplier, not from the community copy read here.
  • The current approved suppliers sheet and its date on TRA's suppliers page, before signing a supplier agreement.
  • The operative wording of sections 44 and 97 of the Tax Administration Act in the revised edition, and the GN number of the 2012 Regulations, with an accountant.
  • How the reduced 16 percent rate under the Finance Act 2025 is coded, and whether TRA's notice naming eligible persons has issued.
  • The adjustment note timing and form under the VAT Act for credit notes raised after issue.

This article is general information based on official sources available at the date of publication. It is not legal, tax or financial advice. Laws and notices change. Verify with the issuing authority or consult Zatra before acting.

Frequently asked questions

Do I still need an EFD machine if my ERP is integrated as a VFD?

Not for the sales that flow through the integrated system. Each point of sale needs a registered device, so a retail counter that sells for cash outside the ERP still needs its own machine or its own VFD registration. Keep one register of every device and registration, and close any machine that is no longer in use through the supplier and TRA's regional office.

Can a developer connect directly to TRA without an approved supplier?

TRA's suppliers page sets approval requirements for VFD suppliers and lists the companies it has approved. The route for a company that wants to integrate its own system runs through an approved supplier or through TRA's own interface where TRA issues the certificate and registration. Ask the regional office which route applies before writing code; the answer is TRA's, not the developer's.

What happens if the internet drops in the middle of a sale?

The receipt is still issued to the customer at once. The system records the transaction as pending, keeps the original date, time and content, and resends it in order when the connection returns. Nothing is renumbered. The SOP names the person who checks the queue each morning and who writes to the supplier and TRA if a failure lasts beyond twenty-four hours.

How do I correct an invoice that was sent with the wrong amount?

Do not resend the same receipt with corrected figures; TRA treats a resend with the same verification number as a duplicate and ignores it. Raise the correct invoice under a new number and reverse the wrong one with an adjustment note through the fiscal flow, quoting the original. Both appear on EFDMS and in the Z-report, and the VAT return picks up the net figure.

Does the buyer's TIN have to be on every invoice?

The message carries a buyer identity type and number on every receipt, and type 6 exists for a buyer with no identity. A business buyer that intends to claim input tax or deduct the cost needs its nine-digit TIN on the receipt, because the return verifies the code against the claimant. Make the TIN a required field for any customer with a VRN in the customer master.

Is a Zanzibar branch covered by the Mainland integration?

No. Zanzibar VAT is administered by the Zanzibar Revenue Authority through its own Virtual Fiscal Management System at 15 percent, and a Mainland EFDMS registration does not appear there. A group with premises on both sides runs two registrations, two integrations and two reconciliations. Income tax stays a Union matter under TRA, so the fiscal receipt rule for deductions still reaches the islands.

Is there a government fee for registering a VFD?

The Zatra fee register records no TRA charge for the EFDMS entry; the device or service is bought from an approved supplier at market price and the supplier invoices the client directly. The only government amounts in this file are the tax itself, and any penalty or interest after a finding, paid to TRA against a control number and never bundled with NEMBO's or Zatra's fees.

CPA Altho Mwangoa

Chief Financial Officer, Zatra Consultants Limited. Written and checked by CPA Altho Mwangoa, who reviews the sources, the figures and the legal positions before a note is published. NEMBO designs and publishes it.