Skip to content
Ecomm11

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

SurfaceWhat it is forChosen when
Admin API (GraphQL)Reading and writing products, inventory, orders, customers, fulfilmentAlmost all integration and automation work
Storefront APICustomer-facing data for a custom front end or an app surfaceHeadless builds, or storefront functionality a theme cannot express
WebhooksShopify telling you something happenedAnything that must react to an event rather than poll for it
FunctionsLogic Shopify runs itself, at checkout and in discountsRules that must not be bypassable from the client
Bulk operationsLarge reads and writes without exhausting rate limitsCatalogue-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:

FailureWhat it looks likeWhat prevents it
Rate limitingWorks in testing, fails during a sale when volume triplesCost-aware GraphQL queries, backoff, bulk operations instead of loops
Missed webhooksOne order never syncs; nobody notices for a weekWebhook verification, a durable queue, and a reconciliation pass that catches what the stream dropped
Duplicate deliveryThe same order created twice downstreamIdempotency keys. Shopify can and does deliver a webhook more than once
Partial writesInventory updated, order not, data now disagrees with itselfOrdering operations so the safe one fails first, and retries that are safe to repeat
API version retirementWorks for a year, then stopsPinned version, recorded renewal date, an owner for it
Clock and timezone driftReports off by a day at month endStore timezone handled explicitly rather than inherited from a server
SilenceIt stopped three weeks ago and nobody knewAlerting 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

  1. 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.
  2. Pin the API version and record it with its retirement window.
  3. Build idempotent from the start. Retrofitting idempotency after a duplicate-order incident is miserable.
  4. Reconcile as well as stream. Webhooks for speed, a scheduled reconciliation for correctness. Either alone is insufficient.
  5. Alert on silence. Expected volume per hour, and a notification when it does not arrive.
  6. Log enough to answer "what happened to order 1043?" without a developer reading code.
  7. 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.