A product sync works perfectly in development. You connect your ERP system to BigCommerce, fetch products, update prices and inventory, and everything looks good.

Then you run it against a store with thousands of products.

Some updates go through, while others start failing with 429 Too Many Requests. The sync slows down, your error logs fill up, and a job that should have finished in minutes takes much longer than expected.

This is a common challenge when building ecommerce integrations. The problem isn’t necessarily the API or your business logic. Sometimes, your integration is simply making requests faster than BigCommerce allows.

The tricky part is knowing what to do when that happens. Retrying every failed request immediately won’t help, while slowing down every request unnecessarily can make the entire integration inefficient.

1. First, Understand How BigCommerce Rate Limits Work

An API rate limit controls how many requests an application can make within a particular period. BigCommerce uses rate limits to protect platform stability and manage API traffic.

For REST Management API integrations, the available request quota depends on factors such as the store’s plan and the resources being accessed. BigCommerce documents a 30-second quota window for applicable OAuth integrations, although limits and exceptions vary by plan.

There’s another detail worth remembering: other integrations using the same store can affect the request capacity available to your integration. Your application might not be responsible for every request consuming that quota.

This matters when a store uses several connected systems, such as an ERP, a warehouse management platform, and a custom product synchronization service.

When the applicable quota is exceeded, BigCommerce can return an HTTP 429 Too Many Requests response. Further requests may continue to fail until the quota window resets.

You can find the current rules and plan-specific details in the official BigCommerce API rate limits documentation.

Where Does This Become a Problem?

Rate-limit issues usually appear in operations that generate many API calls within a short period:

  • Syncing product prices, inventory, variants, and descriptions.
  • Importing a large product catalog from an ERP or PIM system.
  • Processing order updates from multiple background workers.
  • Running scheduled jobs that repeatedly fetch the same data.
  • Connecting multiple applications to a single BigCommerce store.

For a small catalog, you might never notice the issue. As data volumes grow, the way your integration schedules requests becomes much more important.

2. Read the Response Headers Before Changing Your Code

When a BigCommerce request fails with a 429 response, don’t jump straight to increasing the retry count. First, check the response headers.

BigCommerce provides rate-limit information that helps you understand how much capacity remains and when the current window will reset.

The headers worth checking are:

Header What It Tells You
X-Rate-Limit-Requests-Quota Requests allowed in the current window
X-Rate-Limit-Requests-Left Requests remaining in the current window
X-Rate-Limit-Time-Window-Ms Length of the rate-limit window in milliseconds
X-Rate-Limit-Time-Reset-Ms Milliseconds remaining until the quota resets
X-Retry-After Suggested wait before retrying, in seconds

For example, suppose a response contains these values:

X-Rate-Limit-Requests-Quota: 150

X-Rate-Limit-Requests-Left: 8

X-Rate-Limit-Time-Window-Ms: 30000

X-Rate-Limit-Time-Reset-Ms: 12000

These are illustrative values, not limits that apply to every store. They indicate that eight requests remain in the current window and that the quota is expected to reset in approximately 12 seconds.

This information is useful because your integration can use the reset time to schedule its next request instead of guessing how long to wait.

Header names are case-insensitive, so your code should also work if a client exposes them in lowercase.

For the complete list of response headers, see the BigCommerce REST API overview.

3. Why Retrying Immediately Makes Things Worse

A quick fix might look like this:

async function getProducts() {

  try {

    return await fetchProducts();

  } catch (error) {

    return await fetchProducts();

  }

}

The problem is that the second request has no idea why the first one failed. If the API has already exhausted the available quota, sending the same request again immediately is unlikely to help.

Now imagine that five background workers are doing the same thing. Each worker receives a rate-limit response and retries immediately. Those retries generate even more traffic, and the workers can end up repeatedly competing for the same limited capacity.

A better approach is to make retries deliberate.

Before retrying, your integration should answer three questions:

  1. Is this a temporary error, or does the request need to be corrected?
  2. Has the API indicated how long to wait?
  3. Is it safe to repeat the operation?

That last question is particularly important when the request creates or modifies data.

4. Use Exponential Backoff With Jitter

When a request fails temporarily, exponential backoff increases the delay before each subsequent retry.

For example, a retry sequence might use delays that grow from one second to two seconds, then four seconds and eight seconds. In a real implementation, you should also cap the delay and add some randomness, known as jitter.

Jitter helps prevent multiple workers from waking up at exactly the same time and repeating the same failed requests.

Here’s a small helper function in Node.js:

function getBackoffDelay(

  attempt,

  baseDelayMs = 1000,

  maxDelayMs = 30000

) {

  const ceiling = Math.min(

    maxDelayMs,

    baseDelayMs * 2 ** attempt

  );

 

  // Random delay between 0 and the calculated ceiling.

  return Math.floor(Math.random() * ceiling);

}

 

function sleep(ms) {

  return new Promise((resolve) => setTimeout(resolve, ms));

}

This function only calculates the delay. Your request-handling logic still needs to decide whether the error is retryable and how many attempts are allowed.

There’s also an important BigCommerce-specific consideration: when the response includes a quota reset time or X-Retry-After, use that information instead of blindly following your own backoff schedule. If the API says to wait 12 seconds, retrying after one second defeats the purpose.

5. Putting the Retry Logic Together in Node.js

Let’s build a small reusable wrapper for fetch. It handles rate-limit responses, retries selected temporary server errors, and falls back to exponential backoff when the response doesn’t provide a usable wait time.

This example uses a function to create each request, which is useful when a request needs to be constructed again for a retry.

function sleep(ms) {

  return new Promise((resolve) => setTimeout(resolve, ms));

}

 

function getBackoffDelay(attempt, baseDelayMs = 1000, maxDelayMs = 30000) {

  const ceiling = Math.min(

    maxDelayMs,

    baseDelayMs * 2 ** attempt

  );

 

  return Math.floor(Math.random() * ceiling);

}

 

function getServerDelayMs(response) {

  const delays = [];

 

  // BigCommerce-specific quota reset, in milliseconds.

  const resetHeader = response.headers.get(

    “X-Rate-Limit-Time-Reset-Ms”

  );

 

  if (resetHeader !== null && resetHeader.trim() !== “”) {

    const resetMs = Number(resetHeader);

 

    if (Number.isFinite(resetMs) && resetMs >= 0) {

      delays.push(resetMs);

    }

  }

 

  // BigCommerce retry instruction, in seconds.

  const bcRetryAfter = response.headers.get(“X-Retry-After”);

 

  if (bcRetryAfter !== null && bcRetryAfter.trim() !== “”) {

    const seconds = Number(bcRetryAfter);

 

    if (Number.isFinite(seconds) && seconds >= 0) {

      delays.push(seconds * 1000);

    }

  }

 

  // Also support the standard Retry-After header if present.

  const retryAfter = response.headers.get(“Retry-After”);

 

  if (retryAfter !== null && retryAfter.trim() !== “”) {

    const seconds = Number(retryAfter);

 

    if (Number.isFinite(seconds) && seconds >= 0) {

      delays.push(seconds * 1000);

    } else {

      const retryAt = Date.parse(retryAfter);

 

      if (!Number.isNaN(retryAt)) {

        delays.push(Math.max(0, retryAt – Date.now()));

      }

    }

  }

 

  return delays.length > 0 ? Math.max(…delays) : null;

}

 

async function bigCommerceFetch(makeRequest, maxRetries = 5) {

  for (let attempt = 0; ; attempt++) {

    let response;

 

    try {

      response = await makeRequest();

    } catch (error) {

      // Network failures may be temporary. This fallback is

      // appropriate only for operations safe to repeat.

      if (attempt >= maxRetries) {

        throw error;

      }

 

      await sleep(getBackoffDelay(attempt));

      continue;

    }

 

    if (response.ok) {

      return response;

    }

 

    const retryable =

      response.status === 429 ||

      [500, 502, 503, 504].includes(response.status);

 

    if (!retryable || attempt >= maxRetries) {

      const body = await response.text().catch(() => “”);

 

      throw new Error(

        `BigCommerce API error ${response.status}: ${body}`

      );

    }

 

    const serverDelayMs = getServerDelayMs(response);

 

    const delayMs =

      serverDelayMs !== null

        ? serverDelayMs + Math.floor(Math.random() * 500)

        : getBackoffDelay(attempt);

 

    // Release the response before making another request.

    await response.body?.cancel().catch(() => {});

 

    console.warn(

      `BigCommerce returned ${response.status}. ` +

      `Retry attempt+1/{maxRetries} in ${delayMs}ms.`

    );

 

    await sleep(delayMs);

  }

}

How to Use It

For a product lookup, the wrapper can be called like this:

const storeHash = process.env.BIGCOMMERCE_STORE_HASH;

const accessToken = process.env.BIGCOMMERCE_ACCESS_TOKEN;

 

if (!storeHash || !accessToken) {

  throw new Error(“Missing BigCommerce API configuration.”);

}

 

const response = await bigCommerceFetch(() =>

  fetch(

    `https://api.bigcommerce.com/stores/${storeHash}/v3/catalog/products`,

    {

      method: “GET”,

      headers: {

        “X-Auth-Token”: accessToken,

        Accept: “application/json”

      },

      signal: AbortSignal.timeout(15000)

    }

  )

);

 

const result = await response.json();

 

console.log(result.data);

The example uses the REST Management API’s product endpoint. Store credentials are read from environment variables rather than being hardcoded in the source.

There are a few details to keep in mind before using this in production.

First, retry only requests that are safe to repeat. GET requests are usually a good starting point. Repeating a POST request after a timeout can create duplicate records if BigCommerce has already processed the original request. For write operations, use an appropriate idempotency mechanism if the endpoint supports one, or reconcile the resource state before trying again.

Second, set a timeout. A request that hangs indefinitely can hold up a worker even when rate-limit handling is correct.

Third, treat the retry limit as a maximum, not a target. A request that continues to fail after five retries should be reported for investigation rather than retried forever.

The retry wrapper is a starting point. A production implementation should also include structured logging, request cancellation, appropriate error classification, and a clear recovery path for failed jobs.

6. Better Than Retrying: Avoid Unnecessary Requests

Retry logic helps when throttling happens. However, reducing the number of requests in the first place is often even more effective.

Consider a scheduled job that checks every product in BigCommerce, compares it with ERP data, and updates products even when nothing has changed. Over time, the integration spends a significant part of its available API capacity checking or updating data unnecessarily.

A few changes can make a real difference.

Keep a Queue and Control Concurrency

Rather than firing off hundreds of requests at once, put the work into a queue and process a controlled number of jobs at a time.

The worker can monitor the rate-limit headers and reduce its request rate when the remaining quota gets low. Processing can resume when the quota resets.

For an integration running across multiple servers, remember that a rate limiter stored in one process cannot coordinate with other processes. Shared storage or a centralized queue may be necessary to keep their combined request rate under control.

Update Only What Has Changed

Before calling the API, compare the incoming data with the last known state. If a product’s price and inventory haven’t changed, there’s usually no reason to send an update for those fields.

Where supported, consider batch endpoints, selective field retrieval, pagination, and caching for frequently accessed reference data.

The idea isn’t to cache everything or avoid API calls at all costs. It’s to avoid calls that aren’t needed.

Use Webhooks When They Fit the Workflow

If the integration needs to react to changes in orders or products, check whether BigCommerce offers a suitable webhook for that event.

Webhooks can reduce the need to poll the API repeatedly. However, they still require careful handling. Deliveries may be repeated, processing can fail, and your integration may need a reconciliation job to catch anything it misses.

For many ecommerce integrations, a combination of webhooks, scheduled reconciliation, and a controlled request queue is more reliable than constant polling.

7. What About Large Product Imports?

Large imports deserve extra attention because they involve many related operations and can take a long time to complete.

Let’s say an ERP system sends 10,000 products to a BigCommerce store. A simple loop that immediately sends an API request for every product may work with a small test dataset but behave very differently at production scale.

I’d approach the process in stages:

Prepare the data. Validate product records and identify which products actually need to be created or updated.

Queue the changes. Break the work into manageable units instead of sending the entire catalog at once.

Process with controlled concurrency. Keep the request rate within the available quota and adjust it as the response headers change.

Record progress. Store which records succeeded, which need to be retried, and which require manual attention.

Resume from the last checkpoint. If a worker crashes or a deployment interrupts the job, there’s no reason to restart the entire import from scratch.

Batch endpoints can reduce the number of requests where they support the operation you need. However, don’t assume that a batch request can never fail partially. Inspect its response and handle individual item failures according to that endpoint’s behavior.

For a large synchronization job, reliability comes from the entire workflow, not just the function that retries a failed HTTP request.

8. Logging Helps You Find the Real Problem

A retry mechanism might make a job complete successfully, but that doesn’t mean the underlying problem has disappeared.

If the same job receives hundreds of 429 responses every night and eventually succeeds after repeated retries, the integration is still doing more work than necessary.

Useful logs should include the endpoint, HTTP method, status code, retry attempt, wait duration, request latency, and rate-limit headers when available. Never log access tokens or other secrets.

At the monitoring level, keep an eye on:

  • How frequently 429 responses occur.
  • How many retries succeed.
  • How long synchronization jobs take to finish.
  • How many records remain in the queue.
  • Which records fail permanently.
  • Whether the problem began after a deployment or an increase in data volume.

These signals help distinguish a temporary platform issue from a concurrency problem, inefficient polling, or a change in the integration itself.

If throttling becomes frequent, don’t just increase the retry count. Look at the request pattern and find out why so many retries are needed.

A Few Things Worth Remembering

BigCommerce API rate limits are easier to manage when the integration treats them as part of normal operation rather than an unexpected exception.

A few practical rules go a long way:

  • Use response headers instead of guessing when the next request should happen.
  • Retry 429 responses and suitable transient server errors with a bounded backoff strategy.
  • Don’t retry invalid requests without correcting them.
  • Keep request concurrency under control, especially when several workers share a store’s quota.
  • Make long-running synchronization jobs resumable.
  • Track repeated throttling so you can fix the source of the problem.

Conclusion

Handling BigCommerce API rate limits requires more than retrying failed requests. A reliable integration needs to monitor rate-limit headers, use backoff strategies, control request concurrency, and avoid unnecessary API calls to keep data synchronization running smoothly.

For businesses managing complex ecommerce integrations, BigCommerce development services can help build scalable integrations that handle growing data volumes and improve synchronization reliability.

If your BigCommerce integration is struggling with API throttling or data synchronization, get in touch to explore solutions that support your business needs.

FAQs

What does a 429 error mean in BigCommerce?

It means the API request has been rate-limited. Check the applicable rate-limit headers, wait for the quota to reset, and retry according to the server’s instructions.

How long should I wait before retrying a BigCommerce API request?

Use X-Rate-Limit-Time-Reset-Ms or X-Retry-After when available. If no usable wait instruction is provided, use exponential backoff with jitter and a reasonable upper bound.

Should I retry every failed API request?

No. Retry suitable temporary failures, such as rate limiting and selected server errors. Requests with invalid data, missing permissions, or incorrect resource identifiers generally need investigation rather than repeated attempts.

Can reducing concurrency fix BigCommerce API throttling?

It can help considerably, especially when many requests are sent in parallel. The right concurrency level depends on the available quota and workload. When multiple processes share the same quota, coordinate their request rates rather than limiting each process independently.

Can webhooks help reduce API rate limits?

Yes. Webhooks can reduce polling for supported events, but your integration still needs to handle duplicate deliveries, failed processing, and data reconciliation.

 

Picture of Chandra Bhushan Rav
BLOG BY

Chandra Bhushan Rav

Chandra Bhushan Rav is a Senior Software Engineer at Klizer who has spent five years with Klizer and DCKAP building ecommerce experiences. He specializes in front-end and headless commerce development using React, TypeScript, Node.js, and GraphQL on Magento 2, BigCommerce, and Shopify. Alongside platform work, he focuses on AI-assisted development, LLM integration, prompt security, static code analysis, and technical documentation, and his achievements include work on Klizer Guardrails. Chandra also advocates for web accessibility. He writes about bringing AI into development workflows responsibly while keeping storefronts fast, secure, and usable.
Scroll to Top