Account

Account Endpoint is used to get the token from the CloudRx system.

Below is the sample code to retrieve a token from the CloudRx system by passing the client id and secret.

var client = new RestClient("https://sandbox-orderservice/api/v1/Account/login");

var request = new RestRequest(Method.GET);

request.AddHeader("clientid", "your_username");

request.AddHeader("clientsecret", "your_password");

IRestResponse response = client.Execute(request);

Console.WriteLine(response.Content);

Last updated