0151 355 4555

GetCompanyDetails

Description

Returns the full information from the Companies House database regarding the company number requested.

If the company number is not known, the FindCompanyByNameAndAddress or FindCompanyByNameOrPostcode methods can be used to find it.

View all Companies House methods

Code Samples

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="https://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">
</script>

<script type="text/javascript">

function loadIntegr8() {
  // Load the CompaniesHouse Integr8 service
  data8.load('CompaniesHouse');
}

function GetCompanyDetails(companynumber) {
  /// <param name="companynumber">string</param>
  var companieshouse = new data8.companieshouse();
  
  companieshouse.getcompanydetails(
    companynumber,
    null,
    showGetCompanyDetailsResult
  );
}

function showGetCompanyDetailsResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  }
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.Result
    //   Contains the details found for the requested company on the companies house database.
  }
}

loadIntegr8();

</script>