Skip to main content
Question

How to retrieve specific Sales ledger codes using Sage Accounting API


I am trying to view all my visible Sales ledger codes. I can connect to Sage API fine and I can pull all codes in, but the page cuts off with me missing 5 code IDs which I need. 

I have tried using the Sage API information here - https://developer.sage.com/accounting/reference/accounting-setup/#tag/Ledger-Accounts/operation/getLedgerAccounts - but whilst it will work with a item value of 200, nothing else I put in to just see certain ledger account, or pull in certain information works.

There is no error, each time it just return every single ledger code.

Any ideas? Thanks!

 

Did this topic help you find an answer to your question?

5 replies

JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2532 replies
  • February 13, 2025

Hi ​@lostatsea,

 

Welcome to the Community.

 

You may encounter a pagination issue if you can't retrieve all sales ledger codes via the Sage API. The API limits results to 200 per page, so you must fetch multiple pages. In Zapier, enable Auto Paginate to automatically retrieve all pages or set up a looping Zap to fetch and store results (for example, in Google Sheets). 

 

If issues persist, sharing more details on your setup can help troubleshoot further.


  • Author
  • Beginner
  • 3 replies
  • February 13, 2025
JammerS wrote:

Hi ​@lostatsea,

 

Welcome to the Community.

 

You may encounter a pagination issue if you can't retrieve all sales ledger codes via the Sage API. The API limits results to 200 per page, so you must fetch multiple pages. In Zapier, enable Auto Paginate to automatically retrieve all pages or set up a looping Zap to fetch and store results (for example, in Google Sheets). 

 

If issues persist, sharing more details on your setup can help troubleshoot further.

 

Thanks Jammer - that makes sense. I assume pagination is on a pro plan as I can’t see any option for that on normal? I was going to upgrade, but wanted to get myself working before I started. Thanks


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2532 replies
  • February 14, 2025

Hi ​@lostatsea,

 

You are correct. Pagination is available on Zapier's paid plans, starting with the Starter plan, allowing Zaps to process large data sets in smaller chunks. If you need to handle more data, upgrading may be beneficial, offering additional features like priority support and multi-step Zaps.


  • Author
  • Beginner
  • 3 replies
  • February 17, 2025
JammerS wrote:

Hi ​@lostatsea,

 

You are correct. Pagination is available on Zapier's paid plans, starting with the Starter plan, allowing Zaps to process large data sets in smaller chunks. If you need to handle more data, upgrading may be beneficial, offering additional features like priority support and multi-step Zaps.

 

Hi Jammer, I have upgraded but still no option for pagination. Can you help please?


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2532 replies
  • February 18, 2025

Hi ​@lostatsea,

 

Sage Accounting's API in Zapier doesn't natively support pagination, meaning Zapier can't automatically retrieve multiple data pages. A possible workaround is setting up a scheduled Zap (for example, hourly or daily) to pull new data. However, this may have limitations depending on data volume and update frequency. For more tailored support, contacting Zapier Support is recommended.


Reply