Skip to content

Generate E-invoice Call

URL#

Refer to API Ecosystem and NIC API document to form the correct URL.

The below example is provided for version: v1.03

The URL is the URL of the particular save call you wish to use. In this case the example will be

/gus/irp/{irp_provider}/eicore/v1.03/Invoice

Data#

You will need to create a JSON for the post request. A sample is provided below.

{
  "Version": "1.1",
  "TranDtls": {
    "TaxSch": "GST",
    "SupTyp": "B2B",
    "RegRev": "Y",
    "EcmGstin": null,
    "IgstOnIntra": "N"
  },
  "DocDtls": {
    "Typ": "INV",
    "No": "DOC/001",
    "Dt": "18/08/2020"
  },
  "SellerDtls": {
    "Gstin": "37ARZPT4384Q1MT",
    "LglNm": "NIC company pvt ltd",
    "TrdNm": "NIC Industries",
    "Addr1": "5th block, kuvempu layout",
    "Addr2": "kuvempu layout",
    "Loc": "GANDHINAGAR",
    "Pin": 518001,
    "Stcd": "37",
    "Ph": "9000000000",
    "Em": "abc@gmail.com"
  },
  "BuyerDtls": {
    "Gstin": "29AWGPV7107B1Z1",
    "LglNm": "XYZ company pvt ltd",
    "TrdNm": "XYZ Industries",
    "Pos": "12",
    "Addr1": "7th block, kuvempu layout",
    "Addr2": "kuvempu layout",
    "Loc": "GANDHINAGAR",
    "Pin": 562160,
    "Stcd": "29",
    "Ph": "91111111111",
    "Em": "xyz@yahoo.com"
  },
  "DispDtls": {
    "Nm": "ABC company pvt ltd",
    "Addr1": "7th block, kuvempu layout",
    "Addr2": "kuvempu layout",
    "Loc": "Banagalore",
    "Pin": 562160,
    "Stcd": "29"
  },
  "ShipDtls": {
    "Gstin": "29AWGPV7107B1Z1",
    "LglNm": "CBE company pvt ltd",
    "TrdNm": "kuvempu layout",
    "Addr1": "7th block, kuvempu layout",
    "Addr2": "kuvempu layout",
    "Loc": "Banagalore",
    "Pin": 562160,
    "Stcd": "29"
  },
  "ItemList": [
    {
      "SlNo": "1",
      "PrdDesc": "Rice",
      "IsServc": "N",
      "HsnCd": "1001",
      "Barcde": "123456",
      "Qty": 100.345,
      "FreeQty": 10,
      "Unit": "BAG",
      "UnitPrice": 99.545,
      "TotAmt": 9988.84,
      "Discount": 10,
      "PreTaxVal": 1,
      "AssAmt": 9978.84,
      "GstRt": 12,
      "IgstAmt": 1197.46,
      "CgstAmt": 0,
      "SgstAmt": 0,
      "CesRt": 5,
      "CesAmt": 498.94,
      "CesNonAdvlAmt": 10,
      "StateCesRt": 12,
      "StateCesAmt": 1197.46,
      "StateCesNonAdvlAmt": 5,
      "OthChrg": 10,
      "TotItemVal": 12897.7,
      "OrdLineRef": "3256",
      "OrgCntry": "AG",
      "PrdSlNo": "12345",
      "BchDtls": {
        "Nm": "123456",
        "ExpDt": "01/08/2020",
        "WrDt": "01/09/2020"
      },
      "AttribDtls": [
        {
          "Nm": "Rice",
          "Val": "10000"
        }
      ]
    }
  ],
  "ValDtls": {
    "AssVal": 9978.84,
    "CgstVal": 0,
    "SgstVal": 0,
    "IgstVal": 1197.46,
    "CesVal": 508.94,
    "StCesVal": 1202.46,
    "Discount": 10,
    "OthChrg": 20,
    "RndOffAmt": 0.3,
    "TotInvVal": 12908,
    "TotInvValFc": 12897.7
  },
  "PayDtls": {
    "Nm": "ABCDE",
    "AccDet": "5697389713210",
    "Mode": "Cash",
    "FinInsBr": "SBIN11000",
    "PayTerm": "100",
    "PayInstr": "Gift",
    "CrTrn": "test",
    "DirDr": "test",
    "CrDay": 100,
    "PaidAmt": 10000,
    "PaymtDue": 5000
  },
  "RefDtls": {
    "InvRm": "TEST",
    "DocPerdDtls": {
      "InvStDt": "01/08/2020",
      "InvEndDt": "01/09/2020"
    },
    "PrecDocDtls": [
      {
        "InvNo": "DOC/002",
        "InvDt": "01/08/2020",
        "OthRefNo": "123456"
      }
    ],
    "ContrDtls": [
      {
        "RecAdvRefr": "Doc/003",
        "RecAdvDt": "01/08/2020",
        "TendRefr": "Abc001",
        "ContrRefr": "Co123",
        "ExtRefr": "Yo456",
        "ProjRefr": "Doc-456",
        "PORefr": "Doc-789",
        "PORefDt": "01/08/2020"
      }
    ]
  },
  "AddlDocDtls": [
    {
      "Url": "https://einv-apisandbox.nic.in",
      "Docs": "Test Doc",
      "Info": "Document Test"
    }
  ],
  "ExpDtls": {
    "ShipBNo": "A-248",
    "ShipBDt": "01/08/2020",
    "Port": "INABG1",
    "RefClm": "N",
    "ForCur": "AED",
    "CntCode": "AE",
    "ExpDuty": null
  },
  "EwbDtls": {
    "TransId": "12AWGPV7107B1Z1",
    "TransName": "XYZ EXPORTS",
    "Distance": 100,
    "TransDocNo": "DOC01",
    "TransDocDt": "18/08/2020",
    "VehNo": "ka123456",
    "VehType": "R",
    "TransMode": "1"
  }
}

Request Payload#

The JSON you constructed above will need to be encrypted using the sek you got during the authentication call. That encrypted string becomes the “data” field in the request payload. The resultant payload will look like follows

{
  "Data": "cwMtQmlx/upJuEqKfTMTQ6RH1s6SOQwm9SknTMBvHm9CFeJCCs4otZZbdf76sP/xpR4K3H5qvf1FmSrIFw1kmcPG1fSrE+AhZXjicr07dFsFmngugxwcTu 4BScdA75FgIolVbvDnDgvzJyg9mDWxMIM3Mkbtt7by5XC9CqVqqhnPSri9R5UE3PJgVKcMsM3aBewBdNGiQ/2Z9fITZwCp1l/z6h6pMDd93GT30I8nxMsn3 frJfUJZF+VW0LDdaHRYZI06mE3oBELTKgLh6QCLyaa1F+UtwjVCWNcilnIl0Lcr8fYzg0b8hqe4BoVRxKsccK128+69NuI3QIIvpBywrqz+q1+vhK7bg6WM T7tOT+8us/LvTSEFdDS0IjFD8PcBQuqHPeeHRNyYCln9M0yEeWwWue+JoXHPlWT4RVQsJdcaEVC2EdXoYdHQBx9t+PmXCAOpdHNqLVuHMldHyDVdskznY35 SdvpbA4MgYu4OVmYoPYIqlXJBP39/P0CiQR6IA1S/YY76n2FB+QqJI1n3ayvvu/WD4k6lY98L96TOSa4ssF0e1F75axBLE9yyOU2aAJhpahF+Syhj5sLR/m RxRxD6sy01mLsVthW6ua+kRRY4IwGP9dJGmE/Tbnf3FTa413oFyG/At5oR5LFh2ckNDzZ2Jbriv4LZBw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juCfF7+P/Qz/DiPND9lQorNEcSbvpAFdf6EbkBF Lg3fijnBRAbEzu+dIkk6UUedshxIaobIiTSCd+wM09y+bmqLLCzYvmY2FsJb6Eprr+CxM2FJGca+03IU3ABJVQEWylYI0Dia7jMZjt07KR/SBD0DXCImYur vzsJKiNKhQYsAtkyldq1MQ4L1PzvhJHWyV4hs7AHrPmztkNFNE2Sg+DqMfsEGYq99j6ZnseW1CI/dbY3bq9B3yNRcJr5QVfOVWI5NE73tTc55MR2RJ6h8wy 70qQX9hhKeYE4EVk0lxIvMuOsypc60AadwqIp3PfgiuI3UYFBerwHiWTe8meMnJov15VjbTRBq9SHyJLgDHCoDM9Gq0x00LIK4C/SjS8hvKXi8Gw87aXITo lalUhdOLUq6ULvE2CMOeL6tzlRO7DgLFyv+2Th9AjgwC1k3+LPjiEDRS6Xsi0d2XzL21AAQGuDJapFJNQFDjs4INDjV7mFahiNQva7SrbHknz0A77wdc/Hb Rrk5TggcYGgm6UaidlAQEjNnT88tP11dZaGvqIdzKLxDQDDALx7JHGmlalgOPe4su9gFHfQ+PV1k+VBUp5m9tOYpCHgls57+nk+BW3Q2Dh83ULxFxUYZPN6 M4dI+kGiZA/kNcp13AOebUPMtKnmiTPFRJoTvjPbyfCRtd3cy6CilfBdNY0v9pJ1zhUgYk/NUyMmK9lIoQZzdFAuEiGFWp2QfTrCcRnh4H6ABSQ4+3eZ5g7 ZiRVUIt5Tkvv8+7bPnRkQJSYtA5pmppYtK4ris4IJWr/yMvBazHaLZfusO0F8XMAg7C/E8JenI6HEb4CceTfPeAw44nk5gVMOVzlCG/DvTMxDQCqKG5Zt1I yV9dWmplE80bTjkz4k/CzRC/7yN7g=="
}

Headers#

The sample headers will look like follows

Name Value
gstin <your-GSTIN>
Content-Type application/json
authtoken <your-authorization-token>
user_name <your-username>
X-Asp-Auth-Token <your-X-Asp-Auth-Token>
X-Asp-Auth-Signature <your-X-Asp-Auth-Signature>

Processing the response#

The sample response will look like follows. It reaches you in a single line. Ind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of the data field are actually the contents of the encrypted value of the real response payload. So decrypt it using the SEK, and you will get something along the following lines (indented for clarity)

Sample Response payload#

{
  "AckNo": 112010000002315,
  "AckDt": "2020-08-05 15:18:00",
  "Irn": "11f8ef701fe294d4a14aad0b12457e62775d0fdc41a0acf05b74fbb2ddc47acb",
  "SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjExNUY0NDI2NjE3QTc5MzhCRTFCQTA2REJFRTkxQTQyNzU4NEVEQUIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJFVjlFSm1GNmVUaS1HNkJ0dnVrYVFuV0U3YXMifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxMTIwMTAwMDAwMDIzMTUsXCJBY2tEdFwiOlwiMjAyMC0wOC0wNSAxNToxODowMFwiLFwiSXJuXCI6XCIxMWY4ZWY3MDFmZTI5NGQ0YTE0YWFkMGIxMjQ1N2U2Mjc3NWQwZmRjNDFhMGFjZjA1Yjc0ZmJiMmRkYzQ3YWNiXCIsXCJWZXJzaW9uXCI6XCIxLjAxXCIsXCJUcmFuRHRsc1wiOntcIlRheFNjaFwiOlwiR1NUXCIsXCJTdXBUeXBcIjpcIkIyQlwiLFwiUmVnUmV2XCI6XCJOXCIsXCJJZ3N0T25JbnRyYVwiOlwiWVwifSxcIkRvY0R0bHNcIjp7XCJUeXBcIjpcIklOVlwiLFwiTm9cIjpcIkRELTIwMjAwODA0LTlcIixcIkR0XCI6XCIwNC8wOC8yMDIwXCJ9LFwiU2VsbGVyRHRsc1wiOntcIkdzdGluXCI6XCIzN0FSWlBUNDM4NFExTVRcIixcIkxnbE5tXCI6XCIgQUJDIGNvbXBhbnkgcHZ0IGx0ZFwiLFwiVHJkTm1cIjpcInZpa2FzXCIsXCJBZGRyMVwiOlwiVEUgaFwiLFwiQWRkcjJcIjpcImFiY1wiLFwiTG9jXCI6XCJCYW5nYWxvcmVcIixcIlBpblwiOjUxNTMxMSxcIlN0Y2RcIjpcIjM3XCIsXCJQaFwiOl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ZcIixcIkRvY0R0XCI6XCIwNC8wOC8yMDIwXCIsXCJUb3RJbnZWYWxcIjo3Nzc2LjMsXCJJdGVtQ250XCI6MyxcIk1haW5Ic25Db2RlXCI6XCIxMDAxXCIsXCJJcm5cIjpcIjExZjhlZjcwMWZlMjk0ZDRhMTRhYWQwYjEyNDU3ZTYyNzc1ZDBmZGM0MWEwYWNmMDViNzRmYmIyZGRjNDdhY2JcIn0iLCJpc3MiOiJOSUMifQ.fya8oD85f2_K8pDWSf8N94_T24O1lA9OPpIuUwk14el_r1lhL13OFxGkklhiewSMUom8DvO9JKu4jjz2l5farRTJhiBWJ43EtEky2SLzRhJf23JYW_6PyLErYL2RTzv2PlZ75eXIBZzPkxc2erCx61T50oHmExLgl1Q6HclvgiQUAVxysq1VFv96zEZVH8I0xDNqjdvqdtsW74ZHqzpV28kDIvuyV4Z5j3bR39GE6YKMetext_x3bJ4Wt4F1z3DOzfUjuKGdEjP0fTSwNg1RpiDoH4wcaMP7RJgtbQYXn4j3YoppCEw916AmbihiT2gSODPn04vhCbBecI7oOZvxpw",
  "Status": "ACT",
  "EwbNo": 191008688443,
  "EwbDt": "2020-08-05 15:18:00",
  "EwbValidTill": "2020-08-06 23:59:00",
  "Remarks": null
}

You can download the e-invoice pdf using this payload by uploading the json file here