The sale we will follow
Example Traders in Karachi sells to Sample Retail Store in Lahore. The sale has two lines, each taxed at 18%, the standard rate used in FBR’s own sample.
| Item | Quantity | Unit price (Rs.) | Value excl. tax (Rs.) | Sales tax 18% (Rs.) | Total incl. tax (Rs.) |
|---|---|---|---|---|---|
| Ceramic mug | 100 | 100.00 | 10,000.00 | 1,800.00 | 11,800.00 |
| Packing carton | 50 | 200.00 | 10,000.00 | 1,800.00 | 11,800.00 |
| Invoice total | 20,000.00 | 3,600.00 | 23,600.00 |
Which rate and sale type apply depends on your goods and on FBR’s current notifications. Use the rate that applies to your own products. 18% appears here only to keep the arithmetic easy to follow.
Step 1: have the seller and buyer details ready
Your software needs your own NTN or CNIC, business name, province and address. These are entered once, when the company is set up. For each sale it also needs the buyer’s name, province, address and registration type.
- Registered buyer: enter the buyer’s NTN or CNIC. FBR’s error 0002 asks for a 13-digit registration number, or an NTN of 7 or 9 digits.
- Unregistered buyer: the buyer’s NTN or CNIC is optional, but the registration type must still be set to Unregistered.
- Province: use the province names from FBR’s reference list, such as Sindh or Punjab.
In our example the buyer is registered, so the NTN is entered and the registration type is Registered.
Step 2: build each item line and check the tax
Every line needs an HS code, a description, a rate, a unit of measure, a quantity, the value excluding tax, the sales tax and the sale type. For the first line, the tax maths is:
- Value excluding tax: 100 mugs × Rs. 100.00 = Rs. 10,000.00.
- Sales tax at 18%: Rs. 10,000.00 × 0.18 = Rs. 1,800.00.
- Total including tax: Rs. 10,000.00 + Rs. 1,800.00 = Rs. 11,800.00.
The second line works the same way: 50 cartons × Rs. 200.00 = Rs. 10,000.00, tax Rs. 1,800.00, total Rs. 11,800.00. If the tax sent does not follow from the rate and the value, FBR can reject the invoice. Error 0104, for example, says the calculated percentage of sales tax does not match the rate provided.
The HS code and the unit of measure come from the product record, not from the invoice, which is why clean product data matters. The unit of measure must also suit the HS code (error 0099). See product master data for clean invoices.
Step 3: what your software sends to FBR
When you save the invoice, integrated software turns it into one request. You do not type these fields into FBR; the software fills them from the invoice and your records. For our example, the header fields are:
| What you enter | FBR field | Example value |
|---|---|---|
| Invoice type | invoiceType | Sale Invoice |
| Invoice date | invoiceDate | 2026-11-20 (year-month-day) |
| Your NTN or CNIC | sellerNTNCNIC | your own 7 or 13 digit number |
| Your business name | sellerBusinessName | Example Traders |
| Your province and address | sellerProvince, sellerAddress | Sindh, Karachi |
| Buyer NTN or CNIC | buyerNTNCNIC | the buyer’s registered number |
| Buyer name | buyerBusinessName | Sample Retail Store |
| Buyer province and address | buyerProvince, buyerAddress | Punjab, Lahore |
| Buyer registration type | buyerRegistrationType | Registered |
| Test scenario (sandbox only) | scenarioId | SN001 |
Each line is then added to the same request under items. This is the first line, using FBR’s field names:
{
"hsCode": "(taken from the product record)",
"productDescription": "Ceramic mug",
"rate": "18%",
"uoM": "Numbers, pieces, units",
"quantity": 100,
"valueSalesExcludingST": 10000.00,
"salesTaxApplicable": 1800.00,
"totalValues": 11800.00,
"saleType": "Goods at standard rate (default)"
}FBR’s documentation lists more fields for each line, including two more required ones (fixedNotifiedValueOrRetailPrice and salesTaxWithheldAtSource) and optional ones such as discount and further tax. They are left out above to keep the example short. The full list is on the invoice format page.
While you test, the request goes to FBR’s sandbox address, which ends in _sb. After go-live it goes to the production address. In the sandbox the request also carries a scenarioId, and FBR lists SN001 as goods at the standard rate to registered buyers. See FBR sandbox testing.
Step 4: read FBR’s response
FBR answers in real time. This is the shape of a valid response, taken from the sample in FBR’s technical documentation. The numbers are FBR’s sample, not a real invoice:
{
"invoiceNumber": "7000007DI1747119701593",
"dated": "2025-05-13 12:01:41",
"validationResponse": {
"statusCode": "00",
"status": "Valid",
"error": "",
"invoiceStatuses": [
{
"itemSNo": "1",
"statusCode": "00",
"status": "Valid",
"invoiceNo": "7000007DI1747119701593-1",
"errorCode": "",
"error": ""
}
]
}
}- statusCode 00, Valid: FBR accepted the invoice and issued the invoiceNumber. This is the number to keep and print.
- statusCode 01, Invalid: FBR rejected the invoice. The response carries an errorCode and a message, for example 0052 for an HS code that does not match the sale type. No invoice number is issued, so you correct the invoice and send it again.
- Item statuses: invoiceStatuses holds one entry for each line, so a problem can be traced to a single line. Check the overall status and the item statuses.
In Billora, the sales list shows which invoices are posted and which are not, and the FBR invoice number is kept with the invoice. When FBR rejects one, the message tells the user what to fix.
Step 5: print the invoice
After acceptance, the printed invoice carries FBR’s invoice number, the Digital Invoicing logo and a QR code. FBR’s documentation says the logo and QR code must be printed on each invoice, and it gives the QR code as version 2.0 (25×25), printed at 1.0 × 1.0 inch. The layout is covered in FBR invoice format, QR code and fields.
Five slips that cause rejections on first invoices
- HS code does not match the sale type (0052): fix the product record, not just the one invoice.
- Rate missing or not valid for the sale type (0046): FBR asks for a valid rate as per the selected sale type.
- Buyer number in the wrong format (0002): a registration number of 13 digits, or an NTN of 7 or 9 digits.
- Date in the wrong format (0113): FBR asks for YYYY-MM-DD, for example 2026-11-20.
- Tax that does not match the rate (0104): the tax amount must follow from the rate and the value.
Every code is explained in FBR Digital Invoicing error codes explained.
What changes between the sandbox and live
- Test invoices go to FBR’s sandbox, not to the live system.
- A scenarioId is required in the sandbox only.
- FBR issues the business a security token, valid for 5 years, and whether a request is routed to the sandbox or to production follows the token being used.
A passed sandbox test is practice, not proof that every future invoice will be accepted. The fuller picture is in the sandbox testing guide.
Checklist before your first live invoice
- Your NTN or CNIC, business name, province and address are correct in the company settings.
- Every product has an HS code, a unit of measure that suits it, and the right sale type and rate.
- Your customers have the right registration type and, for registered buyers, a valid NTN or CNIC.
- A sandbox invoice for each kind of sale you make has come back with statusCode 00.
- The printed invoice shows the FBR invoice number, the logo and a readable QR code at the required size.
- Your team knows what to do when an invoice is rejected: read the message, fix the record, send again.
- You have checked FBR’s current notifications for your type of business.
How Billora handles these steps
In Billora you create the invoice in the sales module, and the integrated FBR Digital Invoicing feature builds and sends the request, shows the result and keeps the FBR invoice number with the invoice. Products hold their HS code, unit and rate, so they are selected on each sale instead of being retyped. The Billora team connects your FBR profile and runs the sandbox testing with you. A one-time integration fee of Rs. 15,000 per account applies when your FBR profile is integrated with FBR through the software, and only if you are not already integrated; see the pricing page.
See FBR Digital Invoicing in Billora, the FBR Digital Invoicing guide and the sales module.
Billora is an independent private product and is not affiliated with or endorsed by FBR. This page is an illustration, not legal or tax advice. Check FBR’s current notifications for your business.