FindCompanyByNameOrPostcode
 

FindCompanyByNameOrPostcode

Definition

CompaniesHousePartialResult[] FindCompanyByNameOrPostcode ( string username, string password, string companyname, string postcode, string companystatus, Option[] options )

Description:

Checks to find any matching companies filtered on company name and/or postcode. You can filter on any partial name or partial postcode - a wildcard is assumed.

The companystatus parameter allows you to restrict the results to only the status code you want. The most useful of these is Active which restricts on Active companies. The full list of available statuses are available (see Company Status)

The return value includes an array of CompaniesHousePartialResult[]

View all Companies House Methods

Code Samples

Language:

<!-- 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="http://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 FindCompanyByNameOrPostcode(companyname, postcode, companystatus) {
  /// <param name="companyname">string</param>
  /// <param name="postcode">string</param>
  /// <param name="companystatus">string</param>
  var companieshouse = new data8.companieshouse();
  
  companieshouse.findcompanybynameorpostcode(
    companyname,
    postcode,
    companystatus,
    null,
    showFindCompanyByNameOrPostcodeResult
  );
}

function showFindCompanyByNameOrPostcodeResult(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.Results
    //   Contains the partial details found for the requested companies on the companies house database.
  }
}

loadIntegr8();

</script>
Skip Navigation Links
Request handled by server S1 for client 38.107.179.216 at 23/05/2012 00:45:58