Shopify API development
API work is the least visible thing we do and the thing most likely to fail silently. An integration or app that reads and writes Shopify data is easy to make work once, on a quiet Tuesday, with ten orders. Whether it still works during a sale, when a courier's system is down, or after Shopify retires an API version is a different question, and it is decided by engineering choices made at the start.
This page is about those choices. If you want the commercial pages instead, they are app development and integrations.
Which API, and why it matters
| Surface | What it is for | Chosen when |
|---|---|---|
| Admin API (GraphQL) | Reading and writing products, inventory, orders, customers, fulfilment | Almost all integration and automation work |
| Storefront API | Customer-facing data for a custom front end or an app surface | Headless builds, or storefront functionality a theme cannot express |
| Webhooks | Shopify telling you something happened | Anything that must react to an event rather than poll for it |
| Functions | Logic Shopify runs itself, at checkout and in discounts | Rules that must not be bypassable from the client |
| Bulk operations | Large reads and writes without exhausting rate limits | Catalogue-scale work, thousands of products or orders |
The failure modes that matter
Every one of these is ordinary, and each is the reason an integration that worked for a month stops being trusted:
| Failure | What it looks like | What prevents it |
|---|---|---|
| Rate limiting | Works in testing, fails during a sale when volume triples | Cost-aware GraphQL queries, backoff, bulk operations instead of loops |
| Missed webhooks | One order never syncs; nobody notices for a week | Webhook verification, a durable queue, and a reconciliation pass that catches what the stream dropped |
| Duplicate delivery | The same order created twice downstream | Idempotency keys. Shopify can and does deliver a webhook more than once |
| Partial writes | Inventory updated, order not, data now disagrees with itself | Ordering operations so the safe one fails first, and retries that are safe to repeat |
| API version retirement | Works for a year, then stops | Pinned version, recorded renewal date, an owner for it |
| Clock and timezone drift | Reports off by a day at month end | Store timezone handled explicitly rather than inherited from a server |
| Silence | It stopped three weeks ago and nobody knew | Alerting on absence of expected activity, not only on errors |
That last one is the most common of all, and the cheapest to fix. An integration with no alerting is an integration you will stop trusting.
How we build it
- Define the contract. Which fields, which direction, how often, and which system is authoritative when the two disagree. Answer that last one in writing before any code, because every data integration eventually hits it.
- Pin the API version and record it with its retirement window.
- Build idempotent from the start. Retrofitting idempotency after a duplicate-order incident is miserable.
- Reconcile as well as stream. Webhooks for speed, a scheduled reconciliation for correctness. Either alone is insufficient.
- Alert on silence. Expected volume per hour, and a notification when it does not arrive.
- Log enough to answer "what happened to order 1043?" without a developer reading code.
- Hand over the runbook, what breaks, how you would know, what to do first. In your repository, in plain language.
When you do not need API development
- A connector already exists. Most mainstream systems have one. Pay for it.
- The need is a nightly file. A scheduled export is simpler, cheaper and easier to debug than a real-time integration nobody needs in real time.
- It is inventory across channels. Solved product territory, see inventory sync.
- Nobody will own it. Custom API work with no owner becomes an outage with no owner.
Common questions
REST or GraphQL?
GraphQL for new work. Shopify's investment is there, and cost-aware queries handle rate limits far better than REST pagination.
Can you work with our in-house developers?
Yes, and it is often the best arrangement, we do the Shopify side and the contract definition, your team owns their system. The written contract in step 1 is what makes that work.
Do you host what you build?
Preferably in infrastructure in your name, so you are not dependent on us. We will run it if you would rather, with that stated plainly in the scope.
How do we know it is still working six months later?
Because of the alerting in step 5. If a proposal you are comparing does not mention monitoring, that is the question to ask about it.
Next step
Bring the data question rather than the technology: what has to appear where, how fast, and which system wins a disagreement. A free scoping conversation will tell you whether this needs building or buying. Related free reading: the role of APIs in ecommerce platforms.
