Hi, we are pulling back the list of charges for the Company - WORKSPACE GROUP PLC Company number 02041612 - The “total_count” is returned as 37, however in the API repones we only received 25 back. Is there a limit of the number of charges which can be returned, or is there an issue with these specific charges anyone can see?
Are you using the items_per_page query parameter, and setting it to the max value? I believe the max value is 100 for charges, and the parameter is set to 25 by default
As @tyreseba says, the Charges endpoint is “paged”. Although it doesn’t say so in the documentation for the Charges endpoint, you can provide the usual items_per_page and start_item parameters (where start_item starts from zero, and to page through you should e.g. set start_item to a multiple of items_per_page)
So in your case, you could call:
.. and that should get all the results.
If you had more than you could get in a single page of results (say there were 300+) and the maximum returned was 100 (I would never assume this - always check the number that you actually get back) you could page through using:
…/company/02041612/charges?items_per_page=100&start_item=0
…/company/02041612/charges?items_per_page=100&start_item=100
…/company/02041612/charges?items_per_page=100&start_item=200
…/company/02041612/charges?items_per_page=100&start_item=300
etc.