It is a method that allows you to add a new channel account of your company by making a request with the received token. Make requests in JSON format in the body with the parameters “Name” (Name), “VisibleName” (Display Name), “ChannelId” (Channel Id), “Identifier” (unique value of the channel account) and “IsActive” (Is active) parameters. required.
Authorization header should be entered as “token_type” value, space character, “Access_token” value returned as a result of token request.

As a result of the request, the information of the registered channel account returns.

private static IRestResponse InsertCustomAccount()
{
RestClient client = new RestClient("https://api.flexxii.com/");
RestRequest request = new RestRequest("api/Accounts/InsertCustomAccount", Method.POST);
request.AddHeader("Content-Type", "application/json; charset=utf-8");
request.AddHeader("Authorization", content_type + " " + access_token);
request.AddJsonBody(new { "Name": "string","VisibleName": "string","ChannelId": 0,"Identifier": "string","IsActive": true });
IRestResponse response = client.Execute(request);
return response;
}
Was this helpful?
0 / 0