Shopify Engineeringtactical 4 min

How Should a Shopify Integration Handle API Rate Limits?

Schedule Shopify integration work using query costs, shared worker budgets, response classification and safe recovery after throttles or uncertain writes.

By Samuel Noriega · November 26, 2026

Treat API capacity as a shared operating budget for your app and store, not a fixed number of requests per second. Schedule work, inspect responses and preserve business-operation identity across retries. Adding more workers to a throttled integration can make its backlog worse.

Our ERP integration guide introduces the architecture and platform limits. This runbook covers the worker admission and recovery procedure that turns those limits into an operable system. It does not require replacing a working connector or purchasing more infrastructure.

Identify the limit before changing concurrency

Shopify's GraphQL Admin API rate-limit documentation describes calculated query costs for an app-and-store bucket. Requested cost determines admission; actual cost can differ after execution. Inspect extensions.cost and its throttle status rather than assuming all operations cost the same.

Keep this budget distinct from Storefront APIs, third-party ERP limits and resource-specific restrictions. A store-plan change does not fix an invalid query, a supplier outage or a mutation that exceeds an operation's own limits. Record the pinned API version, operation name, requested/actual cost when provided, current capacity and response classification.

Coordinate every worker using the same bucket

Inventory updates, order recovery and catalog exports can contend when they use the same app/store budget. Give them one coordinated admission mechanism. Reserve capacity conservatively for work admitted but not yet reflected in later observations. Treat stale telemetry as uncertain; it must not let each worker independently spend the same points.

Use merchant-approved priorities. A bulk catalog read should not indefinitely prevent an urgent order reconciliation. Preserve progress checkpoints so deferred work resumes from a known boundary instead of replaying a complete catalog after every throttle.

OutcomeCorrect next actionUnsafe shortcut
Known budget shortageDefer with bounded backoff and fresh telemetryStart more concurrent requests
Query too largeReduce selection or page size; evaluate supported bulk workRetry the identical impossible query forever
Validation/user errorCorrect input and obtain required approvalClassify every failure as transient
Timeout after a writeDetermine whether the business operation completedAssume no response means no change
Other service limitApply that service's own policyReuse Shopify's budget as a universal limit

Reproduce a budget calculation

Synthetic scheduler example: a fictional observed capacity is 180 points and the next operation requests 250. If restoration were 50 points per second with no competing work, the deficit would be 70 points and the arithmetic lower-bound wait would be 1.4 seconds.

These are illustrative inputs, not published plan limits or a recommended production delay. The calculation assumes the operation is valid and fits the bucket's maximum capacity. Scheduling overhead, jitter, in-flight work and newer observations can require a longer wait. If restoration is zero or unknown, do not divide by it or spin continuously; hold the work and investigate.

In a second exercise, two workers each want 120 points from the same observed 180. Admitting both would reserve 240 points. Admit one and account for its reservation before evaluating the other. A separate app/store pair has a separate budget; do not artificially serialize every merchant together.

Read the entire response contract

Use Shopify's response and error-code reference to distinguish transport responses, GraphQL errors and mutation user errors. A response with HTTP 200 can still contain errors. Do not mark a write successful merely because the connection completed.

Classify work as succeeded, deferred, rejected or outcome unknown. Preserve a durable business key and checkpoint before recovery. A retry policy controls when another attempt may run; it does not make a non-idempotent business operation safe to repeat.

Apply bounded backoff and jitter for appropriate transient failures. Respect applicable retry guidance returned by the service. Escalate repeatedly rejected work with its reason rather than quietly discarding it after a retry limit. Avoid logging access tokens or buyer payloads to diagnose capacity.

Prove recovery and fairness

In a test environment, introduce budget shortages, a restart after partial progress, a permanent validation error and an uncertain write outcome. Confirm the backlog drains without duplicate business effects, low-priority work eventually runs and unrelated merchants remain isolated. Test the operator's pause and resume controls as well as the worker code.

Measure queue age, oldest unresolved business operation, throttle classifications and reconciliation discrepancies. Throughput alone can look healthy while a small group of failed orders remains stuck. Retain expected/actual observations; the examples here are synthetic tests, not a claimed Shopify load test.

For recurring incidents, bring response samples and queue-age evidence to our Shopify engineering team, or request a scoped reliability review. The useful engagement fixes scheduling and recovery ownership before adding capacity.

Ship complex Shopify builds without breaking the store

Fashionable Inc. has relied on us for more than six years across three Shopify Plus stores. Read the case study

Most quotes returned within 1 business day