Skip to content

GetCompanyInformation

Arivetti edited this page Aug 8, 2025 · 2 revisions

The GetCompanyInformation function retrieves information on the company from which the integration has been authorized.

Declaration

C#

public WSResultOfWSCompanyInformation GetCompanyInformation(string token)

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

C#

Integration ws = new Integration();

String auth = "";// See Authentication page for more

if (auth != null)
{
  var info = ws.GetCompanyInformation(auth);
  Assert.AreEqual(OperationStatus.Success, info.Status);
  Assert.IsNotNull(info.Result);

  Console.WriteLine("The company " + info.Result.CompanyName + " uses " + info.Result.BaseCurrencyCode + " as its base currency.");
}

See Also

Clone this wiki locally