# Trial Balance Summary does not return all nominal codes

**URL:** <https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183>\
**Category:** Uncategorized\
**Created:** [20 July 2020 14:19 UTC](https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183 "2020-07-20T14:19:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duncan\_Davidson](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/duncan_davidson/32/281_2.png) [@Duncan\_Davidson](https://api-discuss.freeagent.com/u/Duncan_Davidson)\
**Post date:** [20 July 2020 14:19 UTC](https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183/1 "2020-07-20T14:19:47Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![Ewa\_Lipinska](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/ewa_lipinska/32/235_2.png) [@Ewa\_Lipinska](https://api-discuss.freeagent.com/u/Ewa_Lipinska)\
**Post date:** [20 July 2020 15:51 UTC](https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183/2 "2020-07-20T15:51:52Z")

</div>

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](https://dev.freeagent.com/docs/introduction#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

---

<div class="post-metadata">

**Author:** ![Duncan\_Davidson](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/duncan_davidson/32/281_2.png) [@Duncan\_Davidson](https://api-discuss.freeagent.com/u/Duncan_Davidson)\
**Post date:** [20 July 2020 16:02 UTC](https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183/3 "2020-07-20T16:02:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ewa\_Lipinska](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/ewa_lipinska/32/235_2.png) [@Ewa\_Lipinska](https://api-discuss.freeagent.com/u/Ewa_Lipinska)\
**Post date:** [21 July 2020 13:51 UTC](https://api-discuss.freeagent.com/t/trial-balance-summary-does-not-return-all-nominal-codes/2183/4 "2020-07-21T13:51:01Z")

</div>

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](https://dev.freeagent.com/docs/categories#get-a-single-category), 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
