Hi,
If a start index parameter is given to the filing history url, the response contains a start_index that isn’t a number but a string. It’s easy to reproduce, as this happens right from the Try Out filing history page. I’m copy-pasting what I see there below:
Request
GET /company/00022705/filing-history?category=accounts&start_index=25 HTTP/1.1
Host: api.companieshouse.gov.ukundefined
Response status
200 OK
Response body
{
"start_index": "25",
"items_per_page": 25,
"filing_history_status": "filing-history-available",
"total_count": 34,
"items": [
...