To begin the FBR Digital Invoice Scenario Testing process, log in to the FBR Iris Portal and navigate to the API Integration → Technical Details section.
At this stage, you’ll be required to provide accurate and verifiable system information, which FBR uses to validate whether your software is compatible with its e-invoicing framework. The following details must be entered carefully:
ERP Software Provider – e.g., ISFConsultant
Software Name – e.g., FBR Digital Invoicing
Software Version—e.g., v1.1.2
⚠️ Important: FBR cross-checks these details with its regulatory standards. Any inconsistency can delay your API approval or cause rejection.
✅ Regulatory Compliance – Ensures your invoicing system meets FBR’s technical standards.
✅ Smooth Onboarding – Correct ERP details allow FBR to match your solution instantly.
✅ Transparency – Identifying your ERP provider builds trust with regulators.
✅ Approval Success – Precise information increases the likelihood of your API credentials being approved on the first attempt.
Always double-check the provider name, software name, and version before submission.
If you’re using an in-house or customized ERP, mention it clearly to avoid mismatches.
Keep a record of what you entered for future audits or troubleshooting.
✅ By completing this step with precision, you lay the foundation for successful scenario testing, real-time API integration, and eventually, seamless e-invoicing in FBR’s production environment.
Digital Invoice (DI) Scenario Testing is not just a technical requirement—it is the foundation for achieving seamless compliance with FBR’s e-invoicing system. By simulating real business transactions in a controlled testing environment, organizations can validate whether their ERP or accounting software integrates correctly with FBR’s API before moving to the production stage.
Ensures Compliance – Verifies that invoices meet FBR’s regulatory and formatting standards, reducing the risk of penalties or rejection.
Prevents Costly Errors – Identifies mismatches, incorrect tax calculations, or data issues early on, before they impact live operations.
Builds Confidence – Provides peace of mind for both accountants and developers that the system will perform reliably in real-time invoicing.
Smooth Go-Live Transition – Minimizes downtime or failures during the official launch of e-invoicing in the production environment.
Enhances Transparency – Strengthens trust with both regulatory authorities and customers by ensuring invoices are accurate and verifiable.
In short, DI Scenario Testing acts as a safety net, ensuring that your invoicing solution is fully compliant, technically sound, and ready for real-world use. Businesses that take this step seriously not only meet FBR’s requirements but also gain a competitive edge by running more efficient, error-free financial processes.
To ensure a smooth start with FBR Digital Invoice (DI) Scenario Testing, your system and team must be fully prepared. Proper groundwork reduces the chances of test failures and keeps your business on track for e-invoicing compliance.
Essential steps before testing:
Valid FBR IRIS / PRAL Credentials – Make sure your login and integration rights are active.
Updated ERP / Software Registration – Confirm that your ERP or POS system is properly declared with FBR.
Sandbox Environment Access – Request API sandbox credentials and test the connection ahead of time.
Technical & Functional Readiness – Involve both your IT staff and finance team for configuration and validation.
Completing these pre-requisites guarantees a hassle-free testing process and prepares your organization for real-time digital invoice compliance.
To validate your FBR Digital Invoice (DI) integration, you’ll need to test with structured JSON payloads. Below is a collection of sample data sets that represent different invoicing scenarios.
Update Company Details
Replace placeholders such as “…”YOUR_NTN
YOUR_BUSINESS_NAME
YOUR_PROVINCE
and “…”YOUR_ADDRESS
with your actual business information.
Set a Valid Invoice Date
Ensure the invoiceDate
field contains a recent or current date in the correct YYYY-MM-DD
format to avoid validation errors.
Use a Unique Reference Number
Provide a new and unique one invoiceRefNo
for each test submission. This prevents duplication issues in the FBR system.
Enter Buyer Identification
For buyerNTN
“or,”buyerCNIC
use either:
A valid test NTN/CNIC shared by the customer for sandbox testing, or
A dummy NTN/CNIC that is accepted by FBR’s sandbox environment.
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN001",
"buyerRegistrationType": "[Registered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN002",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN003",
"buyerRegistrationType": "[Register / Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN004",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN005",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN006",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN007",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN008",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN009",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0010",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0011",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0012",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0013",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0014",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0015",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0016",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0017",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0018",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0019",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0020",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0021",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0022",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0023",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0024",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0025",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0026",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0027",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
{
"invoiceType": "[Sale Invoice]",
"invoiceDate": "2025-08-21",
"sellerBusinessName": "[Seller Company Name]",
"sellerProvince": "[Seller Province Name]",
"sellerNTNCNIC": "[Seller NTN]",
"sellerAddress": "[SellerAddress]",
"buyerNTNCNIC": "[Buyer CNIC No]",
"buyerBusinessName": "[Buyer Company Name]",
"buyerProvince": "[Buyer Province]",
"buyerAddress": "[Buyer Address]",
"invoiceRefNo": "",
"scenarioId": "SN0028",
"buyerRegistrationType": "[Unregistered]",
"items": [
{
"hsCode": "[Hs code]",
"productDescription": "[Product Name]",
"rate": "18%",
"uoM": "[Numbers, pieces, units]",
"quantity": [Any quantity],
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0.0,
"salesTaxApplicable": 180,
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 0,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "[Goods at standard rate (default)]",
"sroItemSerialNo": ""
}
]
}
Symptoms: Submission rejected; parser/validation errors.
Checks:
Missing required fields.
Wrong data types (e.g., string instead of number).
Syntax issues: stray/missing commas, braces, or quotes.
Fix:
Validate with a trusted JSON validator.
Compare your payload field-by-field with FBR’s spec and examples.
Symptoms: 401/403 responses; “invalid token” or “not authorized.”
Checks:
Token expired, copied incorrectly, or wrong API key used.
Header format not per spec.
Fix:
Regenerate the access token.
Send it in the correct header format:
POST /your-endpoint HTTP/1.1 Host: api.example.com Authorization: BearerContent-Type: application/json x-api-key:
Symptoms: Requests blocked despite valid token; access denied from certain servers.
Checks:
Calling server’s public IP not on the FBR/PRAL whitelist.
Fix:
Confirm the exact egress IP your app uses and have it whitelisted with FBR/PRAL.
Re-test from the same IP after the whitelist update propagates.
Symptoms: Business-rule validation failures.
Checks:
Buyer/Seller NTN or CNIC: not registered, malformed, or mistyped.
HS Code invalid/not accepted; item descriptions not matching accepted list.
Tax calculations: wrong rates, rounding, or missing adjustments (e.g., extra duties/regs).
Fix:
Cross-check NTN/CNIC and item details with official records.
Validate HS Codes and descriptions against the approved catalog.
Recalculate taxes per the applicable schedule/SRO and confirm totals/rounding.
Symptoms: Timeouts, intermittent failures.
Checks:
Local connectivity drops or DNS hiccups.
Temporary FBR API downtime.
Fix:
Verify current system status and retry with backoff (e.g., 5s, 15s, 30s).
Log request IDs and timestamps to aid support escalation.
Symptoms: Unfamiliar error messages/codes.
Fix:
Look up the code in the FBR API documentation for its meaning and exact remediation steps.
Capture the full response body and correlate with your last payload change.
✅ JSON is valid and well-typed.
✅ All required fields present (per endpoint spec).
✅ invoiceDate
is current/recent in YYYY-MM-DD
.
✅ invoiceRefNo
is unique for this submission.
✅ Buyer identifiers (NTN/CNIC) are valid for sandbox/production as applicable.
✅ Authorization header carries a fresh token; IP is whitelisted.
✅ HS Codes/Descriptions match the accepted list; tax math verified.
✅ Retries use exponential backoff; errors are logged with context.
Once you’ve successfully completed all sandbox test cases, head over to the “Production Environment” tab. Here, you’ll be able to generate your production token — a mandatory requirement to move into the live environment.
After the production token has been created, configure it as your primary authentication key. From this point forward, all invoices can be submitted directly into the FBR live system.
As live invoicing begins, it is crucial to maintain real-time monitoring of all submissions. Use the FBR dashboard to continuously track, validate, and confirm each invoice to ensure complete accuracy, compliance, and transparency.
At ISF Consultant, we make the process simple — supporting users, developers, and accountants at every stage of their digital invoicing journey.
Would you like me to make it more professional (corporate tone) or more marketing-friendly (catchy & persuasive)?
Smooth, simple, and successful — that’s how our experts help you clear your scenario testing.
We bring the years, global experience, and stamina to guide our clients through new and often disruptive realities.
© ISF Consultant 2022 | All Rights Reserved.