StyloDocs
Workflow blocks

Shopify

Look up products, orders, and customers in your Shopify store — including a customer's full order history — or run a raw GraphQL query

View as Markdown

shopify/manage — Look up products, orders, and customers in your Shopify store — including a customer's full order history — or run a raw GraphQL query.

Where it appears

The Shopify block lives in the Integrations group of the Workflow Builder. Connect the Shopify integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
storeKeyintegration-store-selectYesWhich connected Shopify store this block runs against. Populated from the selected connection's configured stores.
resourceselectYesproductWhich Shopify resource to work with. Options: product, order, customer, advanced.
operationselectYesWhich action to perform on the selected resource.
productIdtext (supports references)NoThe product to fetch.
orderIdtext (supports references)NoThe order to fetch.
customerIdtext (supports references)NoThe customer to fetch.
customerLookuptext (supports references)NoThe customer to look up. An email (contains @) is resolved to the customer automatically; otherwise it's treated as a customer ID. Returns the customer plus their recent orders.
customerQuerytextNoShopify customer search syntax, e.g. email:jane@example.com, phone:+15551234567, or a name.
productStatusselectNoanyOnly return products with this status. Options: any, active, draft, archived.
orderStatusselectNoopenOnly return orders with this status. Options: open, closed, cancelled, any.
returnAlltoggleNofalseFetch every matching record by paginating automatically. When on, Limit is ignored.
limitnumberNo50Maximum number of records to return (for Customer Context, how many recent orders). Ignored when Return All is on.
querycodeNoRaw Shopify Admin GraphQL query.
variablescodeNoOptional variables for the GraphQL query.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Shopify.field>.

NameTypeDescription
successbooleanOperation success status
productjsonSingle product (Get Product) (object — fields: id, title, handle, status, vendor, product_type, tags, variants, images, created_at, updated_at)
productsarrayProducts (List Products)
orderjsonSingle order (Get Order) (object — fields: id, name, email, financial_status, fulfillment_status, total_price, currency, line_items, note, tags, created_at, updated_at)
ordersarrayOrders (List Orders, or recent orders in Customer Context). Shopify only returns orders from the last 60 days unless the app holds the read_all_orders scope — check ordersSummary to know whether older orders were omitted.
ordersSummaryjsonCoverage for the returned orders (Customer Context). Flags when older orders are hidden by Shopify's 60-day window or capped by the Limit, so agents don't mistake a truncated list for 'no orders.' (object — fields: returned, lifetimeCount, complete, note, reason)
customerjsonSingle customer (Get Customer / Customer Context) (object — fields: id, email, first_name, last_name, phone, orders_count, total_spent, last_order_id, last_order_name, tags, note, created_at, updated_at)
customersarrayMatching customers (Search Customers)
errorstringError message if failed

Example

A minimal configuration for this block:

{
  "type": "shopify/manage",
  "config": {
    "storeKey": "...",
    "resource": "product",
    "operation": "...",
    "productStatus": "any",
    "orderStatus": "open",
    "returnAll": false,
    "limit": 50
  }
}

Limits and failure modes

  • Requires a connected Shopify integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (storeKey, resource, operation) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page