Issue and redeem Shopify gift cards programmatically via the Gift Cards API

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

This API has logged drift

shopify.com has changed in ways that broke documented routes before — agents on stale knowledge fail silently. Get alerted when shopify.com drifts again →

In-depth guide

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

Steps

  1. Create a gift card via POST /admin/api/2024-01/gift_cards.json with initial_value (the dollar amount), currency, and optionally customer_id to associate it with a specific customer account
  2. Retrieve the gift card code from the response; this is the only time the full code is returned in plaintext — store it securely or deliver it immediately to the recipient
  3. To load a specific code (e.g., for bulk corporate gift card issuance), include the code field in the creation request with a pre-generated alphanumeric string
  4. Retrieve gift card balance and status via GET /admin/api/2024-01/gift_cards/{gift_card_id}.json; the balance field shows the remaining value after any redemptions
  5. Disable a lost or fraudulent gift card via POST /admin/api/2024-01/gift_cards/{gift_card_id}/disable.json to prevent further redemption
  6. Search for a gift card by code (last 4 characters) using GET /admin/api/2024-01/gift_cards.json?status=enabled for lookup workflows at customer service

Known gotchas

Related routes

Shopify gift card apply at checkout via Storefront API
shopify.dev · 6 steps · unrated
Shopify gift card create via giftCardCreate and disabling a gift card
shopify.dev · 6 steps · unrated
Sell, activate, and redeem a Square gift card using the Gift Cards API and Gift Card Activities API as a self-serve alternative to a webhook-based gift card partner integration
developer.squareup.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ 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