TaxPro GSP - eInvoiceAPI
User Guide
 
 
×
Menu
Index

Generate Ewb by IRN

 
 
Type
Url
Headers
SandBox
https://gstsandbox.charteredinfo.com/eiewb/dec/v1.03/ewaybill
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken
Production
https://einvapi.charteredinfo.com/eiewb/dec/v1.03/ewaybill
1. aspid
2. password
3. Gstin
4. user_name
5. AuthToken


 
 
string strJson = File.ReadAllText(@"C:\Users\Pallavi\Desktop\e-Invoice\SampleJsonGenEwbByIRN.txt");
 
            RestClient client = new RestClient("https://gstsandbox.charteredinfo.com/eiewb/dec/v1.03/ewaybill");
            RestRequest request = new RestRequest(Method.POST);
            request.AddHeader("Gstin", "29AACCC1596Q000");
            request.AddHeader("user_name", "TaxProEnvSB");
            request.AddHeader("AuthToken", "**********");
            request.AddHeader("aspid", "********");
            request.AddHeader("password", "********");
            request.AddHeader("Content-Type", "application/json; charset=utf-8");
            request.RequestFormat = DataFormat.Json;
            //ReqPlGenIRN reqPlGenIRN = new ReqPlGenIRN();
            //reqPlGenIRN = JsonConvert.DeserializeObject<ReqPlGenIRN>(strJson);
            //request.AddBody(reqPlGenIRN);
            request.AddParameter("application/json", strJson, ParameterType.RequestBody);
            IRestResponse response = await client.ExecuteTaskAsync(request);