Salam.I am facing this error while validating invoice in manager.io
{
“success”: false,
“data”: {
“invoiceKey”: “019ebbbb-4a64-7c1d-b567-64357c5ba04b”,
“pralServerResponse”: {
“dated”: “2026-06-13 12:51:36”,
“sourceInvoiceNo”: “”,
“validationResponse”: {
“statusCode”: “01”,
“status”: “Invalid”,
“errorCode”: “0052”,
“error”: “HS Code does not match with provided sale type. Please refer to relevant reference API in the technical document for DI API for valid HS Code against sale type.”,
“invoiceStatuses”: null
}
}
},
“message”: “Validation failed, please review the server response for details”
please suggest how to correct this
@Syed_Salman_Ali
@SNA welcome to forum.
Please correct the HS code you are using. It’s not matching with the scenario.
how to resolve this error?
{
"dated": "2026-07-14 20:47:07",
"sourceInvoiceNo": "",
"validationResponse": {
"statusCode": "01",
"status": "Invalid",
"errorCode": **null**,
"error": "",
"invoiceStatuses": \[
{
"itemSNo": "1",
"statusCode": "01",
"status": "Invalid",
"invoiceNo": **null**,
"errorCode": "",
"error": "Please Provide Petroleum Levy on"
}
\]
}
}
welcome to the forum @Ghulam_Abbas
Option 1: If your product is NOT a Petroleum Product (Recommended)
If “Test” is a standard retail, industrial, or general commodity item (and NOT actual fuel/petroleum), you should not be using the Petroleum Products tax code.
-
In Manager.io, edit the transaction/invoice.
-
Under the line items, change the Tax Code from
"Petroleum Products 1.4"to your standard rate or reduced rate tax code (such asSN001for Registered Buyers orSN002for Unregistered Buyers). -
Save and re-submit.
Changing the tax code to a standard scenario will instantly bypass the requirement for the Petroleum Levy fields.
Option 2: If you must use Scenario SN012 / Petroleum Products
If you are indeed selling a petroleum-related product and must use the SN012 Tax Code, you must configure the Petroleum Levy On value within your custom fields in Manager.io so it maps correctly to the JSON generator.
-
In Manager.io: Go to Settings > Custom Fields.
-
Look for Sales Invoice Lines custom fields (or Inventory Items custom fields) created by your FBR integration extension.
-
Ensure there is a custom field for “Petroleum Levy On” or “PL Quantity (Liters)”.
-
Open your Invoice, and in that specific line-item custom field, input the numerical value representing the volume (e.g., if you sold 123 units/liters, enter
123or0if no levy applies).
Thank You
hi can you please guide on the error
{
“success”: false,
“data”: {
“invoiceKey”: “949ed2e6-e758-4bd0-a7e4-f3ef31128832”,
“pralServerResponse”: {
“dated”: “2026-09-07 20:41:19”,
“sourceInvoiceNo”: “”,
“validationResponse”: {
“statusCode”: “01”,
“status”: “Invalid”,
“error”: “”,
“invoiceStatuses”: [
{
“itemSNo”: “1”,
“statusCode”: “01”,
“status”: “Invalid”,
“errorCode”: “0013”,
“error”: “Sale type is provided. Please refer to relevant reference API in the technical document for DI API for valid sale types.”
},
{
“itemSNo”: “1”,
“statusCode”: “01”,
“status”: “Invalid”,
“errorCode”: “0044”,
“error”: “HS Code cannot be empty. Please refer to relevant reference API in the technical document for DI API for valid HS Code”
},
{
“itemSNo”: “1”,
“statusCode”: “01”,
“status”: “Invalid”,
“errorCode”: “0019”,
“error”: “HS Code is invalid ‘’ at item ‘1’. Please refer to relevant reference API in the technical document for DI API for valid HS Code.”
},
{
“itemSNo”: “1”,
“statusCode”: “01”,
“status”: “Invalid”,
“errorCode”: “0020”,
“error”: “Rate field cannot be empty or null at item1. Please refer to relevant reference API in the technical document for DI API for valid Rate.”
}
]
}
}
},
“message”: “Validation failed, please review the server response for details”
@sialco please fill all fields of Inventory Items
Salam Sir,
I have following error when send data to sandbox, for SN017, i have cleared all my scenarios, except this one, please help me sothat i move to production token.
Error:HS Code does not match with provided sale type. Please refer to relevant reference API in the technical document for DI API for valid HS Code against sale type.
my data is:
{
“invoiceType”: “Sale Invoice”,
“invoiceDate”: “2026-09-09”,
“sellerNTNCNIC”: “7932887”,
“sellerBusinessName”: “AZIZ ENERGY (PRIVATE) LIMITED”,
“sellerProvince”: “SINDH”,
“sellerAddress”: “ROOM NO.1 G 1/2 E-60 BLOCK-7,GULSHAN-E-IQBAL, KARACHI.”,
“buyerNTNCNIC”: “”,
“buyerBusinessName”: "M/S.PAK HOMOEOPATHIC STORE, ",
“buyerProvince”: “SINDH”,
“buyerAddress”: "GOAL MASJID. ",
“buyerRegistrationType”: “Unregistered”,
“invoiceRefNo”: “”,
“scenarioId”: “SN017”,
“items”: [
{
“hsCode”: “8418.9090”,
“productDesciption”: “machinery”,
“rate”: “8%”,
“uoM”: “Numbers, pieces, units”,
“quantity”: 1.0,
“totalValues”: 0.0,
“valueSalesExcludingST”: 1000.0,
“fixedNotifiedValueOrRetailPrice”: 0.0,
“salesTaxApplicable”:80.0,
“salesTaxWithheldAtSource”: 0.0,
“extraTax”: 0.0,
“furtherTax”: 0.0,
“sroScheduleNo”: “”,
“fedPayable”: 0.0,
“discount”: 0.0,
“saleType”: “Goods (FED in ST Mode)”,
“sroItemSerialNo”: “”
}
]
}
@AzizEng Welcome to forum,
Please follow this combination, SN017 will Validate
JazakAllah Sir,
I tried following Data and it gives error:
Provided Rate is not correct. Please provide valid rate for selected Sales Type. Please refer to relevant reference API in the technical document for DI API.
{
“hsCode”: “2710.1240”,
“productDescription”: “test item sn017”,
“rate”: “8%”,
“uoM”: “KG”,
“quantity”: 1.0,
“totalValues”: 100.0,
“valueSalesExcludingST”: 100.0,
“fixedNotifiedValueOrRetailPrice”: 0.0,
“salesTaxApplicable”:8.0,
“salesTaxWithheldAtSource”: 0.0,
“extraTax”: 0.0,
“furtherTax”: 0.0,
“sroScheduleNo”: “”,
“fedPayable”: 0.0,
“discount”: 0.0,
“saleType”: “Goods (FED in ST Mode)”,
“sroItemSerialNo”: “”
}
]
}
@AzizEng Please share edit screen of your Item and Tax Code also.
I am just sending data to fbr sandbox using python script.
all scenarios all completed except this data block. It gives following error now:
“Provided Rate is not correct. Please provide valid rate for selected Sales Type. Please refer to relevant reference API in the technical document for DI API.”
i change rate to .5%,18%, 17% etc but still error. pls any help.
{
“invoiceType”: “Sale Invoice”,
“invoiceDate”: “2026-09-09”,
“sellerNTNCNIC”: “7932887”,
“sellerBusinessName”: “AZIZ ENERGY (PRIVATE) LIMITED”,
“sellerProvince”: “SINDH”,
“sellerAddress”: “ROOM NO.1 G 1/2 E-60 BLOCK-7,GULSHAN-E-IQBAL, KARACHI.”,
“buyerNTNCNIC”: “”,
“buyerBusinessName”: "M/S.PAK HOMOEOPATHIC STORE, ",
“buyerProvince”: “SINDH”,
“buyerAddress”: "GOAL MASJID. ",
“buyerRegistrationType”: “Unregistered”,
“invoiceRefNo”: “”,
“scenarioId”: “SN017”,
“items”: [
{
“hsCode”: “2710.1240”,
“productDescription”: “test item sn017”,
“rate”: “17%”,
“uoM”: “KG”,
“quantity”: 1.0,
“totalValues”: 1000.0,
“valueSalesExcludingST”: 1000.0,
“fixedNotifiedValueOrRetailPrice”: 0.0,
“salesTaxApplicable”:170.0,
“salesTaxWithheldAtSource”: 0.0,
“extraTax”: 0.0,
“furtherTax”: 0.0,
“sroScheduleNo”: “”,
“fedPayable”: 0.0,
“discount”: 0.0,
“saleType”: “Goods (FED in ST Mode)”,
“sroItemSerialNo”: “”
}
]
}
Sorry no expertise regarding Python Script, and this forum is for Manager.io Extension users.
{
“items”: [
{
“uoM”: “Liter”,
“rate”: “18% and Rs. 80 per Liter”,
“hsCode”: “2710.1240”,
“discount”: 0,
“extraTax”: 0,
“quantity”: 1,
“saleType”: “Goods (FED in ST Mode)”,
“fedPayable”: 0,
“furtherTax”: 0,
“totalValues”: 0,
“sroScheduleNo”: “”,
“sroItemSerialNo”: “”,
“productDescription”: “White Spirit”,
“salesTaxApplicable”: 118,
“valueSalesExcludingST”: 100,
“salesTaxWithheldAtSource”: 0,
“fixedNotifiedValueOrRetailPrice”: 0
}
],
“scenarioId”: “SN017”,
“invoiceDate”: “2026-09-17”,
“invoiceType”: “Sale Invoice”,
“buyerAddress”: “Lahore”,
“buyerNTNCNIC”: “7000009”,
“invoiceRefNo”: “”,
“buyerProvince”: “PUNJAB”,
“sellerAddress”: “”,
“sellerNTNCNIC”: “”,
“sellerProvince”: “”,
“buyerBusinessName”: “TEST BUYER”,
“sellerBusinessName”: “”,
“buyerRegistrationType”: “Unregistered”
}
this works check