Shopify Admin bindings over the GraphQL Admin API (Shopify's current surface; the REST Admin API is legacy for new apps).

Curated functions cover orders, fulfillments, inventory, products, customers, draft orders, metafields and webhook subscriptions, with cursor pagination, throttle reporting and userErrors surfaced as errs. ::shopify::api/graphql runs anything else.

Setup: context variables

  • shopify.shop: the shop, as acme or acme.myshopify.com
  • shopify.access.token: an Admin API access token (shpat_...)
  • shopify.api.version: optional, overrides the pinned API_VERSION
  • shopify.webhook.secret: for webhook verification

Every API-calling function also takes them per call in a trailing opts Map (see ::shopify::api).

Quick start

::orders ::shopify::orders
::products ::shopify::products

page ::orders/list-orders({first: 10, query: "financial_status:paid"})
every ::orders/collect-orders({query: "created_at:>=2026-10-01"}, 500)
hits ::products/search-products("title:*sticker* status:active")

// Anything else via raw GraphQL
shop ::shopify::api/graphql("{ shop { name currencyCode } }")

Values

API_VERSION

API_VERSION: Str "2026-10"

DEFAULT_PAGE_SIZE

DEFAULT_PAGE_SIZE: Int 50

MAX_PAGE_SIZE

MAX_PAGE_SIZE: Int 250