Skip to main content
Shopify logo

Overview

Add Shopify to any ModuleX agent or workflow. E-commerce platform integration for managing products, orders, customers, collections, blogs, pages, metafields, metaobjects, fulfillments, and inventory via the Shopify Admin GraphQL API ({shop_id}.myshopify.com/admin/api/2025-01/graphql.json).
Categories: E-Commerce · Retail · Inventory Management · Auth: Shopify OAuth Access Token · Actions: 39

Authentication

Shopify OAuth Access Token

Authenticate using a Shopify OAuth access token and shop ID. Shopify uses shop-specific OAuth URLs which require custom auth handling.

Required Credentials

Available Actions

Parameters

string
required
The Shopify store subdomain (e.g. ‘my-store’ from my-store.myshopify.com)
string
required
The Shopify GID of the custom collection
array
required
Array of product GID strings to add to the collection

Response

Parameters

string
required
The Shopify store subdomain
string
required
The resource type. Allowed values: Product, Customer, Order, DraftOrder, Article
string
required
The Shopify Admin Resource GID
array
required
Array of tag strings to add

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the blog to create the article in
string
required
The title of the article
string
required
The name of the author of the article
string
The text content of the article, with HTML markup
string
A summary of the article, with HTML markup
string
The URL of the image associated with the article
array
Array of tag strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The title of the blog

Response

Parameters

string
required
The Shopify store subdomain
string
required
The name of the custom collection
array
Array of product GID strings to include in the collection
array
Array of metafield objects, each with key, value, type, and namespace
string
The source URL of the collection image

Response

Parameters

string
required
The Shopify store subdomain
string
required
The resource type. Allowed values: BLOG, COLLECTION, PAGE, PRODUCT, VARIANTS, ARTICLE
string
required
The human-readable name for the metafield definition
string
required
A container for a group of metafields (3-255 characters)
string
required
The key of the metafield (up to 64 characters)
string
required
The metafield data type (e.g. single_line_text_field, number_integer, json, boolean, url, color)
boolean
Whether to pin the metafield definition (Default: false)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The metaobject type (Shopify GID or type name)
array
Array of field objects, each with ‘key’ and ‘value’ strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The title of the page
string
required
The text content of the page, with HTML markup

Response

Parameters

string
required
The Shopify store subdomain
string
required
Title of the new product
string
A description of the product (supports HTML)
string
The name of the product’s vendor
string
A categorization for the product
string
The product status. Allowed values: ACTIVE, ARCHIVED, DRAFT
array
Array of image URL strings
array
Array of option objects, each with ‘name’ (string) and ‘values’ (array of objects with ‘name’)
array
Array of tag strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the product
array
required
Array of product option value GID strings
string
The price of the product variant
string
The URL of an image for the variant
string
A unique SKU for the product variant
string
The barcode, UPC, or ISBN number
string
The weight of the variant (requires weight_unit)
string
Weight unit. Allowed values: KILOGRAMS, GRAMS, POUNDS, OUNCES
array
Array of metafield objects with key, value, type, namespace

Response

Parameters

string
required
The Shopify store subdomain
string
required
Title of the smart collection
array
required
Array of rule objects with ‘column’ (TAG, TITLE, VENDOR, etc.), ‘relation’ (CONTAINS, EQUALS, etc.), and ‘condition’
boolean
If true, product matches any rule. If false, product must match all rules. (Default: false)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the article to delete

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the blog to delete

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the metafield to delete

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the page to delete

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the blog
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the customer

Response

Parameters

string
required
The Shopify store subdomain
string
Filter query string (e.g. email:customer@example.com or state:ENABLED)
string
Sort key. Options: CREATED_AT, ID, NAME, ORDERS_COUNT, STATE, TOTAL_SPENT, UPDATED_AT
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the draft order

Response

Parameters

string
required
The Shopify store subdomain
string
Filter query (e.g. status:OPEN, tag:fraud)
string
Sort key. Options: CREATED_AT, ID, NUMBER, STATUS, TOTAL_PRICE, UPDATED_AT, CUSTOMER_NAME
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The globally-unique GID of a fulfillment (e.g. gid://shopify/Fulfillment/1234567890)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the fulfillment order

Response

Parameters

string
required
The Shopify store subdomain
string
Filter query (e.g. status:open)
boolean
Whether to include closed fulfillment orders (Default: false)
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
string
required
The resource type. Allowed values: blog, collection, page, product, variants, article
string
required
The GID of the resource that owns the metafields
array
Filter by namespace strings
array
Filter by key strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The metaobject type name

Response

Parameters

string
required
The Shopify store subdomain
integer
Maximum number of results to return (Default: 100)

Response

Parameters

string
required
The Shopify store subdomain
string
The name of the custom collection to search for
boolean
Whether to require an exact title match (Default: false)
integer
Maximum number of results to return (Default: 100)
string
Sort key. Options: ID, RELEVANCE, TITLE, UPDATED_AT

Response

Parameters

string
required
The Shopify store subdomain
string
Search query using Shopify search syntax
string
Sort key. Options: CREATED_AT, CUSTOMER_NAME, FINANCIAL_STATUS, FULFILLMENT_STATUS, ID, ORDER_NUMBER, PROCESSED_AT, TOTAL_PRICE, UPDATED_AT
integer
Maximum number of results to return

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the product
string
The GID of the product variant (takes precedence over title)
string
The name of the product variant to search for
boolean
Create the variant if not found (Default: false)
array
Option value GID strings for creation
string
Price of the variant (used only when creating)

Response

Parameters

string
required
The Shopify store subdomain
string
The product title to search for
boolean
Whether the title search should be an exact match (Default: false)
array
Array of product GID strings to filter by
string
Filter by collection GID
string
Filter by product type
string
Filter by vendor name
integer
Maximum number of results to return (Default: 100)
string
Sort key. Options: CREATED_AT, ID, INVENTORY_TOTAL, PRODUCT_TYPE, PUBLISHED_AT, RELEVANCE, TITLE, UPDATED_AT, VENDOR

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the article to update
string
The new title of the article
string
The text content with HTML markup
string
The name of the author
string
A summary of the article
string
The URL of the article image
array
Array of tag strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the location
string
required
The GID of the inventory item
integer
required
The available inventory quantity to set
string
required
The reason for the change. Values: correction, cycle_count_available, damaged, other, promotion, quality_control, received, restock, safety_stock, shrinkage
string
A freeform URI representing why the change happened

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the resource that owns the metafield
string
required
The GID of the metafield to update
string
required
The new value for the metafield

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the metaobject to update
array
Array of field objects, each with ‘key’ and ‘value’ strings

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the order to update
string
The email address associated with the order
string
An optional note to attach to the order
array
Array of tag strings
array
Array of metafield objects with key, value, type, namespace

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the page to update
string
The new title of the page
string
The text content with HTML markup

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the product to update
string
The new title of the product
string
A description of the product (supports HTML)
string
The name of the product’s vendor
string
A categorization for the product
string
Product status. Allowed values: ACTIVE, ARCHIVED, DRAFT
array
Array of image URL strings
array
Array of tag strings
array
Array of metafield objects with key, value, type, namespace
string
A unique human-friendly URL handle
string
The product title for SEO
string
The product description for SEO

Response

Parameters

string
required
The Shopify store subdomain
string
required
The GID of the product
string
required
The GID of the product variant to update
array
Array of product option value GID strings
string
The price of the variant
string
A unique SKU for the variant
string
The barcode, UPC, or ISBN number
string
The weight of the variant (requires weight_unit)
string
Weight unit. Allowed values: KILOGRAMS, GRAMS, POUNDS, OUNCES
array
Array of metafield objects with key, value, type, namespace

Response

Limits & Quotas

  • Standard Shopify API rate limit: 50 points per second for the GraphQL Admin API (each query/mutation costs 1+ points depending on complexity).
  • Throttling: Shopify returns THROTTLED errors in the GraphQL response extensions when the limit is exceeded. Retry after a short delay.
  • Pagination: List actions are capped at 250 items per request via the GraphQL first argument. For larger datasets, implement cursor-based pagination.
  • Error model: GraphQL userErrors arrays are returned inline as success=False + error with the first error message. HTTP-level errors (network, auth) are caught and returned as success=False + error.

WooCommerce

Amazon Selling Partner

Etsy