Generate e-invoice
Last updated
Last updated
URL
Method Type
POST
Post Parameters (JSON Format)
{
"access_token":"a78e74508f285f5cd120716b81d8e91f2af96326","user_gstin": "09AAAPG7885R002","data_source": "erp","transaction_details": {"supply_type": "B2B","charge_type": "N","igst_on_intra": "N", "ecommerce_gstin": ""
},
"document_details": {"document_type": "INV","document_number": "MIPL/101","document_date": "12/08/2020"},"seller_details": {"gstin": "09AAAPG7885R002","legal_name": "MastersIndia UP","trade_name": "MastersIndia UP","address1": "Vila","address2": "Vila","location": "Noida","pincode": 201301,"state_code": "UTTAR PRADESH","phone_number": 9876543231,"email": ""
},"buyer_details": {"gstin": "05AAAPG7885R002","legal_name": "MastersIndia UT","trade_name": "MastersIndia UT","address1": "Kila","address2": "Kila","location": "Nainital","pincode": 263001,"place_of_supply": "5","state_code": "UTTARAKHAND","phone_number": 9876543231,"email": ""
},"dispatch_details": {
"company_name": "MastersIndia UP","address1": "Vila","address2": "Vila","location": "Noida","pincode": 201301,"state_code": "UTTAR PRADESH"},"ship_details": {"gstin": "05AAAPG7885R002","legal_name": "MastersIndia UT","trade_name": "MastersIndia UT","address1": "Kila","address2": "Kila","location": "Nainital","pincode": 263001,"state_code": "UTTARAKHAND"
},
"export_details": {"ship_bill_number": "","ship_bill_date": "12/08/2020","country_code": "IN","foreign_currency": "INR","refund_claim": "N","port_code": "","export_duty": 2534.34},"payment_details": {"bank_account_number": "Account Details","paid_balance_amount": 100,"credit_days": 2,"credit_transfer": "Credit Transfer","direct_debit": "Direct Debit","branch_or_ifsc": "KKK000180","payment_mode": "CASH","payee_name": "Payee Name","outstanding_amount": 1.9,"payment_instruction": "Payment Instruction","payment_term": "Terms of Payment"},"reference_details": {"invoice_remarks": "Invoice Remarks","document_period_details": {"invoice_period_start_date": "2020-08-06","invoice_period_end_date": "2020-08-07"},"preceding_document_details": [{"reference_of_original_invoice": "CFRT/0006","preceding_invoice_date": "07/03/2020","other_reference": "2334"}],"contract_details": [{"receipt_advice_number": "aaa","receipt_advice_date": "07/03/2020","batch_reference_number": "2334","contract_reference_number": "2334","other_reference": "2334","project_reference_number": "2334","vendor_po_reference_number": "233433454545","vendor_po_reference_date": "07/02/2020"}]},"additional_document_details": [{"supporting_document_url": "asafsd","supporting_document": "india","additional_information": "india"}],"value_details": {"total_assessable_value": 4,"total_cgst_value": 0,"total_sgst_value": 0,"total_igst_value": 0.2,"total_cess_value": 0,"total_cess_value_of_state": 0,"total_discount": 0,"total_other_charge": 0,"total_invoice_value": 4.2,"round_off_amount": 0,"total_invoice_value_additional_currency": 0},"ewaybill_details": {"transporter_id": "05AAABB0639G1Z8","transporter_name": "Jay Trans","transportation_mode": "1","transportation_distance": "0","transporter_document_number": "1230","transporter_document_date": "12/08/2020","vehicle_number": "PQR1234","vehicle_type": "R"
},
"item_list": [{"item_serial_number": "501","product_description": "Wheat desc","is_service": "N","hsn_code": "1001","bar_code": "1212","quantity": 1,"free_quantity": 0,"unit": "KGS","unit_price": 4,"total_amount": 4,"pre_tax_value": 0,"discount": 0,"other_charge": 0,"assessable_value": 4,"gst_rate": 5,"igst_amount": 0.2,"cgst_amount": 0,"sgst_amount": 0,"cess_rate": 0,"cess_amount": 0,"cess_nonadvol_amount": 0,"state_cess_rate": 0,"state_cess_amount": 0,"state_cess_nonadvol_amount": 0,"total_item_value": 4.2,"country_origin": "","order_line_reference": "","product_serial_number": "","batch_details": {"name": "aaa","expiry_date": "31/10/2020","warranty_date": "31/10/2020"
},"attribute_details": [{"item_attribute_details": "aaa","item_attribute_value": "147852"}]}]}
Success Response
{
{
"results": {
"message": {
"AckNo": 48100019285,
"AckDt": "2020-05-23 14:37:00",
"Irn": "9333faeb236d89bf77a009d59a5750c0f8a8733a670965cbc08fb3f330d293ac",
"SignedInvoice":
"eyJhbGciOiJSUzI1NiIsImtpZCI6IjExNUY0NDI2NjE3QTc5MzhCRTFCQTA2REJFRTkxQTQyNzU4NEVEQUIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJFVjlFSm1GNmVUaS1HNk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V0U3YXMifQ.eyJkYXRhIjoie1wiU2VsbGVyR3N0aW5cIjpcIjA5QUFBUEc3ODg1UjAwMlwiLFwiQnV5ZXJHc3RpblwiOlwiMDVBQUFQRzc4ODVSMDAyXCIsXCJEb2NOb1wiOlwiTUlQTC8xMDFcIixcIkRvY1R5cFwiOlwiSU5WXCIsXCJEb2NEdFwiOlwiMjIvMDUvMjAyMFwiLFwiVG90SW52VmFsXCI6NC4yLFwiSXRlbUNudFwiOjEsXCJNYWluSHNuQ29kZVwiOlwiMTAwMVwiLFwiSXJuXCI6XCI5MzMzZmFlYjIzNmQ4OWJmNzdhMDA5ZDU5YTU3NTBjMGY4YTg3MzNhNjcwOTY1Y2JjMDhmYjNmMzMwZDI5M2FjXCJ9IiwiaXNzIjoiTklDIn0.WfS4E-6fgiLePpbLqomH3JuVBYhJIgZtZGYLg3TlqsedNGsCnS4g_78Zn9hCzlUNu2RPbvI1OxNMVKvEciKNZ0LQcZZU_6ylHrMgEV-smyxSc9lWjhhrRGdJbLhG7m-r9QL5MsZIXSBQDfVpvyAv3nNShZlh5AAIcMP5OF7O00k0ZFyTGvrFmGGNACAoYuo_mSn1hxX90vPdW43W80w34iCge1O5jbxnJPWS_h3QTb4NY2u10wnl2rkKx8bP7QjpOchpoF7SCrT-UC_ZWnUVxaAML9yZhLpgf1u2iUxobq7AwdQJqNx3yLm_cPaue9h1ti4MFAUDOuR7BS6jo-yFEg",
"EwbNo": 431008683041,
"EwbDt": 2020-05-27 22:00:00,
"EwbValidTill": 2020-05-30 23:59:00,
"QRCodeUrl": "https://clientbasic.mastersindia.co/Einvoiceapis/printQRCode/5ec8e818c3dddd2a20c1f2f2",
"EinvoicePdf": "https://clientbasic.mastersindia.co/EwayBills/einvoicePrintPdf/5ec8e818c3dddd2a20c1f2f3",
"Status": "ACT",
"alert": "",
"error": false },
"errorMessage": "",
"InfoDtls": "",
"status": "Success",
"code": 200,
"requestId": "09AAAPG7885R002_MIPL/101_1590224905"
}
}
Error Response
{
"results": {
"message": "",
"errorMessage": "2150: Duplicate IRN",
"InfoDtls":
"[{"InfCd":"DUPIRN","Desc":{"AckNo":142010000000208,"AckDt":"2020-08-10 09:56:00","Irn":"9bc08c72c8c406d0d6a7080524f7e0bfd8fdf8156573201efadf8d7ac11a6f23"}}]",
"status": "Failed",
"code": 204,
"requestId": "09AAAPG7885R002_MS/10403_1597053704"
}
}