Trial Balance Summary does not return all nominal codes

Hi,
If I make the following request

GET https://api.freeagent.com/v2/accounting/trial_balance/summary?from_date=2018-09-01&to_date=2019-8-31

the response only includes the first 25 of the nominal codes. How do I get the remaining codes?

Hi Duncan,

Ewa here from the Engineering Team at FreeAgent — thanks for your message on our forum and I’ll do my best to help out.

The reason why only the first 25 records are returned in the response is due to the fact that this endpoint is paginated. See this section of our docs for information about pagination. You can increase the size of the page returned in the response by adding ?page=1&per_page=PAGE_SIZE, (where PAGE_SIZE is a number with the maximum value of 100) to the request URL.

I hope this helps!

Best wishes,

Ewa

Hi Ewa,

Great thanks! I hadn’t spotted that! There isn’t anyway to retrieve a specific category/nominal code in trial balance is there?

Thanks
Duncan

Hi Duncan,

No worries at all, glad I could help. If you’re after retrieving general information about a specific accounting category, you can query it by nominal code using this endpoint, though if you’re trying to obtain individual account totals from the Trial Balance report, then I’m afraid at present we don’t have a separate endpoint for that.

Best wishes,

Ewa