Production Comparisons
Production Comparisons
Confidential Information:
The information provided in this document is intended solely for the DI API from PRAL. The contents of this
document may not be reproduced or divulged outside the intended organizations without the express
written permission of PRAL.
Document Information
Category Information
Document Technical Specifications Document
Project-Module Title Technical Specification for DI API
Version 1.10
Author Muhammad Umair Siddique
Status Issued
Reviewer(s) Mehboob Ur Rehman, Sohail Anjum
Review Date 7-April-2025
Updated By Muhammad Umair Siddique
Updated Date 24-May-2025
Approver
Issue Date
Distribution SD Wing
Document Category Internal External
Privacy Level Public PRAL Confidential Customer Confidential
Disclaimer This document contains confidential information. Do not distribute this
document without prior approval from PRAL.
Review History
Sr. # Reviewer R/V Date Remarks
Mehboob Ur Rehman,
1. 7-Apr-25 Initial Document
Sohail Anjum
2. Naseem Ahmed Razzaq 09-May-25 Sample Json & Error Codes Updated
3. Naseem Ahmed Razzaq 22-May-25 Sample Json & Error Codes Updated
Sample Jason for Sandbox &
4. Naseem Ahmed Razzaq 01-Jun-25 Production Updated
ST ATL API production (Added)
Updates:
Sales Error Codes
Purchase Error Codes
5. Arslan Nazir 03-Jun-25
Scenarios for Sandbox Testing
Applicable Scenarios based on
Business Activity
6. Adeel Abbasi 10-Jun-25 Fields description Updated
7. Naseem Ahmed Razzaq 18-Jun-25 SRO URL Update
2
Document Version :1.0 PRAL © 2025 – All rights reserved Page 2 of 50
DI API Technical Specification
Contents
1. Purpose ................................................................................................................................................. 4
2. Data Sharing Mode ............................................................................................................................... 5
3. Web API................................................................................................................................................. 5
3.1. Web API Security........................................................................................................................... 5
3.2. Web Methods Details ................................................................................................................... 5
4. Digital Invoicing API............................................................................................................................... 6
4.1. Web method for Digital Invoicing - Post ....................................................................................... 6
4.2. Web method for Digital Invoicing - Validate............................................................................... 14
5. Digital Invoicing Reference APIs.......................................................................................................... 21
5.1. Web method for Digital Invoicing – Province Code .................................................................... 22
5.2. Web method for Digital Invoicing – Document Type ID ............................................................. 23
5.3. Web method for Digital Invoicing – Item Code .......................................................................... 24
5.4. Web method for Digital Invoicing – SRO Item ID ........................................................................ 25
5.5. Web method for Digital Invoicing – Transaction Type ID ........................................................... 26
5.6. Web method for Digital Invoicing – ID of the UOM .................................................................... 27
5.7. Web method for Digital Invoicing – SRO Schedule ..................................................................... 28
5.8. Web method for Digital Invoicing – ID of The Rate .................................................................... 29
5.9. Web method for Digital Invoicing – HS Code with UOM ............................................................ 30
5.10. Web method for Digital Invoicing – SRO Item ID .................................................................... 31
5.11 Web method for Digital Invoicing – STATL ................................................................................. 32
5.12 Web method for Digital Invoicing – STATL ................................................................................. 33
6. Digital Invoicing Logo & QR Code Printing .......................................................................................... 34
7. Sales Error Codes ................................................................................................................................ 35
8. Purchase Error Codes .......................................................................................................................... 40
9. Scenarios for Sandbox Testing ............................................................................................................ 45
10. Applicable Scenarios based on Business Activity ............................................................................ 46
3
Document Version :1.0 PRAL © 2025 – All rights reserved Page 3 of 50
DI API Technical Specification
1. Purpose
The purpose of this document is to facilitate Supply Chain Operators to understand the
methods for Digital Invoice Data sharing with FBR.
ERP or equivalent software will be integrated with FBR as per the following steps:
• Each ERP or equivalent software will register in the FBR system from which it wants to
upload the invoice data.
• Taxpayers will integrate their ERP/System with FBR Digital Invoicing System as per
provided details in the Section (3) Integration Steps with FBR.
4
Document Version :1.0 PRAL © 2025 – All rights reserved Page 4 of 50
DI API Technical Specification
3. Web API
This Web API resides on PRAL ESP (Enterprise Service Platform) and is exposed with
methods to facilitate Digital Invoicing sharing between Supply Chain Operators and FBR.
Figure 1 below illustrates how to pass this token in the header of each request using
Postman.
Figure 2 Security Key added with the word "Bearer" will be passed on in Value of parameter
Authorization
5
Document Version :1.0 PRAL © 2025 – All rights reserved Page 5 of 50
DI API Technical Specification
{
"invoiceType": "Sale Invoice",
"invoiceDate": "2025-04-21",
"sellerNTNCNIC": "0786909",
"sellerBusinessName": "Company 8",
"sellerProvince": "Sindh",
"sellerAddress": "Karachi",
"buyerNTNCNIC": "1000000000000",
"buyerProvince": "Sindh",
"buyerAddress": "Karachi",
"buyerRegistrationType": "Registered",
"invoiceRefNo": "",
"scenarioId": "SN001",
6
Document Version :1.0 PRAL © 2025 – All rights reserved Page 6 of 50
DI API Technical Specification
"items": [
{
"hsCode": "0101.2100",
"rate": "18%",
"quantity": 1,
"totalValues": 0,
"valueSalesExcludingST":1000,
"fixedNotifiedValueOrRetailPrice":0,
"salesTaxApplicable": 18,
"salesTaxWithheldAtSource":0,
"extraTax": "",
"furtherTax": 120,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"sroItemSerialNo": ""
7
Document Version :1.0 PRAL © 2025 – All rights reserved Page 7 of 50
DI API Technical Specification
{
"invoiceType": "Sale Invoice",
"invoiceDate": "2025-04-21",
"sellerNTNCNIC": "0786909",
"sellerBusinessName": "Company 8",
"sellerProvince": "Sindh",
"sellerAddress": "Karachi",
"buyerNTNCNIC": "1000000000000",
"buyerBusinessName": "FERTILIZER MANUFAC IRS NEW",
"buyerProvince": "Sindh",
"buyerAddress": "Karachi"
"buyerRegistrationType": "Unregistered",
"invoiceRefNo": "",
"items": [
{
"hsCode": "0101.2100",
"productDescription": "product Description",
"rate": "18%",
"uoM": "Numbers, pieces, units",
"quantity": 1,
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0,
"salesTaxApplicable": 180,
8
Document Version :1.0 PRAL © 2025 – All rights reserved Page 8 of 50
DI API Technical Specification
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 120,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "Goods at standard rate (default)",
"sroItemSerialNo": ""
}
]
}
Json
JSON Field required sample data Description
DataType
• Sales Invoice
InvoiceType String Required "Sale Invoice"
• Debit Note
Date when the
invoiceDate date Required "2025-04-21"
invoice was issued.
sellerNTNCNIC string Required "0786909" Seller NTN/CNIC
sellerBusinessName string Required "General business" Seller Business Name
sellerProvince string Required "Punjab" Seller province
Seller business
sellerAddress string Required "Rawalpindi"
Address
Required
(Optional in
buyerNTNCNIC string 1234567890123 Buyer Registration No
case of
Unregistered)
buyerBusinessName string Required "John Doe" Buyer Business Name
buyerProvince string Required "Sindh" Buyer Province Name
buyerAddress string Required "Karachi" Buyer Address
9
Document Version :1.0 PRAL © 2025 – All rights reserved Page 9 of 50
DI API Technical Specification
Type of Buyer
buyeRegistrationType string Required "Unregistered"
Registration
Required only
7327556DI1744111990654 Reference Invoice no
invoiceRefNo String in case of
for the debit
debit note
Required for
scenarioId String "SN001" Scenario ID / Number
Sandbox only
Json
JSON Field required sample data Description
DataType
HS Code is applicable to
hsCode String Required "0101.2100" manufacturer-cum-retailer
issuing electronic invoices
"product
productDescription String Required Product detail
Description"
Tax Rate (ratE_DESC from
rate String Required 18%
reference API 5.8)
uoM String Required "KG" Unit of Measurement
quantity Int Required 1 Item Quantity
Total Sales Value (Including
totalValues Double Required 0
Tax)
valueSalesExcludingST Double Required 1000 Sales Value Excluding sales tax
Fixed Notification Value /
fixedNotifiedValueOrRetailPrice Double Required 0
Retail Price (Item Based)
Amount of Sales Tax/ FED in
salesTaxApplicable Int Required 180 sales tax mode
(Excluding Further & Extra tax)
salesTaxWithheldAtSource Double Required 0 Sales Tax Withheld at source
extraTax Double Optional 0.00 Extra Tax
furtherTax Double Optional 120 Further Tax
sroScheduleNo String Optional "SRO123" SRO Schedule No
fedPayable Double Optional 0 Federal excise duty payable
discount Double Optional 70.00 Discount
10
Document Version :1.0 PRAL © 2025 – All rights reserved Page 10 of 50
DI API Technical Specification
"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": ""
}
]
}
}
11
Document Version :1.0 PRAL © 2025 – All rights reserved Page 11 of 50
DI API Technical Specification
"validationResponse": {
"statusCode": "01",
"status": "Invalid",
"errorCode": "0052",
"invoiceStatuses": null
"validationResponse": {
"statusCode": "00",
"status": "invalid",
"error": "",
"invoiceStatuses": [
"itemSNo": "1",
12
Document Version :1.0 PRAL © 2025 – All rights reserved Page 12 of 50
DI API Technical Specification
"statusCode": "01",
"status": "Invalid",
"invoiceNo": null,
"errorCode": "0046",
S. No Field Message
1. Invoice Number Invoice Number issued by FBR System
2. Status Code 00 – Valid
01 – Invalid
3. Exception Details of the errors
4. Invoice Status Item Serial Number
Statuscode (00 valid, 01 Invalid)
Status (“Valid or invalid)
Invoice Number (Invoice Number Issued by FBR
System)
Error Code
Remarks:
13
Document Version :1.0 PRAL © 2025 – All rights reserved Page 13 of 50
DI API Technical Specification
{
"invoiceType": "Sale Invoice",
"invoiceDate": "2025-04-21",
"sellerNTNCNIC": "0786909",
"sellerBusinessName": "Company 8",
"sellerProvince": "Sindh",
"sellerAddress": "Karachi",
"buyerNTNCNIC": "1000000000000",
"buyerProvince": "Sindh",
"buyerAddress": "Karachi",
"buyerRegistrationType": "Registered",
"invoiceRefNo": "",
"scenarioId": "SN001",
"items": [
{
"hsCode": "0101.2100",
"rate": "18%",
14
Document Version :1.0 PRAL © 2025 – All rights reserved Page 14 of 50
DI API Technical Specification
"quantity": 1,
"totalValues": 0,
"valueSalesExcludingST":1000,
"fixedNotifiedValueOrRetailPrice":0,
"salesTaxApplicable": 18,
"salesTaxWithheldAtSource":0,
"extraTax": "",
"furtherTax": 120,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"sroItemSerialNo": ""
15
Document Version :1.0 PRAL © 2025 – All rights reserved Page 15 of 50
DI API Technical Specification
{
"invoiceType": "Sale Invoice",
"invoiceDate": "2025-04-21",
"sellerNTNCNIC": "0786909",
"sellerBusinessName": "Company 8",
"sellerProvince": "Sindh",
"sellerAddress": "Karachi",
"buyerNTNCNIC": "1000000000000",
"buyerBusinessName": "FERTILIZER MANUFAC IRS NEW",
"buyerProvince": "Sindh",
"buyerAddress": "Karachi"
"buyerRegistrationType": "Unregistered",
"invoiceRefNo": "",
"items": [
{
"hsCode": "0101.2100",
"productDescription": "product Description",
"rate": "18%",
"uoM": "Numbers, pieces, units",
"quantity": 1,
"totalValues": 0,
"valueSalesExcludingST": 1000,
"fixedNotifiedValueOrRetailPrice": 0,
"salesTaxApplicable": 180,
16
Document Version :1.0 PRAL © 2025 – All rights reserved Page 16 of 50
DI API Technical Specification
"salesTaxWithheldAtSource": 0,
"extraTax": "",
"furtherTax": 120,
"sroScheduleNo": "",
"fedPayable": 0,
"discount": 0,
"saleType": "Goods at standard rate (default)",
"sroItemSerialNo": ""
}
]
}
Json
JSON Field required sample data Description
DataType
• Sales Invoice
InvoiceType string Required "Sale Invoice"
• Debit Note
Date when the
invoiceDate date Required "2025-04-21"
invoice was issued.
sellerNTNCNIC string Required "0786909" Seller NTN/CNIC
sellerBusinessName string Required "General business" Seller Business Name
sellerProvince string Required "Punjab" Seller province
Seller business
sellerAddress string Required "Rawalpindi"
Address
Required
(Optional in
buyerNTNCNIC string 1234567890123 Buyer Registration No
case of
Unregistered)
buyerBusinessName string Required "John Doe" Buyer Business Name
buyerProvince string Required "Sindh" Buyer Province Name
buyerAddress string Required "Karachi" Buyer Address
Type of Buyer
buyeRegistrationType string Required "Unregistered"
Registration
17
Document Version :1.0 PRAL © 2025 – All rights reserved Page 17 of 50
DI API Technical Specification
Required only
7327556DI1744111990654 Reference Invoice no
invoiceRefNo String in case of
for the debit
debit note
Required for
scenarioId String "SN001" Scenario ID / Number
Sandbox only
Json
JSON Field required sample data Description
DataType
HS Code is applicable to
hsCode String Required "0101.2100" manufacturer-cum-retailer
issuing electronic invoices
"product
productDescription String Required Product detail
Description"
Tax Rate (ratE_DESC from
rate String Required 18%
reference API 5.8)
uoM String Required "KG" Unit of Measurement
quantity Int Required 1 Item Quantity
Total Sales Value (Including
totalValues Double Required 0
Tax)
valueSalesExcludingST Double Required 1000 Sales Value Excluding sales tax
Fixed Notification Value /
fixedNotifiedValueOrRetailPrice Double Required 0
Retail Price (Item Based)
Amount of Sales Tax/ FED in
salesTaxApplicable Int Required 180 sales tax mode
(Excluding Further & Extra tax)
salesTaxWithheldAtSource Double Required 0 Sales Tax Withheld at source
extraTax Double Optional 0.00 Extra Tax
furtherTax Double Optional 120 Further Tax
sroScheduleNo String Optional "SRO123" SRO Schedule No
fedPayable Double Optional 0 Federal excise duty payable
discount Double Optional 70.00 Discount
"Goods at
standard
saleType String Required Type of Sale
rate
(default)"
sroItemSerialNo String Optional "" Item serial number
18
Document Version :1.0 PRAL © 2025 – All rights reserved Page 18 of 50
DI API Technical Specification
"validationResponse": {
"statusCode": "00",
"status": "Valid",
"errorCode": null,
"error": "",
"invoiceStatuses": [
"itemSNo": "1",
"statusCode": "00",
"status": "Valid",
"errorCode": null,
"error": ""
}
]
}
19
Document Version :1.0 PRAL © 2025 – All rights reserved Page 19 of 50
DI API Technical Specification
"validationResponse": {
"statusCode": "00",
"status": "Invalid",
"errorCode": null,
"error": "",
"invoiceStatuses": [
"itemSNo": "1",
"statusCode": "01",
"status": "Invalid",
"errorCode": "0046",
20
Document Version :1.0 PRAL © 2025 – All rights reserved Page 20 of 50
DI API Technical Specification
S. No Field Message
1. Status Code 00 - Valid
01 – Invalid
2. Exception Details of the errors
3. Invoice Status Item Serial Number
Statuscode (00 valid, 01 Invalid)
Status (“Valid or invalid)
Invoice Number (Invoice Number Issued by FBR
System)
Error Code
Remarks:
21
Document Version :1.0 PRAL © 2025 – All rights reserved Page 21 of 50
DI API Technical Specification
This Web method (provinces) HTTP meth Get will be used on a real time basis. API
consumer will have to send object model mentioned below. This method will take
following parameters and will return Json response as shown in example below.
URL: https://gw.fbr.gov.pk/pdi/v1/provinces
[ {
"stateProvinceCode": 7,
"stateProvinceDesc": "PUNJAB"
},
{
"stateProvinceCode": 8,
"stateProvinceDesc": "SINDH"
}
]
S. No Field Description
1. StateprovinceCode Province code
2. stateprovinceDesc Description on the province
5.1.3. Http Status Codes:
22
Document Version :1.0 PRAL © 2025 – All rights reserved Page 22 of 50
DI API Technical Specification
[{
"docTypeId": 4,
"docDescription": "Sale Invoice"
},
{
"docTypeId": 9,
"docDescription": "Debit Note"
}]
S. No Field Description
1. docTypeId Id for the document type
2. docDescription Description of the document type
23
Document Version :1.0 PRAL © 2025 – All rights reserved Page 23 of 50
DI API Technical Specification
[{
"hS_CODE": "8432.1010",
"description": "NUCLEAR REACTOR, BOILERS, MACHINERY AND
MECHANICAL APPLIANCES; PARTS THEREOF. - AGRICULTURAL,
HORTICULTURAL OR FORESTRY MACHINERY FOR SOIL PREPARATION OR
CULTI- VATION; LAWN OR SPORTS GROUND ROLLERS. - CHISEL
PLOUGHS"
},
{
"hS_CODE": "0304.7400",
"description": "FISH AND CRUSTACEANS, MOLLUSCS AND OTHER
AQUATIC INVERTEBRATES - FISH FILLETS AND OTHER FISH MEAT
(WHETHER OR NOT MINCED), FRESH, CHILLED OR FROZEN. - HAKE
(MERLUCCIUS SPP., UROPHYCIS SPP.)"
}]
S. No Field Description
1. Hs_Code HS Code
2. description Description of the HSCode
24
Document Version :1.0 PRAL © 2025 – All rights reserved Page 24 of 50
DI API Technical Specification
[
{
"srO_ITEM_ID": 724,
"srO_ITEM_DESC": "9"
},
{
"srO_ITEM_ID": 728,
"srO_ITEM_DESC": "1"
}
]
S. No Field Description
1. Sro_ITEM_ID SRO item id
2. srO_ITEM_DESC SRO Item Description
25
Document Version :1.0 PRAL © 2025 – All rights reserved Page 25 of 50
DI API Technical Specification
[
{
"transactioN_TYPE_ID": 82,
"transactioN_DESC": "DTRE goods"
},
{
"transactioN_TYPE_ID": 87,
"transactioN_DESC": "Special procedure cottonseed"
},
{
"transactioN_TYPE_ID": 111,
"transactioN_DESC": "Electricity Supplied to marble/granite
industry"
}
]
S. No Field Description
1. transactioN_TYPE_ID Transaction type id
2. transaction_DESC Description of the transaction type
5.5.3. Http Status Codes:
26
Document Version :1.0 PRAL © 2025 – All rights reserved Page 26 of 50
DI API Technical Specification
[
{
"uoM_ID": 77,
"description": "Square Metre"
},
{
"uoM_ID": 13,
"description": "KG"
}
]
S. No Field Description
1. UOM_ID ID of the UOM
2. Description Description of the UOM
5.6.3. Http Status Codes:
27
Document Version :1.0 PRAL © 2025 – All rights reserved Page 27 of 50
DI API Technical Specification
S. No Field Description
1. rate_id Rate id
2. date date
3. Origination_supplier_csv Origination of supplier
[
{
"srO_ID": 7,
"srO_DESC": "Zero Rated Gas"
},
{
"srO_ID": 8,
"srO_DESC": "5th Schedule"
}
]
S. No Field Description
1. SRO_ID ID of the SRO
2. srO_DESC Description of the SRO
5.7.3. Http Status Codes:
S. No Status Code Message
1. 200 Ok
2. 401 Unauthorized
3. 500 Internal Server Error (Contact Administrator)
28
Document Version :1.0 PRAL © 2025 – All rights reserved Page 28 of 50
DI API Technical Specification
[
{
"ratE_ID": 734,
"ratE_DESC": "18% along with rupees 60 per kilogram",
"ratE_VALUE": 18
}
,
{
"ratE_ID": 280,
"ratE_DESC": "0%",
"ratE_VALUE": 0
}
]
S. No Field Description
1. Rate_ID ID of the rate
2. rate_DESC Description of the rate
3. Rate_VALUE Value of the rate
5.8.3. Http Status Codes:
29
Document Version :1.0 PRAL © 2025 – All rights reserved Page 29 of 50
DI API Technical Specification
[
{
"uoM_ID": 77,
"description": "Square Meter"
}
]
]
S. No Field Description
1. uoM_ID ID of the unit of measure
2. description Description of the unit of measure
5.9.3. Http Status Codes:
30
Document Version :1.0 PRAL © 2025 – All rights reserved Page 30 of 50
DI API Technical Specification
[
{
"srO_ITEM_ID": 17853,
"srO_ITEM_DESC": "50"
},
{
"srO_ITEM_ID": 17854,
"srO_ITEM_DESC": "51"
}
]
S. No Field Description
1. Sro_ITEM_ID Item id
2. Sro_ITEM_DESC Description of the Item
5.10.3. Http Status Codes:
31
Document Version :1.0 PRAL © 2025 – All rights reserved Page 31 of 50
DI API Technical Specification
Response:
{
"status code": "01",
"status": "In-Active"
}
or
{
"status code": "02",
"status": "In-Active"
}
32
Document Version :1.0 PRAL © 2025 – All rights reserved Page 32 of 50
DI API Technical Specification
{"Registration_No":"0788762"}
Response:
"statuscode": "01",
"REGISTRATION_NO": "0788762",
"REGISTRATION_TYPE": "unregistered"
or
"statuscode": "00",
"REGISTRATION_NO": "0788762",
"REGISTRATION_TYPE": "Registered"
33
Document Version :1.0 PRAL © 2025 – All rights reserved Page 33 of 50
DI API Technical Specification
34
Document Version :1.0 PRAL © 2025 – All rights reserved Page 34 of 50
DI API Technical Specification
0006 Sale invoice not exist. Sales invoice does not exist against STWH
Wrong Sale type is selected with Selected invoice type is not associated with proper
0007
invoice no (Invoice no) registration number, please select actual invoice type
ST withheld at source should either ST withheld at source is not equal to zero or sales tax,
0008 be zero or same as sales tax/fed in st please enter ST withheld at source zero or equal to
mode. sales tax
0020 Please provide Rate Rate field cannot be empty, please provide Rate
35
Document Version :1.0 PRAL © 2025 – All rights reserved Page 35 of 50
DI API Technical Specification
Please provide Value of Sales Excl. ST Value of Sales Excl. ST /Quantity cannot be empty,
0021
/Quantity Please provide valid Value of Sales Excl. ST /Quantity
ST withheld at Source or STS Withheld cannot be
Please provide ST withheld at Source
0022 empty, Please provide valid ST withheld at Source or
or STS Withheld
STS Withheld
Sales Tax cannot be empty, Please provide valid Sales
0023 Please provide Sales Tax
Tax
Sales Tax withheld cannot be empty, Please provide
0024 Please provide ST withheld
valid Sales Tax withheld
Invoice Reference No. is mandatory requirement for
0026 Invoice Reference No. is required. debit/credit note. Please provide valid Invoice
Reference No.
Unregistered distributer type not Unregistered distributer type not allowed before
0030
allowed before date system cut of date
0031 Provide Sales Tax Sales Tax is not mentioned, please provide Sales Tax
STWH can only be created for User is not FTN holder, STWH can only be created for
0032
GOV/FTN Holders. GOV/FTN Holders without sales invoice.
{0} only allowed within {1} days of Debit/Credit note can only be added within 180 days
0034
invoice date of the original invoice of original invoice date
{0} date must be greater or equal to Note Date must be greater or equal to original invoice
0035
original invoice date. date
Total {1} value of {0} invoice(s) is
Credit Note Value of Sale must be less or equal to the
0036 greater than {1} of original invoice.
value of Sale in original invoice.
Value of Sales
Total {1} value of {0} invoice(s) is
Credit Note Value of ST Withheld must be less or
0037 greater than {1} of original invoice.ST
equal to the value of ST Withheld in original invoice.
Withheld as WH Agent
36
Document Version :1.0 PRAL © 2025 – All rights reserved Page 36 of 50
DI API Technical Specification
0056 Buyer not exists in steel sector. Buyer does not exist in steel sector
0064 Reference invoice already exist. Credit note is already added to a invoice
{1} of {0} invoice is greater than {1} Sales Tax value of Debit Note is greater than original
0067
of original invoice. invoice's sales tax
{1} of {0} invoice is less than {1} of Sales Tax value of Credit Note is less than original
0068
original invoice. invoice's sales tax according to the rate.
STWH cannot be created for User is not registered, STWH is allowed only for
0070
unregistered buyers. registered user
37
Document Version :1.0 PRAL © 2025 – All rights reserved Page 37 of 50
DI API Technical Specification
If Value of Sales Excl. ST greater than If sales value is greater than 20,000 than rate 5% is
0079
{0}. Rate {1} not allowed. not allowed
Further Tax' cannot be empty, please provide valid
0080 Please provide Further Tax
Further Tax
Please provide Input Credit not 'Input Credit not Allowed' cannot be empty, please
0081
Allowed provide ‘Input Credit not Allowed'
The Seller is not registered for sales
The Seller is not registered for sales tax. Please
0082 tax. Please provide a valid
provide a valid registration/NTN.
registration/NTN.
Please provide Total Value of Sales Total Value of Sales is not provided, please provide
0085
(In case of PFAD only) valid Total Value of Sales (In case of PFAD only)
You are not an EFS license holder
You are not an EFS license holder who has imported
0086 who has imported Compressor Scrap
Compressor Scrap in the last 12 months.
in the last 12 months.
Petroleum Levy rates not configured Petroleum Levy rates not configured properly. Please
0087
properly. update levy rates properly
Alphanumeric and (-) contained Invoice number is not valid, please provide valid
0088 invoice No. is allowed. (-) should be invoice number in alphanumeric format. For example:
in between Alphanumeric string. Inv-001
FED Charged cannot be empty, please provide valid
0089 Please provide FED Charged
FED Charged
38
Document Version :1.0 PRAL © 2025 – All rights reserved Page 38 of 50
DI API Technical Specification
Please provide Extra Tax Extra Tax cannot be empty, please provide valid extra
0095
tax
Please provide Quantity / Electricity Quantity / Electricity Unit cannot be empty, please
0098
Units provide valid Quantity / Electricity Unit
UOM is not valid. UOM must be according to given HS
0099 Provide uom.
Code
Cotton Ginners allowed against Registered user cannot add sale invoice. Only cotton
0100
registered buyers only. ginner sale type is allowed for registered users.
Please Use Toll Manufacturing Sale Sale type is not selected properly, please use Toll
0101
Type for Steel Sector. Manufacturing Sale Type for Steel Sector.
Calculated tax not matched in 3rd The calculated sales tax not calculated as per 3rd
0102
schedule schedule calculation formula
Calculated tax not matched for potassium chlorate.
The calculated tax for Potassium
0103 Calculated value doesn’t match according to
Chlorate does not match.
potassium chlorate for sales potassium invoices.
Calculated percentage of sales tax not matched.
The calculated percentage sales tax
0104 Calculation must be correct with respect to provided
does not match.
rate
The calculated sales tax for the
0105 The calculated sales tax for the quantity is incorrect.
quantity is incorrect.
The Buyer is not registered for sales
The Buyer is not registered for sales tax. Please
0106 tax. Please provide a valid
provide a valid registration/NTN.
registration/NTN.
Buyer Reg No. doesn’t match. Please provide valid
0107 Mismatch Buyer Registration No.
Buyer Registration Number
39
Document Version :1.0 PRAL © 2025 – All rights reserved Page 39 of 50
DI API Technical Specification
Please provide Quantity / Electricity Quantity / Electricity Unit cannot be empty, please
0166
Units provide valid Quantity / Electricity Unit
Value of Sales Excl. ST cannot be empty/Invalid, please
0167 Provide Value of Sales Excl. ST
provide valid Value of Sales Excl. ST
Cotton Ginners allowed against Only cotton ginner purchase type is allowed for
0168
registered buyers only. registered users.
STWH can only be created for User is not FTN holder, STWH can only be created for
0169
GOV/FTN Holders. GOV/FTN Holders without purchase invoice.
If Value of Sales Excl. ST greater than If Value of Sales Excl. ST greater than 20000 than rate
0170
{0}. Rate {1} not allowed. 5% is not allowed.
You are not an EFS license holder
You are not an EFS license holder who has imported
0171 who has imported Compressor Scrap
Compressor Scrap in the last 12 months.
in the last 12 months.
Petroleum Levy rates not configured Petroleum Levy rates not configured properly. Please
0172
properly. update levy rates properly
Alphanumeric and (-) contained Invoice number is not valid, please provide valid
0173 invoice No. is allowed. (-) should be invoice number in alphanumeric format. For example:
in between Alphanumeric string. Inv-001
Sales Tax cannot be empty, please provide valid Sales
0174 Please provide Sales Tax
Tax
Fixed / notified value or Retail Price cannot be empty,
Please provide Fixed / notified value
0175 please provide valid Fixed / notified value or Retail
or Retail Price
Price
ST withheld at Source cannot be empty, please
0176 Please provide ST withheld at Source
provide valid ST withheld at Source
Further Tax cannot be empty, please provide valid
0177 Please provide Further Tax
further tax
41
Document Version :1.0 PRAL © 2025 – All rights reserved Page 41 of 50
DI API Technical Specification
Invoice Date must be greater or Invoice Date must be greater or equal to original sale
0161
equal to {0} invoice date
Please provide Quantity / Electricity Quantity / Electricity Unit cannot be empty, please
0166
Units provide valid Quantity / Electricity Unit
Cotton Ginners allowed against Only cotton ginner purchase type is allowed for
0168
registered buyers only. registered users.
STWH can only be created for User is not FTN holder, STWH can only be created for
0169
GOV/FTN Holders. GOV/FTN Holders without purchase invoice.
If Value of Sales Excl. ST greater than If Value of Sales Excl. ST greater than 20000 than rate
0170
{0}. Rate {1} not allowed. 5% is not allowed.
You are not an EFS license holder
You are not an EFS license holder who has imported
0171 who has imported Compressor Scrap
Compressor Scrap in the last 12 months.
in the last 12 months.
Petroleum Levy rates not configured Petroleum Levy rates not configured properly. Please
0172
properly. update levy rates properly
42
Document Version :1.0 PRAL © 2025 – All rights reserved Page 42 of 50
DI API Technical Specification
Alphanumeric and (-) contained Invoice number is not valid, please provide valid
0173 invoice No. is allowed. (-) should be invoice number in alphanumeric format. For example:
in between Alphanumeric string. Inv-001
Sales Tax cannot be empty, please provide valid Sales
0174 Please provide Sales Tax
Tax
Fixed / notified value or Retail Price cannot be empty,
Please provide Fixed / notified value
0175 please provide valid Fixed / notified value or Retail
or Retail Price
Price
ST withheld at Source cannot be empty, please
0176 Please provide ST withheld at Source
provide valid ST withheld at Source
43
Document Version :1.0 PRAL © 2025 – All rights reserved Page 43 of 50
DI API Technical Specification
Please provide Quantity / Electricity Quantity / Electricity Unit cannot be empty, please
0166
Units provide valid Quantity / Electricity Unit
Petroleum Levy rates not configured Petroleum Levy rates not configured properly. Please
0172
properly. update levy rates properly
Alphanumeric and (-) contained Invoice number is not valid, please provide valid
0173 invoice No. is allowed. (-) should be invoice number in alphanumeric format. For example:
in between Alphanumeric string. Inv-001
Sales Tax cannot be empty, please provide valid Sales
0174 Please provide Sales Tax
Tax
Fixed / notified value or Retail Price cannot be empty,
Please provide Fixed / notified value
0175 please provide valid Fixed / notified value or Retail
or Retail Price
Price
44
Document Version :1.0 PRAL © 2025 – All rights reserved Page 44 of 50
DI API Technical Specification
45
Document Version :1.0 PRAL © 2025 – All rights reserved Page 45 of 50
DI API Technical Specification
46
Document Version :1.0 PRAL © 2025 – All rights reserved Page 46 of 50
DI API Technical Specification
47
Document Version :1.0 PRAL © 2025 – All rights reserved Page 47 of 50
DI API Technical Specification
48
Document Version :1.0 PRAL © 2025 – All rights reserved Page 48 of 50
DI API Technical Specification
49
Document Version :1.0 PRAL © 2025 – All rights reserved Page 49 of 50
DI API Technical Specification
50
Document Version :1.0 PRAL © 2025 – All rights reserved Page 50 of 50