Get IRN Details By Doc Details
Type
|
Url
|
Headers
|
Parameters
|
SandBox
|
https://gstsandbox.charteredinfo.com/eicore/dec/v1.03/Invoice/irnbydocdetails?QrCodeSize=250
|
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken
7. [ParseIrnResp=0]
|
1. doctype
2. docnum
3. docdate
|
Production
|
https://einvapi.charteredinfo.com/eicore/dec/v1.03/Invoice/irnbydocdetails?QrCodeSize=250
|
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken
7. [ParseIrnResp=0]
|
1. doctype
2. docnum
3. docdate
|
RestClient client = new RestClient("https://gstsandbox.charteredinfo.com/eicore/dec/v1.03/Invoice/irnbydocdetails");
RestRequest request = new RestRequest(Method.GET);
request.AddQueryParameter("doctype", "INV");
request.AddQueryParameter("docnum", "doc123");
request.AddQueryParameter("docdate", "04/10/2022");
request.AddHeader("Gstin", "");
request.AddHeader("user_name", "");
request.AddHeader("AuthToken", "");
request.AddHeader("aspid", "");
request.AddHeader("password", "");
request.AddHeader("Content-Type", "application/json; charset=utf-8");
request.RequestFormat = DataFormat.Json;
IRestResponse response = await client.ExecuteTaskAsync(request);
RespPl respPl = new RespPl();
respPl = JsonConvert.DeserializeObject<RespPl>(response.Content);
RespPlGenIRN respPlGetIRNDetailsByDocDetailsDec = new RespPlGetIRNDetailsByDocDetailsDec();
respPlGetIRNDetailsByDocDetailsDec = JsonConvert.DeserializeObject<RespPlGetIRNDetailsByDocDetailsDec>(respPl.Data);
NOTE: If you wat just NIC Response and not using the Parsed Response that TaxPro GSP Returns in fields ExtractedSignedInvoiceData, ExtractedSignedQRCode, and QrCodeImage, please use query parm ParseIrnResp=0. This would prevent parsing of response and speed-up the API Response.
Success Responce
{
"Status": "1",
"Data": "{\"AckNo\":\"152010012558831\",\"AckDt\":\"2020-11-30 10:47:00\",\"Irn\":\"dbec911c8fcb5e49a6fc2361d4fb28a930225f112fceca5099577f54bf463874\",\"SignedInvoice\":\"eyJhbGciOiJSUzI1NiIsImtpZCI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EdFwiOlwiMDgvMTAvMjAyMFwiLFwiVG90SW52VmFsXCI6MTI5MDgsXCJJdGVtQ250XCI6MSxcIk1haW5Ic25Db2RlXCI6XCIxMDAxXCIsXCJJcm5cIjpcImRiZWM5MTFjOGZjYjVlNDlhNmZjMjM2MWQ0ZmIyOGE5MzAyMjVmMTEyZmNlY2E1MDk5NTc3ZjU0YmY0NjM4NzRcIixcIklybkR0XCI6XCIyMDIwLTExLTMwIDEwOjQ3OjAwXCJ9IiwiaXNzIjoiTklDIn0.LHnfRkQsqLh4XL1psXf2KV2EoSSSfhvrKNblmAlpeN82mpoDzwUXDuUsYwTVGWnkUbEcEOwcuO6W-5TJ5mpGuAa2cWizGD9WdpMsdgWiQDUvQED4nb5A_v-L1WpNOWyA4bcxvXhN0Ip1Cu5ll9XR-ETjahcyMvCCCmx0G2cqO4mUPXm9PtHmKHc8XJxdKmJxjPtZ5Ck5t7pNEk4xoNIgSJ9BsVFtYFht0pITT9EL5TUaw9HgQpfmZjGS_rzLouC1D4cFTMoRGI1TC9dVTk009ORCkv-TUBkTK4EeoQTg5ZtO4RE71MbT98pefBmOTIvc4KxsEahpiEevXAfZJPrLIg\",\"Status\":\"ACT\",\"EwbNo\":null,\"EwbDt\":null,\"EwbValidTill\":null,\"ExtractedSignedInvoiceData\":{\"AckNo\":152010012558831,\"AckDt\":\"2020-11-30 10:47:00\",\"Version\":\"1.1\",\"Irn\":\"dbec911c8fcb5e49a6fc2361d4fb28a930225f112fceca5099577f54bf463874\",\"TranDtls\":{\"TaxSch\":\"GST\",\"SupTyp\":\"B2B\",\"RegRev\":\"Y\",\"EcmGstin\":null,\"IgstOnIntra\":\"N\"},\"DocDtls\":{\"Typ\":\"INV\",\"No\":\"DOC/1661296396\",\"Dt\":\"08/10/2020\"},\"SellerDtls\":{\"Gstin\":\"34AACCC1596Q002\",\"LglNm\":\"NIC company pvt ltd\",\"TrdNm\":\"NIC Industries\",\"Addr1\":\"5th block, kuvempu layout\",\"Addr2\":\"kuvempu layout\",\"Loc\":\"GANDHINAGAR\",\"Pin\":605001,\"Stcd\":34,\"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\"},\"ValDtls\":{\"AssVal\":9978.84,\"CgstVal\":0.0,\"SgstVal\":0.0,\"IgstVal\":1197.46,\"CesVal\":508.94,\"StCesVal\":1202.46,\"Discount\":10.0,\"OthChrg\":20.0,\"RndOffAmt\":0.3,\"TotInvVal\":12908.0,\"TotInvValFc\":12897.7},\"PayDtls\":{\"Nm\":\"ABCDE\",\"AccDet\":\"5697389713210\",\"Mode\":\"Cash\",\"FinInsBr\":\"SBIN11000\",\"CrTrn\":\"test\",\"PayInstr\":\"Gift\",\"PayTerm\":\"100\",\"DirDr\":\"test\",\"CrDay\":100,\"PaidAmt\":10000.0,\"PaymtDue\":5000.0},\"ExpDtls\":{\"ShipBNo\":\"A-248\",\"ShipBDt\":\"01/08/2020\",\"CntCode\":\"AE\",\"ForCur\":\"AED\",\"InvForCur\":null,\"Port\":\"INABG1\",\"RefClm\":\"N\"},\"RefDtls\":{\"InvRm\":\"TEST\",\"DocPerdDtls\":{\"InvStDt\":\"01/08/2020\",\"InvEndDt\":\"01/09/2020\"},\"PrecDocDtls\":[{\"InvNo\":\"DOC/002\",\"InvDt\":\"01/08/2020\",\"OthRefNo\":\"123456\"}],\"ContrDtls\":[{\"RecAdvDt\":\"01/08/2020\",\"RecAdvRefr\":\"Doc/003\",\"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\"}],\"EwbDtls\":{\"TransId\":\"12AWGPV7107B1Z1\",\"TransName\":\"XYZ EXPORTS\",\"TransMode\":\"1\",\"Distance\":100,\"TransDocNo\":\"DOC01\",\"TransDocDt\":\"18/09/2020\",\"VehNo\":\"ka123456\",\"VehType\":\"R\"},\"ItemList\":[{\"ItemNo\":0,\"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.0,\"PreTaxVal\":1.0,\"AssAmt\":9978.84,\"GstRt\":12.0,\"IgstAmt\":1197.46,\"CgstAmt\":0.0,\"SgstAmt\":0.0,\"CesRt\":5.0,\"CesAmt\":498.94,\"CesNonAdvlAmt\":10.0,\"StateCesRt\":12.0,\"StateCesAmt\":1197.46,\"StateCesNonAdvlAmt\":5.0,\"OthChrg\":10.0,\"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\"}]}]},\"ExtractedSignedQrCode\":{\"SellerGstin\":\"34AACCC1596Q002\",\"BuyerGstin\":\"29AWGPV7107B1Z1\",\"DocNo\":\"DOC/1661296396\",\"DocTyp\":\"INV\",\"DocDt\":\"08/10/2020\",\"TotInvVal\":12908.0,\"ItemCnt\":\"1\",\"MainHsnCode\":\"1001\",\"Irn\":\"dbec911c8fcb5e49a6fc2361d4fb28a930225f112fceca5099577f54bf463874\"},\"QrCodeImage\":null,\"JwtIssuer\":\"NIC\"}",
"ErrorDetails": null,
"InfoDtls": null
}