S9 · operational guidance
Shopify Flow and API limits
How Flow and the Admin API spend a finite budget, and how to keep a nightly sync from starving your order traffic.
Prerequisites
Your sync ran at 02:00 and finished at 05:40. Orders placed between 02:10 and 05:40 sat unfulfilled, and two oversold. Nothing crashed. Nothing logged an error you looked at.
This is what running out of API budget looks like from the merchant's side: not a failure, a queue. This lesson is about spending that budget deliberately. It is deliberately qualitative about the numbers, because the numbers are the part most likely to change and least likely to be true in whatever blog post you last read.
The shape of the budget
Two facts worth holding onto, both as of 2026-11:
- The Admin API is cost-based, not call-count-based, on the GraphQL side. Each query has a calculated cost before it runs, the store has a bucket that refills at a steady rate, and a query that would exceed the bucket is throttled rather than executed. The bucket size and refill rate are set per store and per app, and the exact figures must be checked against current Shopify developer documentation — quoting them here would be quoting a number that expires (as of 2026-11 — Shopify Developer docs, API rate limits; retrieved 2026-11-13).
- The REST Admin API uses a different, simpler shape — a per-store call allowance that refills continuously — and has been progressively de-emphasised in favour of GraphQL (as of 2026-11 — Shopify Developer docs, REST Admin API; retrieved 2026-11-13; the precise allowance must be checked, not assumed).
The operational consequence is the part that does not expire: your integration shares a finite budget with every other app on the store, and with Shopify's own internal traffic. Marlow & Finch runs six apps. A 3PL integration that decides to reconcile all 620 SKUs every hour is spending your budget, and the cost lands on whichever write happens to be at the back of the queue.
Step 1 — Find out who is spending
Input: the list of installed apps with their stated sync frequency, plus any custom integration you own.
Shopify does not hand you a per-app consumption report in the admin. The practical route is the Partner/developer tooling for anything you built, and asking each vendor for their sync cadence for anything you bought. If a vendor cannot tell you their request frequency, treat that as the answer.
Error: assuming the budget is yours alone. Detection: throttling errors appear in a period when only one integration was active.
Step 2 — Move bulk work to bulk operations
Input: the volume of records per sync.
For reads, use the bulk operation mechanism rather than paginating thousands of records one page at a time (as of 2026-11 — Shopify Developer docs, bulk operations; retrieved 2026-11-13). A full catalogue read as a bulk job is a single asynchronous request that produces a file; the same read as a paginated walk is thousands of costed queries. For a 620-SKU store this is the difference between a pleasant sync and the 02:00 incident.
Error: a "small" nightly refresh that is actually a full crawl. Detection: request counts or cost per run logged by your own integration; if you cannot see it, that is the first thing to build.
Step 3 — Budget the write path
Input: how many quantity writes a reconciliation produces.
If you push a quantity for every SKU every night, you are writing 620 records whether or not any changed. Write only deltas: fetch current quantities, diff against your computed figures, write the small set that moved. This also gives you an audit trail of what your planner changed, which is what you need when the numbers disagree.
Error: sync storms — the integration writes, a webhook fires on the change, the handler triggers another write. Detection: request volume far above the number of SKUs, or a run duration that grows with each execution. Break the loop by making the handler ignore its own writes (a tag, a metafield marker, or an origin field).
Step 4 — Retry properly or not at all
Throttled requests should back off and retry; a client that retries immediately turns one throttled call into a burst that keeps the bucket empty. A client that gives up silently turns a busy afternoon into a wrong inventory number that nobody notices for a week. Neither is acceptable for stock.
Error: silent partial sync. Detection: the sync reports "success" but the count of updated records is lower than the diff you computed. Log both numbers and alert when they differ.
Step 5 — Use Flow for decisions, not for bulk
Flow is the better tool for event-shaped work: when an order is created, when inventory crosses a threshold, when a fulfilment is late. As of 2026-11, Flow runs as triggered workflows with a per-store execution allowance that is not identical across plans, and the allowance is not something this curriculum will quote (as of 2026-11 — Shopify Help Center, Flow; retrieved 2026-11-13; specific workflow and run limits: not verifiable from docs here — treat as unverified).
Two design rules follow. First, Flow is not a batch engine: looping over hundreds of variants inside a workflow spends runs and will hit whatever cap applies to you. Second, guard against re-entry — a workflow that writes inventory can trigger the workflow that watches inventory. Use a metafield or tag as a latch.
Step 6 — Watch the queue, not just the errors
The cheapest monitoring that actually works: alert when (a) the count of pending/unfulfilled orders older than your normal fulfilment lag rises, (b) any SKU's on-hand goes negative, and (c) your integration's last successful run is older than expected. All three are symptoms of a starved or stuck pipeline, and all three appear before anyone complains.
Where this breaks
- Big promotions. Order volume rises and the same integration competes with live order traffic for the same budget. Reduce sync frequency during known spikes; correctness of order flow beats freshness of a planning export.
- Multiple stores or a Plus organisation may have different budget shapes per store and per app — do not extrapolate from one store's behaviour.
- A 3PL's WMS writes on its own schedule and you cannot see or throttle it. Contract for cadence, and monitor for the symptoms above.
- The numbers themselves. Everything in this lesson about specific allowances is intentionally unquantified. If you need a figure, read the current developer documentation on the day you need it — and re-read it after any API version upgrade, because deprecation removes fields you may be counting on.
Provenance
Cost-based GraphQL limits, REST per-store allowance and bulk operations: Shopify Developer documentation, retrieved 2026-11-13, as of 2026-11. Flow's existence and event-driven model: Shopify Help Center, Flow, retrieved 2026-11-13, as of 2026-11. All specific bucket sizes, refill rates, call allowances, workflow caps and plan-gating details: intentionally omitted; check current docs. The claim that app traffic shares the store's budget is an inference from the per-store model, not a documented statement — treat as unverified.