TaxPro GSP - eInvoiceAPI
User Guide
 
 
×
Menu
Index

    Get EWB Details By IRN

     
    Type
    Url
    Headers
    SandBox
    https://gstsandbox.charteredinfo.com/eiewb/dec/v1.03/ewaybill/irn/<irn_no>
    1. aspid
    2. password
    3. Gstin
    4. user_name
    5. AuthToken
    6. irpurl
    7. irp
    Production
    https://einvapi.charteredinfo.com/eiewb/dec/v1.03/ewaybill/irn/<irn_no>
    1. aspid
    2. password
    3. Gstin
    4. user_name
    5. AuthToken
    6. irpurl
    7. irp
     
     
     
     RestClient client = new RestClient("https://gstsandbox.charteredinfo.com/eiewb/dec/v1.03/ewaybill/irn/<irn_no>");
              RestRequest request = new RestRequest(Method.GET);
                request.AddHeader("Gstin", "");
                request.AddHeader("user_name", "");
                request.AddHeader("AuthToken", "");
                request.AddHeader("aspid", "");
                request.AddHeader("password", "");
    // Need to pass Either NIC1 OR NIC2 in Header
         request.AddHeader("irp", "NIC1");//used by nic (value ‘NIC1’ indicates that service requested is from e-Invoice1).
         request.AddHeader("irp", "NIC2");//used by nic (value ‘NIC2’ indicates that service requested is from e-Invoice2.)
    // Need to pass Either "1" OR "2" in Header
                request.AddHeader("irpurl", "1");//Used By gsp
                request.AddHeader("irpurl", "2");//Used By gsp
                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);
     
                RespGetEWBByIRN respPlGetEWBByIRNDec = new RespPlGetEWBByIRNDec();
                respPlGetEWBByIRNNDec = JsonConvert.DeserializeObject<RespPlGetEWBByIRNDec>(respPl.Data);
     
     
    Success Responce
     
    {
        "Status": "1",
        "Data": "{\"EwbNo\":551008733309,\"Status\":\"ACT\",\"GenGstin\":\"34AACCC1596Q002\",\"EwbDt\":\"2020-10-23 16:13:00\",\"EwbValidTill\":\"2020-10-24 23:59:00\"}",
        "ErrorDetails": null,
        "InfoDtls": null
    }