Notifications
Loading notifications...

When FBR does not accept a digital invoice, it replies with an error code and a short message. The codes look cryptic, but almost all of them come down to a handful of data problems: buyer registration, HS codes, sale types, rates and dates. This guide lists the most common FBR Digital Invoicing error codes from FBR’s technical documentation (v1.12) and how to fix each one.

First: is it a connection problem or a data problem?

ReplyMeaningFix
HTTP 401 UnauthorizedThe security token is missing, wrong or for the other environmentCopy the token again from IRIS; check Sandbox vs Production
Timeout / connection refusedYour server IP is not whitelisted by PRALCheck IP Whitelisting in IRIS
HTTP 500Server error on FBR’s sideWait and retry later
HTTP 200 with an error codeThe connection works; a field failed validationUse the table below

Common FBR invoice error codes and fixes

CodeFBR message (short)Usual causeHow to fix
0001Seller not registered for sales taxSeller NTN/registration in the invoice does not match an active sales tax registrationEnter your NTN exactly as in IRIS; make sure the token belongs to the same business
0002Invalid buyer registration no. or NTNBuyer marked Registered but the NTN/CNIC is wrong or not registeredCheck the buyer’s 7-digit NTN or 13-digit CNIC; if not registered, mark the buyer Unregistered
0003 / 0011Provide (proper) invoice typeInvoice type missing or not “Sale Invoice” / “Debit Note”Use only FBR’s two document types
0005Date not in valid formatWrong date format or an impossible dateUse the format FBR expects; check the invoice date
0009 / 0010 / 0012Provide buyer registration no. / name / typeBuyer details incompleteComplete the customer record before invoicing
0013Provide valid sale typeSale type text does not match FBR’s list, or is not allowed for your scenariosPick the sale type from FBR’s list; see sale types and scenarios
0018Provide Sales Tax/FED in ST modeFED-in-ST-mode sale without the tax amountFill the sales tax / FED field for that line
0019 / 0044Provide HS codeHS code missing on a lineAdd the HS code to the product (format 0000.0000)
0052Provide valid HS codeHS code does not exist or does not fit the sale typeCheck the code against FBR’s HS code list
0020 / 0046Provide rateRate missing or in the wrong formSet the product’s tax rate; use the rate valid on the invoice date
0023Provide sales taxTax amount missingLet the software calculate tax from value and rate
0041 / 0042Provide invoice no. / dateRequired header fields emptyUse automatic invoice numbering
0053Buyer registration type is invalidValue other than Registered / UnregisteredSet the buyer type correctly
0057Reference invoice does not existA debit note or return points to a wrong FBR invoice numberMake the return or debit note from the original reported invoice
0058Self-invoicing not allowedBuyer NTN is the same as the seller’sChoose the correct customer

The full list of sales error codes is in section 7 of FBR’s Technical Documentation for Digital Invoicing API (v1.12).

Five habits that prevent most rejections

  1. Clean your product master once. HS code, unit, rate and sale type on every product.
  2. Verify buyers. Check the NTN/CNIC of registered buyers before the first invoice.
  3. Use FBR’s validate call before posting. FBR offers a validate endpoint that checks an invoice without reporting it.
  4. Never edit a reported invoice. Corrections go through a debit note or a sales return against the original.
  5. Watch the queue daily. Fix failures the same day so your monthly reports are complete.

How 3Ace FBR Suite helps

3Ace FBR Suite is built to stop errors before FBR sees them:

Frequently asked questions

Is a rejected invoice a valid tax invoice?

No. Only an invoice with an FBR invoice number is reported. Fix and re-send it.

Can I change an invoice after FBR accepts it?

FBR allows corrections of genuine mistakes within a limited window; after that you need a debit note or sales return. See the complete FBR Digital Invoicing guide.

Why does the sandbox accept an invoice that production rejects?

Production checks live registration data, such as whether the buyer is actually registered. Keep customer data accurate.

Start a free 14-day trial and see the readiness checks for yourself.

Error codes and messages summarised from FBR’s Technical Documentation for Digital Invoicing API, v1.12. FBR may add or change codes.

New from 3Ace Technologies: FBR Digital Invoicing Software with real-time FBR reporting, QR code invoices and sales tax reports