read
admin

Run an arbitrary READ-ONLY Shopify Admin GraphQL query and get the raw data back — the Shopify analog of GAQL. Full Admi

Changed on

Run an arbitrary READ-ONLY Shopify Admin GraphQL query and get the raw data back — the Shopify analog of GAQL. Full Admin API read surface: orders, customers, products, variants, inventory, fulfillments, metafields, discounts, draft orders, and more. Mutations are rejected (use the typed write tools). Fields the pinned Admin API version marks deprecated are refused, naming each field and its successor; rewrite and run again. Common ones: Market.enabled (use status), Market.primary, Market.regions (use conditions.regionConditions), Market.priceList (use catalogs), Customer.email (use defaultEmailAddress { emailAddress }), Customer.phone (use defaultPhoneNumber { phoneNumber }), productByHandle / collectionByHandle (use productByIdentifier / collectionByIdentifier(identifier: { handle })), Shop.billingAddress (use shopAddress). Example: "{ orders(first: 5, query: "financial_status:paid") { edges { node { id name totalPriceSet { shopMoney { amount } } } } } }". Queries the Shopify Admin GraphQL API, see https://shopify.dev/docs/api/admin-graphql

post/api/v1/tools/shopify_graphql_query

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesadmin:read

Request body

object required
query, string required

A read-only Shopify Admin GraphQL query.

variables, object

Optional GraphQL variables.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision