How FBR returns errors
FBR’s response has a status code, 00 for valid and 01 for invalid, plus an error code and an error message when something is wrong. The document shows two shapes of invalid response. In the first, the whole invoice is rejected and the error code sits at the top level, for example 0052. In the second, the invoice-level status is 00 but an item inside it has status 01 and its own error code, for example 0046. The item number tells you which line to fix.
Separately, the document lists three HTTP status codes: 200 for OK, 401 for unauthorised and 500 for an internal server error, for which you contact the administrator.
This guide summarises the sales error code table in FBR’s technical documentation for Digital Invoicing (version 1.12, issued by PRAL). It is general information, not legal or tax advice. The table is updated from time to time, so read FBR’s technical documentation for the current list and exact wording. Billora is an independent private product and is not affiliated with or endorsed by FBR. For how errors show up during testing, see FBR Digital Invoicing sandbox testing.
The most common codes
- 0052: the HS code does not match the sale type. Use an HS code that is valid for the sale type you selected.
- 0046: the rate is empty. Provide a valid rate for the selected sale type.
- 0002: the buyer’s registration number or NTN is not in the right format. FBR’s message asks for a 13-digit registration number or an NTN of 7 or 9 digits.
- 0005 and 0113: the date is not in the right format. Use year-month-day, for example 2025-05-25.
- 0099: the unit of measure is not valid for the HS code. Use the unit that goes with the HS code.
- 0104: the sales tax does not match the rate. The calculation must agree with the rate you provided.
Seller and buyer detail errors
- 0001 and 0082: the seller is not registered for sales tax. Provide a valid registration number or NTN.
- 0108: the seller’s registration number or NTN is not valid.
- 0083: the seller registration number does not match. Provide the correct seller registration number.
- 0009: the buyer’s registration number is empty. Provide it.
- 0010: the buyer name is empty. Provide a valid buyer name.
- 0012 and 0053: the buyer registration type is empty or invalid. Use a valid type, registered or unregistered.
- 0106: the buyer is not registered for sales tax. Provide a valid registration number or NTN.
- 0107: the buyer registration number does not match. Provide the correct one.
- 0058: self-invoicing is not allowed. The buyer and seller registration numbers are the same.
- 0073: the seller’s province of sale origination is empty. Provide it.
- 0074: the destination of supply is empty. Provide it.
These come from customer and company master data. Fix them once in the record and every later invoice is fine.
Invoice header errors
- 0003 and 0011: the invoice type is empty or not valid. Provide a valid invoice type.
- 0007 and 0109: the invoice type does not suit the registration number or is not selected properly. Select the proper invoice type.
- 0041: the invoice number is empty. Provide an invoice number.
- 0042: the invoice date is empty. Provide it.
- 0043: the invoice date is not valid. Provide a valid date.
- 0088: the invoice number is not valid. FBR’s message asks for an alphanumeric invoice number, with a hyphen allowed between alphanumeric parts, for example Inv-001.
Item and sale type errors
- 0013: the sale type is empty. Provide a valid sale type.
- 0019 and 0044: the HS code is empty. Provide the HS code.
- 0020: the rate field is empty. Provide the rate.
- 0021: the value of sales excluding sales tax, or the quantity, is empty. Provide it.
- 0077: the SRO or schedule number is empty. Provide a valid one.
- 0078: the item serial number is empty. Provide it.
- 0096: for this HS code only the kWh unit of measure is allowed.
- 0097: the unit of measure must be KG.
- 0098: the quantity or electricity units are empty. Provide them.
- 0090: the fixed or notified value, or the retail price, is empty. Provide it.
- 0300: a decimal value is not valid in one of the item fields, such as discount, total value, FED payable, extra tax, further tax, sales tax withheld or quantity. The message names the field and item number.
See product master data for clean invoices for how to keep HS codes, units and rates consistent, and FBR Digital Invoicing scenarios explained for sale types.
Tax amount errors
- 0018: the sales tax or FED in sales tax mode is empty. Provide it.
- 0022 and 0024: the sales tax withheld at source, or the sales tax withheld, is empty. Provide it, even if it is zero.
- 0023 and 0031: the sales tax is empty. Provide it.
- 0008: sales tax withheld at source must be either zero or equal to the sales tax (or FED in sales tax mode).
- 0079: if the sales value excluding sales tax is above the limit in FBR’s message, which the document gives as 20,000, the 5% rate is not allowed.
- 0080: further tax is empty. Provide it.
- 0081: “input credit not allowed” is empty. Provide it.
- 0089: FED charged is empty. Provide it.
- 0095: extra tax is empty. Provide it.
- 0091: extra tax must be empty for this invoice.
- 0102, 0103, 0104 and 0105: a calculated tax does not match, whether under the third schedule formula, for potassium chlorate, as a percentage of the rate or for the quantity. Recalculate it as the message describes.
Debit note and credit note errors
- 0026: the reference invoice number is required for a debit or credit note.
- 0027: a reason is required for a debit or credit note.
- 0028: the reason is “Others”, so remarks are required.
- 0029 and 0035: the note date must be equal to or later than the original invoice date.
- 0034: a debit or credit note can only be added within 180 days of the original invoice date.
- 0036: the value of sale on a credit note must be less than or equal to the value of sale on the original invoice.
- 0037: the sales tax withheld on a credit note must be less than or equal to the original.
- 0057: the reference invoice does not exist. Provide a valid reference invoice number.
- 0064: a credit note has already been added against this invoice.
- 0067: the sales tax on a debit note is greater than on the original invoice.
- 0068: the sales tax on a credit note is less than the original invoice’s sales tax at the rate.
- 0071: entry of a credit note against this invoice is not allowed. The message says it is allowed for specific users only.
See credit notes, debit notes and sales returns explained for the accounting side.
Sector and withholding errors
Some codes apply only to particular sale types or sectors. They matter if you sell in one of those areas.
- 0030: the unregistered distributor type is not allowed before the system cut-off date.
- 0032, 0039 and 0070: sales tax withheld (STWH) invoices have their own rules. They can only be created by government or FTN holders, they must match the sale invoice for registered users, and they cannot be created for unregistered buyers.
- 0050: for the “cotton ginners” sale type, sales tax withheld must be equal to the sales tax or zero.
- 0100: the cotton ginners sale type is allowed against registered buyers only.
- 0056: the buyer does not exist in the steel sector.
- 0101: use the toll manufacturing sale type for the steel sector.
- 0085: the total value of sales is required, in the case of PFAD only.
- 0086: the message says you are not an EFS licence holder who has imported compressor scrap in the last 12 months.
- 0087: petroleum levy rates are not configured properly.
- 0092: a valid sale type is required.
- 0093: the selected sale type is not allowed for a manufacturer.
Access errors
- 0401: the seller’s NTN or CNIC does not have a valid or authorised access token. FBR’s message says the number must be 13 digits (CNIC) or 7 digits (NTN) and the token must exist against it.
- 0402: the same problem, for the buyer’s NTN or CNIC.
These are different from the HTTP 401 status, which means the request was unauthorised. In both cases, check the token and the registration number with the Billora team or PRAL.
Purchase error codes
FBR’s document also has a separate table of purchase error codes, numbered 0156 to 0177. They follow the same ideas as the sales codes: invalid or unregistered NTNs, an empty buyer name, an empty sale type, a unit of measure that does not match, missing tax fields and an invoice number in the wrong format. Check the table in the document for the exact meaning of each.
How to avoid most errors
- Keep product master data clean: names, HS codes, units and rates that match FBR’s reference lists.
- Keep customer records complete: name, registration number, registration type and province.
- Test every scenario that matches your sales in the sandbox before going live.
- Let the software work out the tax from the rate, so amounts always agree with the rate.
- Use a debit or credit note, with the reference invoice number, for corrections.
See how to make an FBR digital invoice, the FBR integration checklist and FBR Digital Invoicing in Billora. The Billora team helps with errors during setup and testing.