I was trying to download latest financial documents for some companies using the API but unfortunately for some of them I received information: filing-history-available with the total count 0:
Does anyone know the solution to this? I am also searching CH for filing history on companies which have history. Here is example of a script I am running:
var response = UrlFetchApp.fetch(url, options);
var data = JSON.parse(response.getContentText());
Logger.log(data);
// Process the filing history data
var filings = data.items.map(function(item) {
return {
date: item.date,
type: item.type,
description: item.description,
documentUrl: item.links.document
};
});
}
No matter what company number (that is a valid company number with filing history) I put in I return - {start_index=0.0, filing_history_status=filing-history-available, total_count=0.0, items=, items_per_page=25.0}
While some sectors usually strip the leading zeroes (you know who you are) CH almost always includes them. Likewise for any companies with a prefix, these need to be padded out to 8 charcters between the prefix and number, so SC1234 would become SC001234.