DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Accounting API Rate Limits and Pagination

Every accounting provider rations how often you can call its API, so accounting API rate limits shape every single sync. Go past the ceiling and you get an HTTP 429 response instead of data, so the run must stop safely. Limits decide how fast you pull a ledger, how often you sync and how you recover after a sudden stop. This article covers the common limit patterns, paging, central handling of refusals and ways to spread load across your schedules. DaletBook is the worked example, including the parts that still need a proper load test in your own provider sandbox.

Illustration of code, plug, folder for accounting API rate limits
Key takeaway

Every page you read spends the same request budget, so filter for changes and page the way each provider expects. Treat a 429 as a stop signal handled in one shared client, then spread schedules so tenants do not collide. Test the result under load in each sandbox.

Why do providers ration the calls to their API at all?

Also, a provider runs one platform for a large number of apps. Without limits, one busy client could slow every other customer. In addition, so providers cap traffic, and each one draws the line in its own way. Also, some count requests per minute, others per day, per connected company or per app.

Moreover, the next step builds on your accounting API rate limits and adds an example. In addition, a reviewer will want to see your HTTP 429 written down.

Besides, the shape of the limit matters most, and the number matters less. Moreover, with a limit per company, one large tenant cannot starve the others. With a limit per app, all your tenants share one pool, so a single busy customer can slow everyone. Notably, before you build, write down which shape each provider uses and where it is documented.

Likewise, the notes on your cursor pagination are reviewed by a second person. Each exception to the HTTP 429 is recorded before it is approved.

Published figures also change over time. Treat accounting API rate limits as a starting point, then confirm them in each provider's sandbox. Keep a dated note of what you found, so the next engineer does not have to rediscover it. Indeed, our trainers cover our accounting API rate limits with practice records.

In fact, a simple budget sheet helps. For each provider, list the limit, its scope and the reset window. Then estimate the requests that one full pull needs for a typical tenant. Divide the budget by that figure, and you know roughly how many tenants fit in one window.

People new to the topic should learn your HTTP 429 first. Plain language helps when you describe the HTTP 429. The notes on your cursor pagination are reviewed by a second person.

DaletBook connection drawer screen
For example, the connection drawer screen of DaletBook.

How do you page through a very large ledger without a gap?

Accounting data is very large. Furthermore, a mature company can hold years of invoices, bills and journal entries. No provider returns all of that in one response, so you read it page by page. Specifically, each page costs a request, which ties page size directly to the limit.

Overall, the notes on your cursor pagination are reviewed by a second person. Teams often ask how the accounting API rate limits works in practice.

Keep the sync schedule simple, and test it on a small case first. Each rule for the accounting API rate limits is written down and dated.

Also, the next step builds on your cursor pagination and adds an example.

Plain language helps when you describe the cursor pagination. In addition, each exception to the HTTP 429 is recorded before it is approved.

Questions about the accounting API rate limits are welcome in our classes. Moreover, many reviewers begin with each accounting API rate limits when they audit a flow. Our trainers cover our HTTP 429 with practice records. Questions about each cursor pagination are welcome in our classes.

Providers page in different ways. Some return a cursor that points to the next page, while others take a page number or an offset. Besides, a cursor copes better when records change during a long read. An offset can skip or repeat rows when new records arrive halfway through.

Notably, the cheapest page is the one you never request. A modified-since filter lets you read only what changed after the last run. Likewise, on a busy ledger that cuts the request count sharply. Still, confirm in the provider's documentation that the filter covers every entity you read.

DaletBook gives each of its 75 registered connectors its own pagination and field mapping. Indeed, all of them sit on one shared HTTP client. Paging rules stay specific to each provider, while error handling lives in one place. People new to the topic should learn your accounting API rate limits first.

Illustration for Accounting API Rate Limits and Pagination

How can one shared client handle a refusal for all?

In fact, when a provider says stop, the worst reply is to keep calling. Every call after a 429 spends budget and returns no data. Under a limit per app, those wasted calls also drain the pool that every other tenant shares. Keep the accounting API rate limits simple, and test it on a small case first.

Handling the refusal differently in each connector is nearly as bad. Furthermore, one connector then retries without limit while another quietly drops a page. DaletBook handles the refusal centrally. Specifically, the shared HTTP client turns a 429 into a RateLimitError and a 401 into an AuthExpiredError.

Overall, this part of the page shows how your sync schedule fits the whole flow. Any gap in your accounting API rate limits is flagged before the next release.

Also, a rate_limited error affects the whole connection, so the run stops. The same rule applies to auth_expired and host_down. A data_error on one entity is different, because the other entities carry on and the job closes as partial. Teams often ask how the accounting API rate limits works in practice.

In addition, some providers also send a Retry-After header with the 429, which states how long to wait. If you build your own client, store that value with the failure and let the scheduler honor it. Good notes on the accounting API rate limits help the next person on the team. Check the accounting API rate limits again after each change at the provider.

Stopping is safe because pulls are keyed upserts. The next run reads the same pages again, and records that already arrived are matched instead of copied. Moreover, the guide to idempotent sync explains that rule. Token refresh sits outside this path, because the DaletAuth broker owns that lifecycle.

DaletBook provider catalogue entry screen
For example, the provider catalogue shows what each connector reads.

How do you spread the pulls across the day for all?

Besides, most trouble with limits starts with timing and not with volume. If every tenant syncs at midnight, every connection hits the provider in the same minute. Spread the start times, and the same work fits inside the same budget. Notably, a reviewer will want to see your accounting API rate limits written down.

DaletBook schedules pulls per connection. Likewise, a schedule stores an interval in seconds, an enabled flag and the next due time. Because each connection keeps its own clock, you can stagger tenants across the hour. Indeed, one running job per connection and direction also keeps a slow run from overlapping the next one.

In fact, you can see the effect in the job history, which lists direction, status, trigger, counts and errors. When failures bunch up at one hour, your schedules need wider spacing. The sync jobs overview describes each of those fields, and the nightly sync use case works through one schedule design. Nothing about the accounting API rate limits needs a special tool.

Nothing about the sync schedule needs a special tool. Keep the sync schedule simple, and test it on a small case first.

DaletBook job status screen
For example, every sync job closes as succeeded, partial or failed.

How does a vendor of unified APIs show its limits?

Unified API vendors live under limits too. Merge makes a useful market example. Furthermore, its accounting overview documentation (opens in new tab) was checked for this page. It describes limits per linked account that depend on the plan, from 100 to 600 requests per minute.

Specifically, our trainers cover our cursor pagination with practice records. Check the sync schedule again after each change at the provider. Overall, each rule for the accounting API rate limits is written down and dated. Changes to our accounting API rate limits are logged with a reason.

Also, each choice about our sync schedule is explained to the reviewer. Each rule for the accounting API rate limits is written down and dated. Changes to our accounting API rate limits are logged with a reason.

Plain language helps when you describe your accounting API rate limits. Start small when you set up the accounting API rate limits. In addition, this part of the page shows how the accounting API rate limits fits the whole flow. Teams often ask how our accounting API rate limits works in practice.

Questions about each HTTP 429 are welcome in our classes. Moreover, many reviewers begin with your HTTP 429 when they audit a flow. Many reviewers begin with your cursor pagination when they audit a flow. Besides, a reviewer will want to see your cursor pagination written down.

Notably, two lessons carry over to any design. Limits per linked account keep one customer from draining another's budget. Incremental filters and change notices cut the number of pages you need. Likewise, the DaletBook and Merge comparison sets out where each approach is stronger.

What should a launch plan for the rate limits include?

A sound plan has four parts.

  • Record the shape of each provider's limit.
  • Page with the provider's own method, and filter for changes.
  • Handle refusals centrally and stop cleanly.
  • Spread schedules so that tenants do not collide.

Handle refusals centrally and stop cleanly. Then spread schedules so tenants do not collide. A reviewer will want to see your accounting API rate limits written down.

People new to the topic should learn your cursor pagination first. Teams often ask how your sync schedule works in practice. Good notes on the sync schedule help the next person on the team. Start small when you set up the sync schedule.

The 429 path, the error classes and the one-job rule exist in the code. The connector tests use mocked HTTP, so plan a load test in each provider's sandbox before any tenant goes live. The implementation plan is a natural home for that test. Measure how close real limits come to your schedule design, and record the date of every result.

A diagram of 3 connected steps, each with a small drawing: Cursor pagination, Sync schedule, Providers.

Questions and answers on this topic from the product team

What does DaletBook do when a provider answers with HTTP 429?

The shared HTTP client raises a RateLimitError, so every connector reports the refusal the same way. The run stops with a rate_limited error. The next pull reads the pages again, and the keyed upsert matches records that already arrived.

How can I stagger pull schedules so tenants do not collide?

Give each connection its own interval and spread the first due times across the hour. DaletBook stores an interval, an enabled flag and a next due time for every schedule. Clustered failures in the job history show where schedules still overlap.

See how DaletBook fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.