Manage Shopify subscription selling plans and subscription contracts lifecycle

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. Call `sellingPlanGroupCreate` with a `name`, `merchantCode`, array of `sellingPlans` (each with billing policy, delivery policy, and pricing policy), and associate the group with product/variant IDs.
  2. When a buyer selects a selling plan at checkout, Shopify creates a subscription contract; your app receives the `subscription_contracts/create` webhook.
  3. Use `subscriptionContractCreate` to create a contract programmatically (for migrations), providing customer ID, billing and delivery policies, and line items.
  4. To modify an active contract (pause, cancel, change cadence), call `subscriptionContractUpdate` which opens a draft; commit changes with `subscriptionDraftCommit`.
  5. Initiate billing attempts with `subscriptionBillingAttemptCreate`; poll or listen to `subscription_billing_attempts/success` and `subscription_billing_attempts/failure` webhooks to track outcomes.
  6. Handle failed billing by checking `subscriptionBillingAttempt.errorCode` and implementing retry logic; after a configurable number of failures, cancel or pause the contract via `subscriptionContractUpdate`.

Known gotchas

Related routes

Create and manage Shopify selling plan groups and selling plans for subscription products via the Admin GraphQL API
shopify.dev · 6 steps · unrated
Create Shopify selling plan groups and selling plans via sellingPlanGroupCreate to power subscription products
ecommerce-ops · 6 steps · unrated
Create a Shopify subscription selling plan group with a selling plan using the sellingPlanGroupCreate Admin GraphQL mutation
shopify.dev · 6 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