FBR Digital Invoicing API

FBR digital invoicing API: send invoices from your own system

Keep your billing system. eInvoicePro sits between your ERP, POS or own software and FBR. Your developers build the link once, and do not have to rebuild it every time the rules change.

eInvoicePro API documentation for connecting ERP and custom systems to FBR digital invoicing

Trusted across Pakistan

300+ Alliance Partners across Pakistan

Tax advisers, CA firms and law firms who set up FBR invoicing for their clients with eInvoicePro.

M. Umair & Co. Chartered AccountantsGold PartnerM. Umair & Co. Chartered Accountants · Gold Partner
Tax linksTax links
ADEEL GHANI ASSOCIATESADEEL GHANI ASSOCIATES
Mirza Law AssociatesMirza Law Associates
Irfan bilwani & Co.Irfan bilwani & Co.
Abdullah & Co.Abdullah & Co.
HASSAN LAW ASSOCIATES ADVOCATES & TAX CONSULTANTSHASSAN LAW ASSOCIATES ADVOCATES & TAX CONSULTANTS
Nisar Tax ConsultantNisar Tax Consultant
ASHFAQUE & COMPANYASHFAQUE & COMPANY
Saleem Tax ConsultantSaleem Tax Consultant
Moien Khan & CoMoien Khan & Co
Hashaam AssociatesHashaam Associates
Memon Tax ConsultantMemon Tax Consultant
Ledgers & ReconciliationsLedgers & Reconciliations

Alliance Partner Program →

Who it’s for

Made for teams that already have a system

If your invoices live in an ERP, POS or your own software, connect that system. You do not need to replace everything overnight.

Enterprises with ERP

Keep the finance tools you have and add reliable sending to FBR.

Custom billing software

Software houses and in-house teams connect once and serve many clients.

POS & retail chains

Send invoices from the tools your counters already use.

High-volume operations

Send many invoices through the API, not one screen at a time.

Build vs buy

DIY FBR integration vs eInvoicePro API

You can connect to FBR yourself, but the work never ends. Here is how the two compare.

Build it yourself

Build your own FBR connection

  • Months of research, testing and sign-off before you go live
  • Your team handles every FBR format change, failed send and odd invoice
  • Bulk sending and error handling become custom work
  • Every rule change pulls developers away from your own product
eInvoicePro API

Connect through eInvoicePro

  • A clear, documented API made for ERP, POS and billing systems
  • We look after the FBR link; your team matches your invoice data
  • Bulk sending and invoice checks are built into the API
  • FBR’s test system (the sandbox) to try invoices before real customers

API capabilities

What your developers get

The essentials for your tech lead. Full details are in the developer docs.

Send invoices, get clear answers

Send invoices from your system and get back a clear success, or an error that tells you what to fix.

Send in bulk

Send hundreds of invoices in one request. Made for ERP batch runs, not one screen at a time.

Checks before sending

Catch format and tax mistakes before they reach FBR, so fewer live invoices fail.

FBR’s number comes back to you

Get FBR’s invoice number and QR data back in your system, for printing and for your records.

Test first

Try invoices safely in FBR’s test system before you switch to live access.

Works with any system

Works with SAP, Dynamics, Oracle, POS software or any system that can call a REST API.

How it fits

Your system → eInvoicePro → FBR

A simple path: keep your software, connect through eInvoicePro, and stay in line with FBR.

For developers

How the integration works

Enough to judge whether it fits your system. The full reference, formats and every field are in the developer docs.

Getting access

One API key, sent as an Authorization: Bearer or an X-API-Key header. No OAuth sign-in and no token refresh. You also save each seller’s own FBR token once, against their NTN or CNIC. Test and live use the same address and key; one setting on the request switches between them.

Check before you send

Check a single invoice with FBR without sending it, without creating a job and without using your quota; FBR’s reply comes back word for word. Lookups stop the most common rejections: which units FBR accepts for an HS code, and which rate and SRO fields go with a sale type.

Send and track

Each submission is a job of 1 to 1,000 invoices, through the same endpoint whether you send one or a thousand. Send a unique key with it, so a dropped connection can never send an invoice twice. Then check the job’s progress, or subscribe to webhooks (instant messages) for invoice-submitted, invoice-failed and job-completed events. You can pause, resume or cancel a running batch.

When FBR rejects an invoice

Some invoices failing is normal; one bad row never stops the batch. Each failed row shows why it failed, and you can see exactly what was sent and FBR’s full reply, so you fix the real problem. Resending puts just that invoice back in line, not the whole job.

Before you integrate

You send invoices in FBR’s own digital invoicing format, unchanged. We don’t invent our own, so any matching work you have done carries over. Test invoices carry an FBR test case code (SN001–SN028); live invoices don’t. Live invoices count against your plan’s invoice quota, and if you are running short you are told before anything reaches FBR.

Read the API documentation →

FBR API documentation

FBR's digital invoicing API, explained

FBR publishes a technical guide for its digital invoicing API. This is what it covers, in plain words, and where eInvoicePro saves your team the work.

Two invoice calls

One call sends an invoice to FBR and one only checks it. Each has a test version, and both take the invoice as JSON.

Reference lists

Provinces, document types, HS codes, units of measure, transaction types, sale type rates, SRO schedules and SRO items. Every invoice must use FBR's exact values from these lists.

A token for each seller

FBR issues each registration its own security token through IRIS, one for sandbox and one for production. The production token is valid for five years.

Sandbox test cases

Before going live, each business passes the test cases FBR gives it, from SN001 to SN028. The live token is issued automatically once they pass.

What FBR sends back

An accepted invoice gets FBR's invoice number. A rejected one comes back with an error code and a message for each line.

Where eInvoicePro helps

Our API takes FBR’s own invoice format, picks the right token for each seller, checks invoices before they go and keeps every FBR reply.

FBR sandbox scenario list (SN001 to SN028)

Scenario What it covers Sale type
SN001 Goods at standard rate to registered buyers Goods at Standard Rate (default)
SN002 Goods at standard rate to unregistered buyers Goods at Standard Rate (default)
SN003 Sale of Steel (Melted and Re-Rolled) Steel Melting and Re-rolling
SN004 Sale by Ship Breakers Ship breaking
SN005 Reduced rate sale Goods at Reduced Rate
SN006 Exempt goods sale Exempt Goods
SN007 Zero rated sale Goods at zero-rate
SN008 Sale of 3rd schedule goods 3rd Schedule Goods
SN009 Cotton Spinners purchase from Cotton Ginners Cotton Ginners
SN010 Telecom services rendered or provided Telecommunication services
SN011 Toll manufacturing sale by Steel sector Toll Manufacturing
SN012 Sale of Petroleum products Petroleum Products
SN013 Electricity Supply to Retailers Electricity Supply to Retailers
SN014 Sale of Gas to CNG stations Gas to CNG stations
SN015 Sale of mobile phones Mobile Phones
SN016 Processing / Conversion of Goods Processing/ Conversion of Goods
SN017 Sale of Goods where FED is charged in ST mode Goods (FED in ST Mode)
SN018 Services rendered or provided where FED is charged in ST mode Services (FED in ST Mode)
SN019 Services rendered or provided Services
SN020 Sale of Electric Vehicles Electric Vehicle
SN021 Sale of Cement /Concrete Block Cement /Concrete Block
SN022 Sale of Potassium Chlorate Potassium Chlorate
SN023 Sale of CNG CNG Sales
SN024 Goods sold that are listed in SRO 297(I)/2023 Goods as per SRO.297(I)/2023
SN025 Drugs sold at fixed ST rate under serial 81 of Eighth Schedule Table 1 Non-Adjustable Supplies
SN026 Sale to End Consumer by retailers Goods at Standard Rate (default)
SN027 Sale to End Consumer by retailers 3rd Schedule Goods
SN028 Sale to End Consumer by retailers Goods at Reduced Rate

No business gets all 28. FBR gives you the test cases that match what you sell, and a service provider passes just two. Read the sandbox test case checklist →

Going live

From testing to live

A four-week plan for ERP and billing teams.

  1. Week 1

    Match your invoice data

    List the fields your ERP or billing system already has, and what must be matched to FBR's format.

  2. Week 2–3

    Connect to the test system

    Your developers connect to the test system and check sample invoices. Nothing real goes to FBR.

  3. Week 4

    Run side by side

    Send test invoices next to your normal process, and check the results match.

  4. Go live

    Go live

    Switch on your live login details and send real customer invoices through the API, in bulk too when needed.

Getting started

From first call to live connection

Simple steps for business teams. Your tech team can open the docs whenever they need more.

Share your setup

Tell us whether you use an ERP, POS or your own billing system, and how many invoices you make.

See the fit

We show you how eInvoicePro sits between your system and FBR.

Connect and test

Your team connects through our API and tests safely before going live.

Go live with support

Send real invoices, in bulk too when you need it.

FAQ

Frequently Asked Questions

Answers for business and IT heads choosing how to connect to FBR.

Still have a question?

Ask our team on WhatsApp. Tell us what you sell and where, and we will point you to the right setup.

Ask on WhatsApp
What is the eInvoicePro FBR digital invoicing API?

It lets ERP, POS and billing systems send invoices to FBR. Your software sends each invoice to eInvoicePro, and we handle the FBR side: the checks, the sending and FBR’s replies. Your team never has to build that part.

Why not connect my system straight to FBR?

A direct link to FBR means a long setup, FBR’s own testing, and constant upkeep every time a rule changes. eInvoicePro is built for real business systems, so your team goes live sooner, with fewer surprises.

Does the API support bulk invoicing?

Yes. Busy businesses and software teams can send many invoices at once through the API, not just one at a time on screen.

Who is the API for?

Companies with an ERP or their own billing system, software houses building for clients in Pakistan, and any team that needs invoices to reach FBR reliably without building that part themselves.

How do I sign in to the API?

Create an API key in the developer portal and send it with every request, either as an Authorization: Bearer header or as an X-API-Key header. One of them is enough. Every endpoint needs the key, including the lookups.

Can I test before going live?

Yes. Tests use the same address and the same API key as live; you switch by setting isSandbox on the request. Test jobs don’t use up your quota, and each test invoice carries its FBR scenario number (SN001 to SN028). You can also check a single invoice with FBR without sending it.

What are FBR's sandbox scenarios?

Test cases numbered SN001 to SN028, one for each kind of sale, such as standard rate, reduced rate, exempt or third schedule goods. FBR gives you the ones that match your business, and issues your live token automatically once they pass. See the full list.

What happens when FBR rejects an invoice?

The rest of the batch carries on; one bad invoice doesn’t stop the job. The failed invoice shows why it failed, and you can see exactly what was sent and FBR’s full reply for it. Once the job ends, you resend just that invoice, not the whole batch.

How many invoices can I submit at once?

A job takes from 1 to 1,000 invoices, through the same endpoint. One batch can include invoices from different sellers: each invoice carries its seller’s NTN or CNIC, and we use the right FBR token for each one.

How do you store our clients’ FBR tokens?

Encrypted, and they can never be read back. You can save or replace a token, but the API only ever tells you whether a test token and a live token exist. Webhook messages are signed, and the signing secret is shown once, when you add the webhook.

Where can developers find the technical details?

The eInvoicePro API docs cover every endpoint and field and how to set up. Business teams can book a demo for a guided walk-through first.

Ready to connect your system to FBR?

Start a free trial in our sandbox, or open the API docs for your builders.

Chat with us