Appointments capped at 500

Hi there,

From trying the officer appointment API, it seems to me that the officer appointment API only returns the first 500 appointments. Is that intentional?

See the following tests

The parameter ‘total_results’ has a value 529, but there is only one item in the json.
https://api.companieshouse.gov.uk/officers/vMmalWul9L0csBR6N0zdu6JimYU/appointments?items_per_page=35&start_index=499

When calling the API for startindex 500, we get back an empty json (instead of 29 items)
https://api.companieshouse.gov.uk/officers/vMmalWul9L0csBR6N0zdu6JimYU/appointments?items_per_page=35&start_index=500

Similar issue here:
https://api.companieshouse.gov.uk/officers/1Bhb5P5h8EG0wYvV2P-KDpTxhc0/appointments?items_per_page=50&start_index=499

@h_brackmann

The officer appointment API does return more than 500 appointments and is not capped, with the following examples of officers with more than 500 appointments which are returned in full: -

https://api.companieshouse.gov.uk/officers/HFZXLj1T40fpRr9NN9qQK9WKzAo/appointments?start_index=600&items_per_page=35
https://api.companieshouse.gov.uk/officers/aPEH-ag55Ky7TkODitmIswyXA5M/appointments?start_index=1676&items_per_page=35

Unfortunately you have uncovered a bug which is affecting a very small number of officers and associated appointments. A fix is being worked on and we hope to resolve as soon as possible.

Thanks,

@mfairhurst