For over 15 years, AlgosDen has helped businesses implement ERP systems, build custom software and automate their work with AI.

Gallery

Contacts

Office #30, 2nd Floor, Bamzai Arcade, MDA Chowk, Multan, Pakistan

info@algosden.com

E-Invoicing & Compliance ERP Systems
FBR digital invoicing direct integration with ERP and custom software

FBR Digital Invoicing Integration for ERP and Custom Software (2026 Guide)

Since December 2025, every sales tax registered business in Pakistan must issue invoices through FBR digital invoicing. For most companies the hard part is not the law. It is connecting their ERP or custom software to FBR so that every invoice gets an FBR number and QR code automatically. This FBR digital invoicing integration guide explains the 2026 rules, penalties, the data FBR needs and how the integration is built in Dynamics 365, SAP, NetSuite, ERPNext, Dynamics GP and custom software, with diagrams.

Quick answer: FBR digital invoicing requires sales tax registered persons in Pakistan to send each sales tax invoice to FBR in real time directly through FBR’s Digital Invoicing API. FBR returns a unique invoice number that must be printed on the invoice with a QR code and the FBR logo. Your ERP needs a connector that maps invoice data, calls the API when you post, stores the FBR number, prints the QR code and retries failures. Invoices can only be corrected within 72 hours, and businesses that are not integrated face penalties starting at Rs 500,000.

In this guide:

What is FBR digital invoicing?

FBR digital invoicing (also called FBR e-invoicing) requires sales tax registered businesses in Pakistan to report every sales tax invoice to the Federal Board of Revenue in real time. The rules sit in Chapter XIV of the Sales Tax Rules, 2006, rewritten by SRO 69(I)/2025 in January 2025.

Your invoicing system, whether ERP, POS or custom software, connects directly to FBR’s Digital Invoicing API using a secure token issued through IRIS. For every invoice, FBR returns a unique FBR invoice number. The invoice you give your customer must carry that number, a QR code generated from it and the FBR Digital Invoicing logo.

Who must comply, and where things stand in 2026

Digital invoicing is no longer a future requirement. The phased rollout for sales tax registered persons ended in December 2025, and FBR has been enforcing it since. Here is how the rules developed:

DateWhat changed
29 Jan 2025SRO 69(I)/2025 replaces Chapter XIV: licensing, electronic invoices, QR codes and integration rules
1 Aug 2025SRO 1413(I)/2025 obliges all sales tax registered persons to integrate their invoicing systems with FBR
Sep 2025SRO 1852(I)/2025 sets staggered registration, testing and go-live deadlines from 15 Oct to 31 Dec 2025
Jan 2026FBR starts penalising businesses that missed their deadline
30 Mar 2026STGO 01 of 2026 simplifies integration rules; invoice edits limited to 72 hours
1 Jul 2026Higher sales tax penalties targeting fake invoices, unmatched input tax and digital non-compliance
29 Sep 2026SRO 1666(I)/2026 and 1667(I)/2026 extend e-invoicing to federal excise duty and Islamabad services tax

If your business is sales tax registered and still issues invoices outside the FBR system, you are already exposed. If you are integrated for sales tax, you do not need a separate integration for federal excise or ICT services tax. You do need to add the extra excise fields to your invoice data where they apply.

Penalties and business risks

  • Fines for not integrating: FBR field offices have issued notices of Rs 500,000 for the first default, rising to Rs 1 million, Rs 2 million and Rs 3 million for later defaults.
  • Your customers lose input tax: invoices issued outside the digital invoicing system are treated as invalid, so registered buyers cannot claim input tax on them. That puts your sales at risk, not just your compliance.
  • Tougher rules since July 2026: higher penalties for fake or “flying” invoices and for input tax claims that do not match the supplier’s declared output tax. Business premises can also be sealed in serious cases.
  • No back-dated fixes: invoices can only be corrected within 72 hours. Errors found at month-end need Commissioner approval.

How FBR digital invoicing works

FBR digital invoicing integration diagram: ERP connecting directly to the FBR Digital Invoicing API
The end-to-end flow: from posting an invoice in your ERP to a QR-coded invoice your buyer can verify.
  1. Post the invoice in your ERP or POS as usual.
  2. Map and validate: the connector inside your ERP builds the invoice payload (seller, buyer, items, HS codes, tax) and checks it before sending.
  3. Send directly to FBR through the Digital Invoicing API using a secure token from IRIS. You test in the sandbox first, then switch to production.
  4. FBR validates the data against its rules and registration records.
  5. FBR returns a unique invoice number, or error codes if something is wrong.
  6. Save and print: the ERP stores the FBR number on the invoice and prints it with the QR code and logo.
  7. The buyer verifies the invoice and it flows into their sales tax return for input tax.

What data an FBR invoice needs

The exact payload is defined in FBR’s Digital Invoicing technical specification, but in practice every integration has to supply these groups of data. Missing or wrong master data is the number one reason invoices are rejected.

Data groupTypical fieldsWhere it comes from in your ERP
SellerNTN/STRN, business name, province, addressCompany setup
BuyerNTN or CNIC, name, registration type (registered/unregistered), provinceCustomer master
Invoice headerInvoice type (sale invoice or debit note), date, your reference numberSales invoice / credit note
Line itemsHS code, description, quantity, unit of measure, value excluding taxItem master and invoice lines
TaxSale type, rate, sales tax, further tax, extra tax, withheld tax, discountsTax setup / posting groups
Special casesSRO / schedule number and item serial for reduced or exempt rates; federal excise fields where applicableTax codes and item setup
FBR responseFBR invoice number, status, error codes, date and timeSaved back on the posted invoice

Direct integration with FBR (no middleman)

The cleanest setup is a connector built inside your ERP that talks directly to FBR’s Digital Invoicing API. You enable Digital Invoicing in IRIS, receive a sandbox token, pass FBR’s test scenarios and then switch to a production token. Every invoice goes straight from your ERP to FBR and back, with no extra platform in between.

  • No third-party subscription or per-invoice fees for a separate platform.
  • Faster troubleshooting: errors show up in your ERP, next to the invoice that caused them.
  • Fits your process: the connector follows your posting flow, number series, reports and customizations.
  • Your data stays in your ERP: FBR numbers, statuses and logs are stored on the posted documents.
Direct ERP connectorSeparate middleware platform
Where it runsInside your ERP or alongside itAn external system you also have to manage
Who sees errorsYour users, on the invoiceUsually someone checking another portal
CustomizationsBuilt for your setupLimited to what the platform supports
Ongoing costSupport onlySubscription and usage fees

Note: FBR’s Digital Invoicing API is operated for FBR by PRAL, its IT company. Your connector uses that official API directly.

How FBR digital invoicing integration works in each ERP

How FBR integration is built in Dynamics 365 F&O, Business Central, GP, SAP, NetSuite, ERPNext and custom software
One FBR API, a different build for each ERP. A shared connector handles mapping, logging and retries, and talks directly to FBR.

Microsoft Dynamics 365 Finance & Operations

In F&O, the integration is usually an X++ extension triggered when a customer invoice or free-text invoice is posted, or an Electronic Reporting configuration that builds the payload. A batch job retries failed submissions, and the FBR number is stored on the invoice journal. The SSRS invoice report is extended to print the FBR number, QR code and logo. Multi-entity setups need one configuration per legal entity, each with its own token. Our Dynamics 365 F&O developers build this as a clean, upgrade-safe extension.

Dynamics 365 Business Central

In Business Central, an AL extension subscribes to the posting events for sales invoices and credit memos, calls the API with HttpClient and stores the response on the posted document. The job queue resends anything that failed. Because it is an extension, it stays upgrade-safe for Business Central online, and the report layout is extended for the QR code. See our Business Central developers for AL extension work.

Microsoft Dynamics GP

Dynamics GP has no modern API framework, so the usual approach is a small middleware service. It reads posted SOP invoices and returns from SQL, sends them to FBR and writes the FBR number back to GP. The invoice form, in Report Writer or SSRS, is changed to print the QR code. Users get a simple window to see failed invoices and resend them. Our Dynamics GP consultants handle both the middleware and the report changes.

SAP S/4HANA and SAP Business One

In SAP S/4HANA, billing documents trigger an output or ABAP enhancement that calls the API, either directly or through SAP BTP Integration Suite. The FBR number is stored on the billing document and printed on the invoice form. In SAP Business One, an add-on built on the Service Layer or DI API sends A/R invoices and credit memos, saves the FBR number in a user-defined field and prints the QR code on the Crystal Reports layout. We provide SAP S/4HANA and ABAP consultants and SAP Business One consultants for both builds.

Oracle NetSuite

In NetSuite, a SuiteScript 2.x user event or Map/Reduce script sends invoices and credit memos through the N/https module. Custom fields store the FBR number and status, and the Advanced PDF/HTML template prints the QR code. Saved searches give finance a live list of pending and failed invoices.

ERPNext and custom software

In ERPNext, a custom Frappe app hooks into the Sales Invoice on_submit event, calls the API and adds the FBR number and QR code to the print format. For custom software built in .NET, Node.js, Python or PHP, we add an FBR service with a queue so that invoicing never stops when the network is slow, plus the QR on your invoice PDF. Our custom software team can add this to any in-house system.

FBR integration roadmap

Six-step FBR e-invoicing integration roadmap from assessment to go-live
From gap assessment to live, monitored digital invoices.
  1. Gap assessment: list every invoice type (sales, debit/credit notes, exports, exempt and reduced-rate sales) and check master data.
  2. Register: enable Digital Invoicing in IRIS and get your sandbox API token.
  3. Build and map: develop the ERP connector, the payload mapping, QR printing and error handling.
  4. Sandbox testing: run every sale type and scenario FBR requires until all pass.
  5. Go live: switch to the production token, issue the first live invoices and train users.
  6. Monitor: watch the failed-invoice queue daily, fix errors within 72 hours and reconcile with your sales tax return.

Common mistakes to avoid

  • Wrong or missing buyer NTN/STRN: clean the customer master before go-live.
  • Missing HS codes or units of measure on items.
  • Reduced-rate or exempt sales without the SRO / schedule reference.
  • Invoices posted when FBR is unreachable and never resent. You need a retry queue and alerts.
  • Fixing errors after 72 hours. Build a daily review so problems are caught early.
  • Testing only simple invoices. Test credit notes, discounts, multiple tax types and every branch or province.

FBR digital invoicing readiness checklist

  • ☐ Digital Invoicing enabled in IRIS; sandbox token issued
  • ☐ Sandbox and production tokens stored securely
  • ☐ Customer NTN/CNIC/STRN and registration types verified
  • ☐ HS codes, units of measure and tax rates set on every item
  • ☐ All invoice types mapped, including debit and credit notes
  • ☐ FBR number, QR code and logo printing on invoices
  • ☐ Retry queue and failed-invoice report in place
  • ☐ Process for corrections within 72 hours
  • ☐ Federal excise / ICT services fields added where they apply

How AlgosDen can help

AlgosDen builds and supports the ERP side of FBR digital invoicing for Dynamics 365 F&O, Business Central, Dynamics GP, SAP S/4HANA, SAP Business One, Oracle NetSuite, ERPNext and custom software, connecting your system directly to FBR’s Digital Invoicing API. Our team brings 15+ years of ERP experience, so the connector fits your posting flow, reports and customizations. We also integrate ERPs with UAE e-invoicing and Saudi ZATCA. See our ERP services, hire an ERP developer, or tell us about your system.

Frequently asked questions

What is FBR digital invoicing?

It is Pakistan’s real-time electronic invoicing system for sales tax. A registered person’s ERP, POS or invoicing software sends each sales tax invoice directly to FBR’s Digital Invoicing API. FBR validates it and returns a unique FBR invoice number, which is printed on the invoice together with a QR code and the FBR Digital Invoicing logo.

Who must integrate with FBR digital invoicing?

All sales tax registered persons were brought into scope through SRO 1413(I)/2025 and the phased deadlines of SRO 1852(I)/2025, which ended on 31 December 2025. From 29 September 2026 the same framework also covers federal excise duty and Islamabad (ICT) services tax.

Can my ERP connect directly to FBR?

Yes. Your ERP or software connects directly to FBR’s Digital Invoicing API using a token issued through IRIS. You test in the sandbox first, then switch to production. The connector lives inside your ERP, so no separate middleware platform is needed.

What is the penalty for not integrating?

FBR field offices have issued notices of Rs 500,000 for the first default, rising to Rs 1 million, Rs 2 million and Rs 3 million for repeat defaults. Invoices issued outside the system can also cost your buyers their input tax claims. Penalties were tightened further from 1 July 2026.

Can I cancel or edit an FBR invoice?

Yes, but only within 72 hours of generation and only for a bona fide mistake, through FBR’s system. After 72 hours you need prior approval from the concerned Commissioner Inland Revenue (STGO 01 of 2026).

Can FBR digital invoicing be integrated with Dynamics 365, SAP, NetSuite or ERPNext?

Yes. The FBR side is a single API, so any ERP can connect. The work is building the connector inside the ERP: mapping invoice data, calling the API on posting, storing the FBR number, printing the QR code and handling errors. Dynamics 365 F&O, Business Central, Dynamics GP, SAP S/4HANA, SAP Business One, Oracle NetSuite, ERPNext and custom software are all supported this way.

Sources

This article reflects FBR notifications and published reports as of December 2026. It is general information, not tax or legal advice. Always confirm your obligations with FBR or your tax adviser.

Author

algosdenAdmin