The Admin API client provides both GraphQL and REST interfaces for interacting with the Shopify Admin API.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shopify/shopify-app-js/llms.txt
Use this file to discover all available pages before exploring further.
createAdminApiClient()
Creates a GraphQL client for the Shopify Admin API.Parameters
The Shopify store domain (e.g.,
my-store.myshopify.com)The Admin API version to use (e.g.,
2025-10)Admin API access token for authentication
Optional prefix to add to the User-Agent header
Number of retry attempts for failed requests
Custom fetch implementation (defaults to global
fetch)Logger function for debugging and monitoring requests
Set to
true to skip server-side usage validation during testingReturns
Admin API client instance with the following properties:
Client Methods
fetch()
Executes a GraphQL operation and returns the raw response.GraphQL query or mutation string
Request options:
variables: GraphQL variables objectheaders: Additional headers to merge with defaultsapiVersion: Override the default API versionretries: Override the default retry countsignal: AbortSignal for request cancellation
request()
Executes a GraphQL operation and returns parsed response data.ClientResponse<TData> object:
The GraphQL response data
Error information if the request failed:
networkStatusCode: HTTP status codemessage: Error messagegraphQLErrors: Array of GraphQL errorsresponse: Raw Response object
GraphQL extensions from the response
Response headers