0151 355 4555

GetAvailableImageReports

Description

Scanned copies of original documents submitted to Companies House can be retrieved using the GetImageReport method.

Use this method to get a list of the reports that can be downloaded, then submit the Identifier of the required report as returned from the list to the GetImageReport method to access the report itself.

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 GetAvailableImageReports(number) {
  /// <param name="number">string</param>
  var businessinformation = new data8.businessinformation();
  
  businessinformation.getavailableimagereports(
    number,
    null,
    showGetAvailableImageReportsResult
  );
}

function showGetAvailableImageReportsResult(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.Reports
  }
}

loadIntegr8();

</script>