Este artigo está atualmente disponível apenas em inglês. Tradução em breve.
Most Shopify integrations in 2026 belong on the GraphQL Admin API: Shopify made the REST Admin API legacy on October 1, 2024, and new public apps must use GraphQL since April 1, 2025. Pair it with webhooks for change events, a scheduled reconciliation read, and at least one API version upgrade a year.
A Shopify API integration connects a store to another system: an ERP, a warehouse, a marketplace, a headless storefront or an internal tool. This guide covers the decisions that come before any code (which API, and whether to build at all) and the platform rules a production integration has to live with in 2026: the REST-to-GraphQL move, rate limits by plan, quarterly API versions, webhook delivery and the compliance webhooks. Shopify's dates, limits and webhook rules below link to the shopify.dev or Shopify Help Center page they come from, read on 2026-11-19.
Key Takeaways
- Start new work on the GraphQL Admin API. Shopify's REST Admin API page states that "The REST Admin API is a legacy API as of October 1, 2024" and that "Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API" (REST Admin API reference).
- Rate limits depend on the store's plan. The GraphQL Admin API restores 100 points per second on Standard plans, 200 on Advanced, 1,000 on Shopify Plus and 2,000 on Shopify for enterprise, and no single query may cost more than 1,000 points (GraphQL Admin API rate limits).
- Webhooks are a trigger, not a ledger. Shopify says webhook delivery "isn't always guaranteed" (webhooks), retries a failed delivery up to eight times in four hours, and removes a subscription whose failures persist (troubleshooting webhooks). Reconcile with a scheduled API read.
- Budget for upkeep. Shopify releases an API version every quarter and supports each stable version for at least 12 months (API versioning), so a custom integration needs at least one version upgrade a year.
- Buying can beat building. For a common pairing (Shopify and Odoo, for example) a packaged connector already handles the sync; a custom app earns its cost when the flow is specific to your business.
Which Shopify API does your integration need?
Match the job to the API before choosing tools. Most back-office integrations need only the first two rows.
| Job | API or tool | What to know |
|---|---|---|
| Sync products, orders, inventory and customers with an ERP, WMS or CRM | GraphQL Admin API plus webhooks | The REST Admin API is legacy; some newer features may be available only in GraphQL |
| Export a whole catalogue or order history | Bulk operations (bulkOperationRunQuery) | Runs asynchronously and returns a JSONL file; the bulk query itself is not rate-limited (bulk operations) |
| Headless storefront, mobile app or buy button | Storefront API | Shopify's limits page says buyer traffic "isn't rate-limited at all"; bot and checkout limits still apply (API limits) |
| Customer account pages outside the theme | Customer Account API | 3,000 requests per minute per customer (API limits) |
| Custom logic inside Shopify (discounts, delivery or payment rules, admin and checkout UI) | App extensions and Shopify Functions | Built and deployed as part of an app, not called from your server |
For a deeper look at the two most used surfaces, see our GraphQL Admin API guide and the Storefront API headless checkout guide.
Connector app, middleware or a custom app?
There are three routes to the same integration, and the cheapest one depends on how standard your flow is.
| Route | Fits when | You own |
|---|---|---|
| A packaged connector (an App Store app, or an ERP-side module) | The pairing is common (Shopify with Odoo, NetSuite, a 3PL) and its sync rules match yours | Configuration and mapping; the vendor keeps up with API versions |
| Middleware or an integration platform | Several systems exchange data and a team can maintain mappings in a visual tool | The mappings, the platform subscription and its error queue |
| A custom app | The flow is specific to your business (custom pricing rules, a bespoke warehouse process, a system no connector supports) | The code, hosting, monitoring and every quarterly API upgrade |
For Shopify and Odoo, ECOSIRE publishes a packaged connector for Odoo 17, 18 and 19 that imports orders and syncs inventory through Odoo scheduled actions (by default every 15 and every 10 minutes): see the Shopify Odoo integration. When the flow is not standard, a custom app is the route; our Shopify app development service scopes and builds one.
GraphQL vs REST
Shopify maintains both GraphQL and REST endpoints for the Admin API, but REST is now legacy and "Some newer platform features may only be available in GraphQL" (REST Admin API reference).
Comparison
| Dimension | REST Admin API | GraphQL Admin API |
|---|---|---|
| Status | Legacy since October 1, 2024 | Required for new public apps since April 1, 2025 |
| Data fetching | Fixed response shape; over-fetching common | Request exactly the fields you need |
| Nested resources | Multiple round-trip requests | Single query with nested selections |
| Rate limiting | A 40-request bucket per app and store that leaks 2 requests per second on Standard plans; 10 times that on Plus | 100 to 2,000 points per second by plan; at most 1,000 points per query |
| Pagination | Link header-based cursor pagination | Relay-style cursor pagination with pageInfo |
| Bulk operations | Not available | bulkOperationRunQuery and bulk mutations |
When to use which
Use GraphQL for new work: nested data (an order with its line items and fulfillment status in one call), bulk exports, and newer platform features. Keep REST only where an existing integration still depends on it, and treat it as a migration item rather than a foundation.
Migration path
If your integration relies on REST, migrate the high-volume calls first. Catalogue reads, order lists and full exports gain the most, and a bulk operation replaces what would otherwise be hundreds of paginated REST calls. Since API version 2026-01, an app can run up to five bulk query operations per shop at the same time; earlier versions allow one at a time (bulk operations).
Authentication and Authorization
Shopify supports several authentication flows, depending on the app type and how it is installed.
OAuth 2.0 (apps installed by merchants)
The authorization code flow for an app a merchant installs:
- Merchant initiates install from the Shopify App Store or a direct install link.
- Your app redirects to
https://{shop}.myshopify.com/admin/oauth/authorizewith yourclient_id, requestedscopes, andredirect_uri. - Merchant approves the requested scopes.
- Shopify redirects back with a temporary
code. - Your server exchanges the code for an
access_tokenviaPOST /admin/oauth/access_token.
Access Scopes
Request the minimum scopes required. Shopify's App Store requirements say an app "must request only the access scopes that are necessary for your app to function properly", and a reviewer can ask for proof that each requested scope is required (App Store requirements).
| Scope | Access |
|---|---|
read_products / write_products | Product catalog |
read_orders / write_orders | Order management |
read_customers / write_customers | Customer records |
read_inventory / write_inventory | Inventory levels and locations |
read_fulfillments / write_fulfillments | Fulfillment and tracking |
Session Tokens (Embedded Apps)
For apps embedded in the Shopify Admin, session tokens replace cookies. Shopify App Bridge issues a JWT that your backend validates using your app's API secret, which avoids third-party cookie problems in the embedded admin.
Custom apps for a single store
A custom app is built for one store rather than for the App Store. Shopify's Help Center says you now "create and manage custom apps using the Dev Dashboard" (Custom apps). Legacy custom apps, created before January 1, 2026, can still be managed from the Shopify admin, and some have moved to the Dev Dashboard (Manage legacy custom apps).
Webhook Architecture
Polling for changes is slow and wastes rate limit. Webhooks push events to your application as they happen.
Event-Driven Integration
Register webhooks for the events your integration cares about. Common subscriptions include:
orders/create,orders/updated,orders/paid: trigger fulfillment workflows, ERP sync, or notification pipelines.products/update,products/delete: keep external catalogs or search indexes current.inventory_levels/update: synchronize stock across channels and warehouses.app/uninstalled: clean up merchant data and revoke stored credentials.
Mandatory compliance webhooks
"Every app that's distributed through the Shopify App Store must subscribe to" three compliance topics (privacy law compliance):
customers/data_request: a request to view the data you store about a customer.customers/redact: a request to delete the data you store about a customer.shop/redact: a request to delete a shop's data, sent 48 hours after the store owner uninstalls your app.
Delivery, retries and idempotency
Shopify's webhook overview says "Webhook delivery isn't always guaranteed" and tells apps to verify HMAC signatures and "ignore duplicate deliveries using X-Shopify-Webhook-Id" (webhooks). Build the handler to be idempotent: store processed webhook IDs and skip any you have seen.
Your endpoint must respond within five seconds. Shopify retries a failed delivery up to eight times in a four-hour period, with growing intervals, and if failures persist it removes the subscription (troubleshooting webhooks). Two consequences for an integration:
- Acknowledge fast and do the work in a queue, so a slow ERP never times out the delivery.
- Run a scheduled reconciliation that reads recent orders and stock levels through the API, and check on a schedule that your subscriptions still exist. A removed subscription delivers nothing until you create it again.
Rate Limits and Throttling
Every limit below varies by the store's plan, so read the plan of each store you integrate with.
GraphQL: cost-based throttling
Each app and store pair gets a bucket and a restore rate based on the store's plan (GraphQL Admin API rate limits):
| Plan | Restore rate |
|---|---|
| Standard | 100 points per second |
| Advanced Shopify | 200 points per second |
| Shopify Plus | 1,000 points per second |
| Shopify for enterprise (Commerce Components) | 2,000 points per second |
A single query may not cost more than 1,000 points on any plan. Each response reports requestedQueryCost, actualQueryCost and a throttleStatus (maximumAvailable, currentlyAvailable, restoreRate) under extensions.cost, and Shopify refunds the difference between the requested and the actual cost. Send the header Shopify-GraphQL-Cost-Debug=1 to see the cost per field.
REST: leaky bucket
The REST Admin API gives each app a bucket of 40 requests per store that leaks 2 requests per second on Standard plans. Advanced stores get 4 requests per second, Shopify Plus stores a bucket of 400 that leaks 20 per second, and Shopify for enterprise 40 per second. Each response carries X-Shopify-Shop-Api-Call-Limit (for example 32/40), and a throttled call returns 429 Too Many Requests with a Retry-After header (REST Admin API rate limits).
Retry strategies
- On a
429, wait the number of seconds inRetry-After. - On a GraphQL
THROTTLEDerror, wait untilcurrentlyAvailablecovers the query's cost at the store's restore rate. Shopify's limits page recommends a backoff of one second (API limits). - Add jitter so parallel workers do not retry in step, cap the number of retries, and alert when a sync keeps hitting the limit.
Common Integration Patterns
ERP Synchronization
The most frequent back-office integration connects Shopify to an ERP for a two-way flow: orders created in Shopify go to the ERP for fulfillment and invoicing, and stock changes in the ERP go back to Shopify. Decide which system owns each record (products, prices, stock, customers) before writing any sync, because two owners for one field is where most sync bugs start.
Inventory Management
Set stock from the system that owns it with the GraphQL Admin API mutation inventorySetQuantities; Shopify recommends calling it only on behalf of the inventory source of truth and inventoryAdjustQuantities otherwise (inventorySetQuantities). Two changes matter for ERP connectors:
- From API version 2026-04, each quantity needs a
changeFromQuantity. If the stored value differs, the mutation returnsCHANGE_FROM_QUANTITY_STALEinstead of overwriting a change made elsewhere. Passnullonly when you mean to skip the check. - From 2026-04, the mutation also requires an idempotency key, sent with the
@idempotentdirective, so a retried call cannot apply the same change twice.
Subscribe to inventory_levels/update to detect changes made through other channels or directly in the Shopify Admin.
Order Routing
For merchants with several warehouses or fulfillment partners, route orders by stock availability, shipping distance and fulfillment cost. Shopify's fulfillment orders assign fulfillment responsibility to specific locations or third-party services.
Customer Data Synchronization
Synchronizing customers between Shopify and a CRM or marketing platform means handling merge conflicts, consent status, and format differences. Use the customers/update webhook as the trigger and choose a conflict rule up front (one system as the source of truth, or last write wins by timestamp).
Building Custom Shopify Apps
Public vs Custom Apps
| Attribute | Public app | Custom app |
|---|---|---|
| Built for | Many merchants, through the Shopify App Store | One store |
| App Store review | Required | Not listed in the App Store |
| Compliance webhooks | Required for App Store apps | Not an App Store requirement; the store's own privacy duties still apply |
App Extensions
Extensions let an app render inside Shopify instead of only calling it from outside. The main surfaces:
- Admin action and block extensions for custom workflows in the Shopify Admin.
- Checkout UI extensions for custom fields, upsells, or loyalty features at checkout.
- Theme app extensions for adding app features to Online Store themes without editing theme code.
- Shopify Functions for server-side logic (discounts, delivery and payment customization) that runs on Shopify's infrastructure.
Shopify CLI
The Shopify CLI (@shopify/cli) scaffolds, runs and deploys apps. shopify app dev starts your app locally with a tunnel and handles the install flow against a development store, and shopify app webhook trigger sends a test payload to your endpoint, which is the easiest way to test the compliance webhooks.
Testing and Debugging
Development stores
Test against a development store, never against a live store. Seed it with products, customers and orders that mirror your real edge cases: partially fulfilled orders, refunds, multiple locations, and batches near the 250-item cap Shopify puts on input arrays in every API (API limits).
GraphiQL
Build and test GraphQL queries interactively against a development store before putting them in code, and check their cost with the cost-debug header above.
Logging and Observability
In production, log every API response that returns an error or an unexpected status. Record the rate-limit header or throttleStatus on every call and expose it as a metric, alert on sustained throttling, and log the API version each response reports: if it differs from the version you requested, Shopify has fallen forward to the oldest accessible version (API versioning).
Security Best Practices
HMAC Verification
Every webhook from Shopify carries an X-Shopify-Hmac-Sha256 header (webhooks). Compute the HMAC-SHA256 of the raw request body using your app's API secret and compare it to the header value with a timing-safe comparison. Never skip this step, even in development.
OAuth Callback Validation
Verify the hmac query parameter on OAuth callbacks. Rebuild the query string without the hmac parameter, compute the HMAC, and compare. Also check that the state parameter matches the nonce you generated at the start of the flow, to prevent CSRF attacks.
Credential handling
Treat access tokens and the API secret as secrets: keep them in a secrets manager, never in client-side code or a repository, and revoke and reissue any credential you suspect is exposed.
Scope Minimization
Request only the access scopes your app actually needs, and read rather than write where reading is enough. A smaller scope set limits the damage of a leaked token.
Data Handling
Never store raw card data: Shopify's checkout handles payment cards, and an integration should never need card numbers. Encrypt customer personal data at rest, restrict who can read it, and act on customers/redact and shop/redact requests.
Frequently Asked Questions
What is the difference between the Admin API and the Storefront API?
The Admin API manages a store's back office (products, orders, customers, inventory, fulfillment) and needs authenticated access with scopes. The Storefront API serves customer-facing experiences such as headless storefronts and mobile apps, and Shopify does not rate-limit its buyer traffic.
Is the Shopify REST Admin API being retired?
Shopify calls the REST Admin API legacy as of October 1, 2024, and since April 1, 2025 every new public app must be built with the GraphQL Admin API alone. Existing REST integrations still run, but some newer features may be available only in GraphQL, so plan new work on GraphQL.
How do I handle Shopify API versioning?
Shopify releases a new version every quarter (for example 2026-04), supports each stable version for at least 12 months, and keeps at least nine months of overlap between consecutive versions. Pin the version in your API URL, upgrade at least once a year, and watch the version header in responses: when a version is no longer accessible, Shopify falls forward to the oldest accessible stable version.
What happens if my webhook endpoint goes down?
Shopify retries a failed delivery up to eight times in four hours and removes the subscription if failures persist. A removed subscription receives nothing until you create it again, so check your subscriptions on a schedule and reconcile recent orders and stock through the API.
Do I need a Shopify Plus plan for API access?
No. Rate limits rise with the plan: the GraphQL Admin API restores 100 points per second on Standard, 200 on Advanced and 1,000 on Shopify Plus.
Should I buy a connector or build a custom integration?
Buy when a connector already covers your pairing and its sync rules match your process; you then configure rather than maintain code. Build a custom app when the flow is specific to your business, and budget for hosting, monitoring and at least one API version upgrade a year.
Plan Your Shopify Integration with ECOSIRE
Whether you need a packaged connector, a webhook-driven sync or a custom app, start with the decision above: which API, and whether to build at all. For Shopify and Odoo, see the Shopify Odoo integration. For anything custom, our Shopify app development service scopes the work, or contact ECOSIRE to discuss your requirements.
Escrito por
ECOSIRE Research and Development TeamRedação técnica
A equipe de redação técnica da ECOSIRE escreve sobre Odoo ERP, e-commerce com Shopify, agentes de IA, análise de dados com Power BI, automação com GoHighLevel e boas práticas de software empresarial. Nossos guias ajudam as empresas a tomar decisões de tecnologia bem fundamentadas.
ECOSIRE
Amplie sua loja Shopify
Serviços personalizados de desenvolvimento, otimização e migração para comércio eletrônico de alto crescimento.
Artigos Relacionados
Geração de conteúdo de IA para comércio eletrônico: descrições de produtos, SEO e muito mais
Dimensione o conteúdo de comércio eletrônico com IA: descrições de produtos, meta tags de SEO, cópia de e-mail e mídia social. Estruturas de controle de qualidade e guia de consistência da voz da marca.
Padrões de integração de API: práticas recomendadas de arquitetura empresarial
Padrões de integração de API mestres para sistemas corporativos. REST vs GraphQL vs gRPC, arquitetura orientada a eventos, padrão saga, gateway de API e guia de controle de versão.
Comércio eletrônico multicanal: o manual completo para 2026
Domine o comércio eletrônico multicanal com este manual que abrange seleção de canais, sincronização de estoque, roteamento de pedidos, preços, devoluções, análises e pilha de tecnologia.