Pakistan's Federal Board of Revenue (FBR) has moved sales tax from "file a return at month end" to "report every invoice in real time". If you are a sales-tax-registered business, your invoices now need an FBR-issued number and QR code. This guide explains the rules in plain language and shows how to connect an ERP so compliance happens automatically. Read on for a clear, practical guide to FBR digital invoicing integration.
What is FBR digital invoicing?
FBR digital invoicing is a real-time e-invoicing system operated through PRAL (Pakistan Revenue Automation Limited). When you issue a sales tax invoice, your software sends the invoice data (buyer, items, HS codes, quantities, values, tax rates) to FBR's API. FBR validates it and returns a unique FBR invoice number. That number, plus a QR code, must appear on the invoice you give the customer.
It is different from the older POS integration used by Tier-1 retailers: digital invoicing covers business-to-business and business-to-consumer invoices of registered persons, including manufacturers, importers, distributors and wholesalers.
Who has to comply?
FBR has applied digital invoicing in phases through SROs, starting with corporate and large registered persons and widening to other sales-tax-registered persons. Because deadlines and categories have been revised more than once, always confirm your own status on the latest SRO and on the IRIS portal. As a rule of thumb:
- If you file monthly sales tax returns, plan for digital invoicing.
- If you sell to registered buyers who claim input tax, they will increasingly insist on FBR-validated invoices, because unverified invoices put their input claims at risk.
How the integration works (step by step)
- Register for digital invoicing on IRIS and choose whether you integrate directly or through a licensed integrator.
- Get sandbox credentials. FBR provides a test environment and a set of scenarios (standard rate, reduced rate, exempt, zero-rated, third schedule retail price items, further tax for unregistered buyers, and so on).
- Map your data. Each item needs a correct HS code, unit of measure, sale type and rate. Each customer needs NTN/CNIC and registration status. This mapping is where most projects slow down.
- Pass the scenarios. Submit test invoices for every scenario that applies to your business until FBR marks them successful.
- Whitelist your server IP and request the production token.
- Go live. From now on, every posted invoice is submitted automatically, and the returned FBR number and QR code print on the invoice.
ERP integration vs manual portal entry
| Approach | Good for | Risk |
|---|---|---|
| Manual entry on the portal | A handful of invoices a month | Typing errors, slow, no audit trail in your books |
| Excel upload tools | Short-term stopgap | Data drifts away from accounts |
| Direct ERP integration | Anyone issuing invoices daily | Needs correct item and customer master data |
With direct integration, the invoice is validated before it leaves your system. If FBR rejects it (wrong HS code, missing buyer NTN), the user sees the reason immediately and fixes it, instead of finding out at return time.
What a good integration should handle
- Retry and queue: if FBR's API is down, invoices queue and resend; sales should not stop.
- Credit and debit notes linked to the original FBR invoice number.
- Further tax and extra tax for unregistered buyers, applied automatically from the customer master.
- Third Schedule items taxed on retail price, not sale price.
- A clear log of every request and response for audits.
- Separate sandbox and production settings, so testing never pollutes live data.
Common mistakes
- Using one generic HS code for everything. FBR validates codes against rates.
- Leaving customer registration status blank, which breaks further-tax calculations.
- Printing invoices before the FBR number comes back.
- Treating integration as an IT task only. Your tax adviser should sign off the scenario mapping.
How Sibyl helps
Sibyl Technologies builds FBR digital invoicing into ERPNext and Odoo, the same ERPs we implement for manufacturers, distributors and traders across Pakistan. We map your items and customers, pass the sandbox scenarios with you and keep sales running during the switch. You can try a live ERPNext demo or read our ERP in Pakistan FAQ for the tax questions we hear most.
Further reading on FBR digital invoicing integration
- FBR (Federal Board of Revenue) — official source
- ERPNext documentation — official source
