Skip to content

e-Invoice API Regular Expressions

e invoice api regular expressions 648ae3e595bfc
Sr.No.(Published in GSTN Portal)Regular Expression
1Basic Details
1.1Document_Num^([a-zA-Z1-9]{1}[a-zA-Z0-9/-]{0,15})$
1.2Document_Date^[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]$
2Delivery_or_Invoice_Period
Document_Period_Start_Date^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19[8-9][0-
9]|20[0-5][0-9])$
Document_Period_End_ Date^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19[8-9][0-
9]|20[0-5][0-9])$
3Preceding Document / Contract Reference
3.1Preceding Document Reference
3.1.1Preceding_Document_ Number^([a-zA-Z1-9]{1}[a-zA-Z0-9/-]{0,15})$
3.1.2Preceding_Document_ Date^[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]$
3.2Receipt / Contract References
3.2.1Receipt_Advice _Date^[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]$
3.2.2PO_Ref_Date^[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]$
4Supplier Information
4.1Supplier_GSTIN([0-9]{2}[A-Z 0-9]{13})
4.2Supplier_State_Code^([0-9]{1,2})$
4.3Supplier_Phone^([0-9]{6,12})$
4.4Supplier_Email^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$
5Recipient Information
5.1Recipient_GSTIN([0-9]{2}[A-Z 0-9]{13})|URP
5.2Place_Of_Supply_State_Code^([0-9]{1,2})$
5.3Recipient_State_Code^([0-9]{1,2})$
5.4Recipient_Phone^([0-9]{6,12})$
5.5Recipient_email_ID^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$
9Extra Information
9.1Export_Duty_Amount^\d+.?\d{0,2}$
9.2ECOM_GSTIN([0-9]{2}[A-Z 0-9]{13})
10E-way Bill Details
10.1Transporter_ID([0-9]{2}[A-Z 0-9]{13})
10.2Trans_Mode([1-4]{1})?
10.3Trans_Doc_No.^[a-zA-Z0-9]{1}[a-zA-Z0-9-/]*$
10.4Trans_Doc_Date^[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]$
A.1.0Ship to Details
A.1.0.1ShipTo_GSTIN([0-9]{2}[A-Z 0-9]{13})|URP
A.1.1Dispatch From Details
A.1.1.1DispatchFrom_State_Code^([0-9]{1,2})$
A.1.2Item Details
A.1.2.1HSN_Code
A.1.2.2Quantity^\d+.?\d{0,3}$
A.1.2.3Free_Qty^\d+.?\d{0,3}$
A.1.2.4Item_Price^\d+.?\d{0,3}$
A.1.2.5Gross_Amount^\d+.?\d{0,2}$
A.1.2.6Item_Discount_Amount^\d+.?\d{0,2}$
A.1.2.7Pre_Tax_Value^\d+.?\d{0,2}$
A.1.2.8 PItem_Taxable_Value^\d+.?\d{0,2}$
A.1.2.9GST_Rate^\d+.?\d{0,3}$
A.1.2.1
0
IGST_Amt^\d+.?\d{0,2}$
A.1.2.1
1
CGST_Amt^\d+.?\d{0,2}$
A.1.2.1
2
SGST_UTGST_Amt^\d+.?\d{0,2}$
A.1.2.1
3
Comp_Cess_Rate_Ad_Valorem^\d+.?\d{0,3}$
A.1.2.1
4
Comp_Cess_Amt_ Ad_Valorem^\d+.?\d{0,2}$
A.1.2.1
5
Comp_Cess_Amt_Non_Ad_Valor
em
^\d+.?\d{0,2}$
A.1.2.1
6
State_Cess_Rate_Ad_Valorem^\d+.?\d{0,3}$
A.1.2.1
7
State_Cess_Amt_Ad_Valorem^\d+.?\d{0,2}$
A.1.2.1
8
State_Cess_Amt_Non_Ad_Valore
m
^\d+.?\d{0,2}$
A.1.2.2
0
Other_Charges_Item_Level^\d+.?\d{0,2}$
A.1.2.2
1
Item_Total_Amt^\d+.?\d{0,2}$
A.1.3Document Total Details
A.1.3.1Taxable_Value_Total^\d+.?\d{0,2}$
A.1.3.2IGST_Amt_Total^\d+.?\d{0,2}$
A.1.3.3CGST_Amt_Total^\d+.?\d{0,2}$
A.1.3.4SGST_UTGST_Amt_Total^\d+.?\d{0,2}$
A.1.3.5Comp_CESS_Amt_Total^\d+.?\d{0,2}$
A.1.3.6State_Cess_Amt_Total^\d+.?\d{0,2}$
A.1.3.7Discount_Amt_Invoice_Level^\d+.?\d{0,2}$
A.1.3.8 OOther_Charges_Invoice_Level^\d+.?\d{0,2}$
A.1.3.9Round_off_amount^-?\d+.?\d{0,2}$
A.1.3.1
0
Total_Invoice_Value_INR^\d+.?\d{0,2}$
A.1.3.1
1
Total_Invoice_Value_FCNR^\d+.?\d{0,2}$
A.1.3.1
2
Paid_Amount^\d+.?\d{0,2}$
A.1.3.1
3
Amount_due^\d+.?\d{0,2}$
A.1.4colBatch Details
A.1.4.1Batch_Expiry_Date^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19[8-9][0-
9]|20[0-5][0-9])$
A.1.4.2Warranty_Date^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19[8-9][0-
9]|20[0-5][0-9])$

Share this post on social

About us

WhiteBooks smart solutions enable owners to manage their businesses on a feature-rich automated software accounting platform. Hassle-free, easy-to-use, secure, affordable, and accurate – We have simplified business accounting for you!

The content on this website is for educational and informational purposes only. We strive to provide up-to-date information but make no warranties regarding the accuracy of our information.