Type
|
Url
|
Headers
|
SandBox
|
https://gstsandbox.charteredinfo.com/eivital/dec/v1.04/Master/gstin/<GSTIN To Search>
|
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken
|
Production
|
https://einvapi.charteredinfo.com/eivital/dec/v1.04/Master/gstin/<GSTIN To Search>
|
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken
|
RestClient client = new RestClient("https://gstsandbox.charteredinfo.com/eivital/dec/v1.04/Master/gstin/<GSTIN To Search>");
RestRequest request = new RestRequest(Method.GET);
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);
RespPlGenIRNDec respPlGenIRNDec = new RespPlGenIRNDec();
respPlGenIRNDec = JsonConvert.DeserializeObject<RespPlGenIRNDec>(respPl.Data);
Success Responce:-
{
"Status": "1",
"Data": "{\"Gstin\":\"34AACCC1596Q002\",\"TradeName\":null,\"LegalName\":\"Chartered Information Systems Private Limited\",\"AddrBnm\":null,\"AddrBno\":null,\"AddrFlno\":null,\"AddrSt\":null,\"AddrLoc\":null,\"StateCode\":34,\"AddrPncd\":560009,\"TxpType\":null,\"Status\":\"ACT\",\"BlkStatus\":\"U\",\"DtReg\":null,\"DtDReg\":null}",
"ErrorDetails": null,
"InfoDtls": null
}