Skip to main content

The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.

REST Admin API reference

The Admin API lets you build apps and integrations that extend and enhance the Shopify admin.

Some newer platform features may only be available in GraphQL.

Use Shopify’s officially supported libraries to build fast, reliable apps with the programming languages and frameworks you already know.

cURL

Use the curl utility to make API queries directly from the command line.

Remix

The official package for Remix applications, with full TypeScript support.

Node.js

The official client library for Node.js applications, with full TypeScript support. It has no framework dependencies, so it can be used by any Node.js app.

Ruby

The official client library for Ruby apps.

Other

Need a different language? Check the list of community-supported libraries.


All REST Admin API queries require a valid Shopify access token.

Public and custom apps created in the Partner Dashboard generate tokens using OAuth, and custom apps made in the Shopify admin are authenticated in the Shopify admin. To simplify the authentication process, use one of the recommended Shopify client libraries.

Include your token as a X-Shopify-Access-Token header on all API queries. Using Shopify’s supported client libraries can simplify this process.

To keep the platform secure, apps need to request specific access scopes during the install process. Only request as much data access as your app needs to work.

Learn more about getting started with authentication and building apps.


Anchor to Endpoints and requestsEndpoints and requests

Admin REST API endpoints are organized by resource type. You’ll need to use different endpoints depending on your app’s requirements.

All Admin REST API endpoints follow this pattern:

https://{store_name}.myshopify.com/admin/api/2025-07/{resource}.json

POST
Example POST request

Create a new product.

This example illustrates how to create a new product using the Product resource and the /admin/api/2025-07/products.json endpoint. Replace {store_name} with your store’s domain and {access_token} with the access token you generated in the Authentication section.

GET
Example GET request

Retrieve a single product.

This example illustrates how to retrieve information for a single product using the Product resource and the admin/api/2025-07/products/{product_id}.json endpoint. Replace {store_name} with your store’s domain and {access_token} with the access token you generated in the Authentication section.

PUT
Example PUT request

Update a product.

This example illustrates how to update a product using the Product resource and the admin/api/2025-07/products/{product_id}.json endpoint. Replace {store_name} with your store’s domain and {access_token} with the access token you generated in the Authentication section.

DEL
Example DELETE request

Delete a product.

This example illustrates how to delete a product using the Product resource and the admin/api/2025-07/products/{product_id}.json endpoint. Replace {store_name} with your store’s domain and {access_token} with the access token you generated in the Authentication section.

The Admin API is versioned, with new releases four times per year. To keep your app stable, make sure you specify a supported version in the URL. Learn more about API versioning.

All REST endpoints support cursor-based pagination. All requests produce HTTP response status codes.

Learn more about API usage.


The REST Admin API supports a limit of 40 requests per app per store per minute. This allotment replenishes at a rate of 2 requests per second. The rate limit is increased by a factor of 10 for Shopify Plus stores.

REST Admin API supports a limit of 40 requests per app per store per minute.

Past the limit, the API will return a 429 Too Many Requests error.

All REST API responses include the X-Shopify-Shop-Api-Call-Limit header, which shows how many requests the client has made, and the total number allowed per minute.

A 429 response will also include a Retry-After header with the number of seconds to wait until retrying your query.

Learn more about rate limits.


Anchor to Status and error codesStatus and error codes

All API queries return HTTP status codes that can tell you more about the response.


The client doesn’t have correct authentication credentials.


Anchor to [object Object]402 Payment Required

The shop is frozen. The shop owner will need to pay the outstanding balance to unfreeze the shop.


The server is refusing to respond. This is typically caused by incorrect access scopes.


The requested resource was not found but could be available again in the future.


Anchor to [object Object]422 Unprocessable Entity

The request body contains semantic errors. This is typically caused by incorrect formatting, omitting required fields, or logical errors such as initiating a checkout for an out-of-stock product.


Anchor to [object Object]429 Too Many Requests

The client has exceeded the rate limit.


An internal error occurred in Shopify. Check out the Shopify status page for more information.


Didn’t find the status code you’re looking for?

View the complete list of API status response and error codes.


Was this page helpful?