Ramco Ramco

Ramco Ramco

  • 440
  • 3.4k
  • 527.7k

NimbusPost Api

Dec 25 2022 3:28 PM

Hi

  I am using below APi . Record is not getting cancelled , neither i am getting any error message

string awb = "14189990122574";
            var client0 = new RestClient("api.nimbuspost.com/v1/shipments/cancel");
            client0.Timeout = -1;
            var request0 = new RestRequest(Method.POST);
            request0.AddHeader("Content-Type", "application/json");

            var body0 = @"{" + "\n" +
            @"    ""email"" : ""[email protected]""," + "\n" +
            @"    ""password"" : ""Temp0""" + "\n" +
            @"    ""awb"" : ""14189990122574""" + "\n" +
            @"}";
            request0.AddHeader("Authorization", "Bearer " + token);
            request0.AddParameter("application/json", body0, ParameterType.RequestBody);
            IRestResponse response0 = client.Execute(request0);

Thanks


Answers (1)