An integration lets Shopify and another system exchange data they are permitted to share. Even if you never write the code, understanding how the pieces fit helps you ask better questions, judge quotes, and spot an integration that will be fragile. This guide explains how Shopify API integrations work: how they get access, how they read and write data, how webhooks notify them of changes, and what keeps them reliable over time.
The building blocks
- An app. Every integration that talks to the Shopify Admin API runs as an app with its own credentials and permissions, whether it is a public App Store app or a custom app for your store.
- APIs. The GraphQL Admin API is used to read and change store data such as products, orders and customers. Shopify has designated the REST Admin API as legacy since October 1, 2024, and new public apps must use GraphQL exclusively since April 1, 2025. The Storefront API serves customer-facing experiences.
- Webhooks. Notifications Shopify sends when something happens, such as an order being created.
- App proxies. A way for an app to serve data on the storefront under your store's domain: Shopify takes requests to storefront URLs and proxies them to the app.
Authentication and access scopes
Each GraphQL Admin API request carries an access token. What that token can do is limited by access scopes, which the app requests during installation. Shopify's guidance is to request only the access the app needs. A few details matter in practice:
- A write scope also grants read access to the same resource.
- Order access defaults to the last 60 days; older orders need an additional scope.
- Apps have no access to protected customer data by default; Shopify reviews that access separately from scopes.
- Custom apps are created and managed in Shopify's Dev Dashboard.
Least privilege is not only good security. It also limits the damage a bug can do.
Reading and writing data
An integration reads data with GraphQL queries and changes it with mutations. For large data sets, such as exporting every order for a reconciliation, Shopify offers bulk operations: the query runs asynchronously on Shopify's side, and results are delivered as a JSONL file with one object per line. Shopify recommends subscribing to the bulk_operations/finish webhook rather than polling for completion, while noting that webhook delivery is not always guaranteed, so a status check is still a sensible fallback. From API version 2026-01, an app can run up to five bulk query operations per shop at the same time.
Rate limits
Shopify limits how quickly an app can call its APIs, using a leaky bucket model. Each request uses some of the bucket's capacity, which refills at a set rate, and a short burst is fine as long as the average stays below the restore rate. For the GraphQL Admin API, the cost of a request is calculated from the query, and limits vary by plan. When the bucket is full, the app receives a throttle error and should stop sending requests until capacity is available again; Shopify recommends a backoff of one second. Shopify also recommends caching data the integration uses often. Integrations that ignore rate limits tend to work in testing and fail on a busy day.
How webhooks work
Instead of asking Shopify repeatedly whether anything has changed, an app can subscribe to webhook topics, and Shopify sends a request when the event happens. Subscriptions can be declared in the app's configuration or through the API, and can deliver to an HTTPS endpoint, Google Cloud Pub/Sub or Amazon EventBridge. Filters can limit which events produce a delivery.
Verify that each webhook came from Shopify
Each HTTPS delivery includes an X-Shopify-Hmac-SHA256 header. The receiving app computes an HMAC-SHA256 signature of the raw request body using the app's client secret, compares it with the header, and rejects the request if they do not match. The raw body must be captured before any parsing, because parsing changes the bytes being signed. After a client secret is rotated, Shopify notes it can take up to an hour before signatures use the new secret.
Respond quickly and queue the work
Shopify expects a 200 OK response and treats anything outside the 200 range, including redirects, as an error. It applies a one-second connection timeout and a five-second timeout for the whole request. A reliable receiver verifies the request, stores it, responds, and processes it afterward from a queue.
Expect duplicates and out-of-order delivery
The same webhook can arrive more than once, for example after a timeout. Shopify recommends processing idempotently, or deduplicating with the X-Shopify-Webhook-Id header, which is unique to each delivery. Shopify does not guarantee ordering within a topic, so an update can arrive before the matching create; the X-Shopify-Triggered-At header or the payload's updated_at value helps put events in order.
Handle failures
If Shopify receives no response or an error, it retries eight times over the next four hours. After eight consecutive failures, a subscription created through the Admin API is deleted automatically. Monitoring should alert someone long before that point.
Webhooks are notifications, not a guarantee
Shopify's documentation states that apps should not rely only on receiving webhooks and recommends reconciliation jobs that periodically fetch data from Shopify. Webhooks make an integration fast; reconciliation makes it correct.
API versions
Shopify releases a new API version every quarter, named by date, such as 2026-04. Each stable version is supported for at least 12 months. If an app calls a version that is no longer available, Shopify falls forward to the oldest supported stable version, and the X-Shopify-API-Version response header shows which version was used. An integration needs a scheduled review of each new version, rather than an upgrade only when something breaks.
Data mapping and logging
Before anything is built, every field should have a documented source of truth, a mapping and a rule for conflicts. Agreeing this mapping is part of scoping any Shopify integration project, and it is cheaper to settle on paper than in code.
| Shopify field (illustrative) | External field | Source of truth | Direction |
|---|---|---|---|
| Order number | Sales order reference | Shopify | Shopify to external |
| Fulfillment status | Dispatch status | Warehouse | External to Shopify |
| Inventory quantity | Available stock | Warehouse | External to Shopify |
Logs should record what was received, what was changed and what failed, with enough detail to trace a problem, but without secrets or unnecessary personal data.
An illustrative order sync
- A shopper places an order, and Shopify sends an orders/create webhook.
- The receiver verifies the HMAC signature, stores the payload with its webhook ID, and responds within the timeout.
- A worker takes the job from the queue, skips it if the ID was already processed, and maps the order to the external format.
- The worker sends it to the external system, retrying with backoff if that system is unavailable, and logs the result.
- A scheduled job compares recent Shopify orders with the external system and reports or repairs any gaps.
Checklist before going live
- Scopes are limited to what the integration needs.
- Webhook signatures are verified on the raw body.
- Processing is idempotent or deduplicated.
- Work is queued, and failures are retried and alerted.
- Rate limits are respected, with backoff.
- Reconciliation runs on a schedule.
- The API version is pinned and reviewed each quarter.
- Failure paths have been tested, not only the happy path.
Key takeaways
- Integrations run as apps with scoped access; request only what is needed.
- Webhooks must be verified, acknowledged quickly, deduplicated and backed by reconciliation.
- Rate limits and quarterly API versions are part of normal operation, not edge cases.
- Clear mapping and logging make problems fixable.
Next steps
If you need an integration designed or reviewed, explore our Shopify API integration services or book a free discovery call.
