Hi
The .net client does not expose this method for Company. I have it working for Employee but need to figure out how to get a company from it’s external id. I am trying RestSharp but KeyPay docs do not show how to add the id parameter.
GET https://api.nzpayroll.co.nz/api/v2/business/externalid
I’ve tried
internal void Run()
{
var client = SetupRestClient();
var id = "a valid id";
var request = new RestRequest("business/{externalid}", Method.GET).AddParameter("externalid", id);
client.Authenticator = new RestSharp.Authenticators.HttpBasicAuthenticator(_apiKey, null);
request.AddHeader("Content-type", "application/json");
var response = client.Execute(request);
var x = response.Content;
}
and various variations on this theme including
var request = new RestRequest(“business/our valid external id”, Method.GET).
Any pointers on how to get a business via External Company Id greatly appreciated. The .net client should really expose this method…
Scott