Executes GraphQL queries against Shopify’s Customer Account API on behalf of the authenticated customer. This endpoint handles token management, refresh, and authentication automatically.
What you can query:
Token Management:
Example Queries:
query {
customer {
id
emailAddress { emailAddress }
defaultAddress { address1 city }
}
}
Authentication: Customer must be logged in and have completed OAuth flow
curl --request POST \
--url https://www.myshop.com/apps/subscriptions/cp/api/customer-account-api/graphql \
--header 'Content-Type: application/json' \
--data '
{
"query": "query { customer { id emailAddress { emailAddress } } }",
"variables": {}
}
'{
"data": {
"customer": {
"id": "gid://shopify/Customer/123",
"emailAddress": {
"emailAddress": "customer@example.com"
}
}
}
}Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://www.myshop.com/apps/subscriptions/cp/api/customer-account-api/graphql \
--header 'Content-Type: application/json' \
--data '
{
"query": "query { customer { id emailAddress { emailAddress } } }",
"variables": {}
}
'{
"data": {
"customer": {
"id": "gid://shopify/Customer/123",
"emailAddress": {
"emailAddress": "customer@example.com"
}
}
}
}