FBR, PRA and SRB · FBR Digital Invoicing
FBR Digital Invoicing: every posted invoice reported to FBR
Daftiq reports each posted sales invoice to FBR Digital Invoicing as soon as you post it. Each invoice is first validated with FBR and then posted, through PRAL with your IRIS security token or through another licensed integrator. When FBR accepts it, the FBR invoice number, a QR code and the FBR Digital Invoicing mark print on the invoice.
Last updated:
FBR, PRA and SRB · Module page: Tax authorities (FBR, PRA, SRB)
- Reports
- Posted sales invoices and approved credit notes
- Route
- PRAL (FBR) or another licensed integrator
- Product codes
- HS code, unit of measure and sale type
- Modes
- Simulate, Sandbox (with scenario) and Live
- Printed
- FBR Invoice No., 1 x 1 inch QR, FBR Digital Invoicing mark
What is FBR Digital Invoicing in Daftiq?
FBR Digital Invoicing is how sales tax registered businesses issue invoices that FBR records at the moment of sale. In Daftiq it is one of the channels of the tax authorities module. You add an FBR Digital Invoicing channel, and from then on every sales invoice you post in that branch is sent to FBR without any extra clicks.
Daftiq follows FBR's published Digital Invoicing API. The invoice is checked with FBR's validate service first, and only a valid invoice is posted. FBR accepts it only when the invoice and every line are valid, so you never get a number for an invoice with a bad line.
What do you need before you connect to FBR Digital Invoicing?
- Your sales tax registration, your NTN or CNIC, and your province. Daftiq does not register your business with FBR.
- A security token for Digital Invoicing, issued to your business through IRIS when you go through PRAL. If you use another licensed integrator, the post endpoint, the optional validate endpoint and the token that integrator gives you.
- The FBR codes for what you sell: HS code, unit of measure (UoM) and sale type for each product. A product without its own code uses the channel default.
- Your customers' NTN or CNIC where they are registered. A buyer with a number is sent as Registered, anyone else as Unregistered, and a sale without a customer name goes as a walk-in customer.
How do you set up FBR Digital Invoicing in Daftiq?
- Open Tax authorities (FBR, PRA, SRB) in the Accounting menu and click Add channel.
- Choose FBR Digital Invoicing as the authority, give the channel a name, pick the branch (or All branches) and tick Sales invoices.
- Pick the Integrator: PRAL (FBR) uses FBR's published endpoints; for any other licensed integrator, enter its post endpoint and token.
- Enter the Security token, the Seller NTN / CNIC and the Seller province. Business name and seller address can stay blank to use your company details.
- Set the defaults: default HS code, default unit of measure and default sale type, which Daftiq uses for products that have no code of their own.
- In Product tax codes, search your products and fill in HS code (FBR DI), UoM (FBR DI) and Sale type (FBR DI), plus SRO schedule and SRO item no. where they apply. With a PRAL channel, Load FBR lists fetches FBR's own lists of units of measure and sale types to pick from. Click Save codes.
- Start in Sandbox mode. The Sandbox scenario fills itself (SN001 for a registered buyer, SN002 for an unregistered one) unless you choose one. Post a few test invoices and check that each one shows Sent with an FBR number.
- Switch the channel to Live. From the next posted invoice, real FBR numbers are issued.
Simulate mode sends nothing to FBR and gives a sample number, so you can train staff and check your invoice print first. Sandbox and Live need the token, and Live needs the seller NTN and province.
What happens when FBR refuses an invoice or does not answer?
If FBR refuses the data, for example a wrong HS code or a missing unit, the submission is marked Failed at once with FBR's own message, including which item number is wrong. Waiting would not fix it, so Daftiq does not keep retrying. Correct the product code and click Resend: Daftiq builds the invoice again from the document, so the fix goes with it.
If FBR does not answer or is busy, your invoice is still posted in Daftiq. The submission waits as Pending and Daftiq tries again on its own, with longer gaps each time. See submissions and retries for the full list and the Resend button.
How are sales returns reported to FBR Digital Invoicing?
A sales return becomes a credit note in Accounting. When the credit note is approved, it goes to the same channel its invoice was reported to, against the FBR number of the original invoice. FBR's Digital Invoicing API has no credit note type, so Daftiq sends it as a Debit Note against that number. Check this with FBR or your integrator on the sandbox before you go live.
What comes before and after reporting an invoice?
- Before: a quotation or sales order becomes a sales invoice. Drafts are never reported; posting is the moment Daftiq sends it.
- Reporting: the invoice is validated and posted to FBR, and its status shows in the sales invoice list.
- Printing: once FBR accepts it, the FBR invoice number and QR code print on the invoice PDF and print.
- Payment: the customer pays, and the customer payment closes the invoice.
- Month end: the sales tax summary compares the tax FBR accepted with the tax in your books, and Accounting prepares the sales tax return data.
Frequently asked questions
Can I use an integrator other than PRAL?
Yes. Pick your licensed integrator in the channel, or Other licensed integrator, and enter the post endpoint and token it gave you. FBR's reference lists (Load FBR lists) work only through PRAL, because other integrators do not publish theirs.
Does Daftiq register my business for Digital Invoicing?
No. You register with FBR and get your token yourself. Daftiq uses the credentials you enter, and keeps the token encrypted.
Are POS sales sent to FBR Digital Invoicing?
A channel reports the documents you tick: sales invoices, POS sales or both. Tier-1 retail counters usually report through FBR POS integration instead.
What if I start reporting in the middle of the month?
Click Report this month's invoices on the Tax authorities page. Daftiq queues every posted invoice since the 1st that was never reported and sends them in the background within about 10 minutes.
Can I test without sending real invoices?
Yes. Simulate sends nothing, and Sandbox sends to FBR's test system with a scenario. Test numbers are marked as test numbers on every print so nobody takes them for real ones.
In this group: FBR, PRA and SRB
Related guides
Connect your invoices to FBR
Get your Digital Invoicing token, add an FBR Digital Invoicing channel, give your products their HS codes and test in Sandbox. See the tax authorities module and plans.