0151 355 4555

FindBusinesses

Description

Supply a company registration number, name or postcode to retrieve basic information on any matching companies. The company registration number included in the results can then be used to obtain full detailed information from the other methods in this service.

Searching by address or telephone number is not currently supported, so the address and telephone number parameters must currently be left blank.

View all Credit & Financial Information 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 BusinessInformation Integr8 service
  data8.load('BusinessInformation');
}

function FindBusinesses(number, name, address, postcode, telno) {
  /// <param name="number">string</param>
  /// <param name="name">string</param>
  /// <param name="address">string</param>
  /// <param name="postcode">string</param>
  /// <param name="telno">string</param>
  var businessinformation = new data8.businessinformation();
  
  businessinformation.findbusinesses(
    number,
    name,
    address,
    postcode,
    telno,
    null,
    showFindBusinessesResult
  );
}

function showFindBusinessesResult(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.Businesses
  }
}

loadIntegr8();

</script>