TaxPro GSP - eInvoiceAPI
User Guide
 
 
×
Menu
Index

    Sample Code for Auth Token

     
     
     
    Type
    Url
    Headers
    SandBox
    https://gstsandbox.charteredinfo.com/eivital/dec/v1.04/auth
    1. aspid
    2. password
    3. Gstin
    4. user_name
    5. eInvPwd
    Production
    https://einvapi.charteredinfo.com/eivital/dec/v1.04/auth
    1. aspid
    2. password
    3. Gstin
    4. user_name
    5. eInvPwd
     
    Auth Token Code
     RestClient client = new RestClient("https://gstsandbox.charteredinfo.com/eivital/dec/v1.04/auth");
                RestRequest request = new RestRequest(Method.GET);
     
                request.AddHeader("Gstin", "<---->");
                request.AddHeader("user_name", "<---->");
                request.AddHeader("aspid", "<---->");
                request.AddHeader("password", "<---->");
                request.AddHeader("eInvPwd", "<---->");
                request.AddHeader("Content-Type", "application/json; charset=utf-8");
                request.RequestFormat = DataFormat.Json;
     
                IRestResponse response = await client.ExecuteTaskAsync(request);
     
    Success Responce
    {
        "Status": 1,
        "Data": {
            "ClientId": "AACCC29GSPR5CM0",
            "UserName": "TaxProEnvMEG",
            "AuthToken": "BRIJRW9oVS0FewJj95ZaR01E9",
            "Sek": "",
            "TokenExpiry": "2020-03-11T14:32:31"
        },
        "ErrorDetails": null
        "InfoDtls": null
    }
     
     
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------