Query Shopify store credit balance and handle expiry for a customer

domain: shopify.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.dev, checked against official docs, with linked verified routes.

Steps

  1. Use the Admin GraphQL API (version 2024-07 or later) to query the storeCreditAccount field on a Customer object
  2. The storeCreditAccount returns the current balance amount and currency
  3. Query storeCreditAccountTransactions to retrieve the transaction history including credits, debits, and expiry events
  4. If your store configures credit expiry, the expiredAt field on each credit transaction indicates when that credit tranche expires
  5. Present the balance and nearest expiry date to the customer via your storefront or customer account page
  6. Subscribe to relevant Customer update webhooks or poll periodically to keep your cached balance current

Known gotchas

Related routes

Create a Recharge subscription for a Shopify customer and manage its lifecycle via the Recharge API
developer.rechargepayments.com · 6 steps · unrated
Implement the Shopify Customer Account API token refresh flow and handle token expiry gracefully in a headless app
shopify.dev · 6 steps · unrated
Access the Smile.io API (Plus/Enterprise plans) to read customer point balances on Shopify or BigCommerce
dev.smile.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans