April 2026
How to Integrate with FBR PRAL API in Pakistan
FBR's PRAL API is the official interface for submitting invoice data to Pakistan's Federal Board of Revenue. Here is what you need to know about integration — whether you are a developer or a business owner exploring options.
What is the FBR PRAL API?
PRAL (Pakistan Revenue Automation Ltd) is the technology subsidiary of FBR. Their API is the official channel through which invoice data is submitted to FBR's systems. Every FBR-integrated invoicing solution in Pakistan uses this API.
Two Paths to FBR Integration
Path 1: Use Pre-Integrated Software (Recommended)
The easiest and most reliable way to integrate with FBR is to use software that is already integrated — like DigitalAccounts.pk. You create invoices in the software, and FBR submission happens automatically. No development required.
Path 2: Direct API Integration
If you have existing ERP or custom software, you can integrate directly with the PRAL API. This requires:
- Obtaining FBR API credentials (via the IRIS portal)
- Understanding the required invoice data schema
- Implementing HTTPS POST requests to PRAL endpoints
- Handling authentication tokens
- Parsing FBR responses and IRN storage
- Building error handling and retry logic
Key PRAL API Requirements
Every invoice submission must include:
- - Seller NTN and STRN
- - Buyer NTN (or CNIC for unregistered buyers)
- - Invoice date, number, and type
- - Line item descriptions, quantities, unit prices
- - Applicable tax amounts (GST, Sales Tax)
- - Invoice total
Why Most Businesses Use Pre-Integrated Software
Direct PRAL API integration requires significant development effort and ongoing maintenance as FBR updates its API. For most businesses, using a certified FBR software partner like DigitalAccounts.pk is faster, more reliable, and more cost-effective.