Route Shopify webhooks to Google Cloud Pub/Sub via the Admin GraphQL API

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. Ensure the Shopify app has the required webhook write scope granted in its access token
  2. Construct a GraphQL mutation using pubSubWebhookSubscriptionCreate, providing the topic (e.g., ORDERS_CREATE) and a pubSubProject object containing the cloudPubSubProject and topicId fields
  3. Format the Pub/Sub address as pubsub://{project-id}:{topic-id} in the pubSubProject input
  4. Execute the mutation against the Admin GraphQL API versioned endpoint and capture the returned webhookSubscription id
  5. Verify the subscription was created by querying the webhookSubscriptions connection and confirming the endpoint and topic
  6. Grant the Shopify service account Pub/Sub Publisher IAM role on the target topic in Google Cloud so deliveries are authorized

Known gotchas

Related routes

Subscribe a Shopify webhook to a Google Cloud Pub/Sub topic using the pubSubWebhookSubscriptionCreate Admin GraphQL mutation
shopify.dev · 6 steps · unrated
Shopify B2B: create a Company and company location via Admin GraphQL
shopify.dev · 6 steps · unrated
Create and update Shopify subscription contracts via the Admin GraphQL API subscriptionContractCreate mutation
ecommerce-ops · 6 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