by the way i was trying to get lists of codes such as
HS Code
Sale Type
Rate
SRO Schedule No
SRO Item Serial No
using these links but it’s asking for credentials, here are the links that am trying to get lists from:
any update in this matter, still not updating Existing Business.
there is no option to update the business info.
Possibly due to browser cache, you may need to clear the default browser cache.
or
You can reset the detailed business information. And you will be faced with Integration setup. Make sure the NTNCNIC matches the Token you have.
done. same problem.
Go to Settings>CustomFields and then remove description of “Application Version” custom field.
Btw values of these fields doesnt change with time so its better if they are left greyed out.
i have accidentally posted invoice to https://gw.fbr.gov.pk/di_data/v1/di/postinvoicedata
and want to cancel or remove that, does any one now how can i do that
thats why we are not using production token for now. We all don’t know how production portal reacts and what will be the consequences. so we are just testing everything on sandboxing when everything will be perfect after that we will check our production capability
Hey Guys!
I just found this forum. I wanted to ask about sandbox testing. Do I need my IP address to be whitelisted? or is it only for production?
Thanks ![]()
I am trying to validate the invoice in my .net 4.5 windows application and getting empty content response with 200 success status code.Below is my code
string url = “``https://gw.fbr.gov.pk/di_data/v1/di/validateinvoicedata_sb”``;
string token = “00d75a15-5bac-3b2c-8aad-c0c6bb1f848e”;
string jsonPayload = @"
{
""invoiceType"": ""Sale Invoice"",
""invoiceDate"": ""2025-08-04"",
""sellerBusinessName"": ""Seller business name value"",
""sellerProvince"": ""Sindh"",
""sellerNTNCNIC"": ""0000000000000"",
""sellerAddress"": ""Seller address value"",
""buyerNTNCNIC"": ""0000000"",
""buyerBusinessName"": ""buyer busines name value"",
""buyerProvince"": ""SINDH"",
""buyerAddress"": ""Buyer address value"",
""invoiceRefNo"": """",
""scenarioId"": ""SN001"",
""buyerRegistrationType"": ""Registered"",
""items"": [
{
""hsCode"": ""4805.1900"",
""productDescription"": ""Some product description value"",
""rate"": ""18%"",
""uoM"": ""KG"",
""quantity"": 400,
""totalValues"": 0,
""valueSalesExcludingST"": 113600,
""fixedNotifiedValueOrRetailPrice"": 0,
""salesTaxApplicable"": 20448,
""salesTaxWithheldAtSource"": 0,
""extraTax"": """",
""furtherTax"": 0,
""sroScheduleNo"": """",
""fedPayable"": 0,
""discount"": 0,
""saleType"": ""Goods at standard rate (default)"",
""sroItemSerialNo"": """"
}
]
}";
// Enable TLS 1.2
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/json";
request.Accept = "application/json";
request.Headers["Authorization"] = "Bearer " + token;
request.UserAgent = "Mozilla/5.0";
request.Headers.Add("Cache-Control", "no-cache");
// Remove Accept-Encoding if you can't handle compressed response
request.Headers.Remove("Accept-Encoding");
byte[] byteArray = Encoding.UTF8.GetBytes(jsonPayload);
request.ContentLength = byteArray.Length;
using (Stream dataStream = request.GetRequestStream())
{
dataStream.Write(byteArray, 0, byteArray.Length);
}
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
Stream responseStream = response.GetResponseStream();
// Handle gzip compression if present
if (response.ContentEncoding != null && response.ContentEncoding.ToLower().Contains("gzip"))
{
responseStream = new GZipStream(responseStream, CompressionMode.Decompress);
}
using (StreamReader reader = new StreamReader(responseStream))
{
string responseText = reader.ReadToEnd();
return responseText;
}
}
the string responseText = reader.ReadToEnd();is an empty string, which is not expected,
Same JSON I use in Postman, I get the following response
{
"dated": "2025-08-05 01:39:36",
"validationResponse": {
"statusCode": "00",
"status": "Valid",
"errorCode": **null**,
"error": "",
"invoiceStatuses": \[
{
"itemSNo": "1",
"statusCode": "00",
"status": "Valid",
"errorCode": "",
"error": ""
}
\]
}
}
Can anyone help me? What am I missing???
It seems like your question might not be directly related to Manager or any extensions for Manager. However, addressing the technical details you’ve provided:
The server response is empty despite a successful status, which could be due to issues with compression in the request header. It’s essential to check whether the server can handle gzip compression or other types used in the request header.
To resolve this issue, make sure you add a compatible compression type to the request header, such as ‘Accept-Encoding: gzip’ or other formats supported by the server. This adjustment will enable the server to return a proper response.
You might also want to refer to the source code I’ve shared on GitHub - FBRExtension
[
// Add simple HttpClient for API calls
builder.Services.AddHttpClient("PralFbrClient", client =>
{
client.Timeout = TimeSpan.FromSeconds(120);
})
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler()
{
AutomaticDecompression = System.Net.DecompressionMethods.GZip | System.Net.DecompressionMethods.Deflate
});
// Add default HttpClient for other uses
builder.Services.AddHttpClient();
HI
I have implemented the FBR Extension and tested a couple of scenario. I successfully reported invoice for SN001, SN002, and SN019(Services with 5% and 15 %). I had created a test business and validated and reported invoices in it.
I also put sandbox bearer in my actual business, and wanted to test the settings, but accidently reported a dummy invoice. The reported invoice is not allowed to be deleted / amended….
But my actual business account statement shall get disturbed. Need feature / way to delete this invoice in manager (It was reported using sandbox token).
The FBR doesn’t provide a way to cancel an invoice that has been reported through the API. If this feature isn’t available on the portal, the only way is to contact the FBR PRAL.
Invoice cancellation is usually done by creating a Credit Note. However, I’m not sure if the FBR PRAL also has or accepts Invoice Type Credit Notes.
Hello, I have created a CUSTOM INVOICE THEME,
but after submission of Invoice the QR CODE is not visible in my Custom Invoice Theme, Please take a look and furthermore, can we get the Invoice No as FBR Invoice No after the QR CODE
Hello,
Why my invoices are not showing at FBR live submission.
Any one let me know after uploading invoices correctly, invoice number and qr code is generated,
but these invoices are not reflected in Summary DashBoard
kindly let me know what is the issue?
Regards
Check the environment you are using in the settings - business details, and make sure you are in the correct portal according to the environment and token you are using.
Hello,
The Business details is Correct and according to environment → Production and token → Production Token**.**
Please Check Image
If FBR provides a URL or an Application to check the Invoice Number, you can try checking the Invoice Number you obtained using that Application.








