Shopify Retrieve Product Details

Retrieves detailed information about a Shopify product (and optionally a product variant) including metafields.

This action supports fetching product-level, variant-level, and metafield-level data β€” with the ability to limit returned objects to reduce payload size.

Behind the scenes, it uses the Shopify Admin GraphQL API endpoint:
https://shopify.dev/docs/api/admin-graphql/latest/queries/product
and
https://shopify.dev/docs/api/admin-graphql/latest/queries/productvariant


Inputs

NameTypeDescription
Shopify TokenSensitiveStringShopify private app access token or API access token.
Shopify DomainStringYour Shopify subdomain (e.g. yourstore.myshopify.com).
Which Way to Lookup Product Info?StringDetermines how the lookup is performed. Options: "using order line", "using product only", "using product and variant".
ProductOptional NumberProduct ID to lookup. Used when mode is "using product only" or "using product and variant".
Product VariantOptional NumberProduct Variant ID to lookup. Used when mode is "using product and variant".
Line ItemOptional ObjectShopify order line item object. If provided and mode is "using order line", product and variant IDs will be extracted automatically.
Fields to ReturnOptional ListA list specifying which data objects to include in the response. Helps reduce payload size. Possible values: ["product", "productMetafields", "productVariant", "productVariantMetafields"]. Example: ["productVariant", "productMetafields"].

Outputs

NameTypeDescription
SuccessBooleanWhether the product and/or variant details were successfully retrieved.
Product FieldsObjectCore product details (excluding metafields).
Product MetafieldsObjectProduct metafields, if any exist.
Product Variant FieldsObjectCore product variant details (excluding metafields).
Product Variant MetafieldsObjectProduct variant metafields, if any exist.
Found Product Metafields?BooleanIndicates whether product metafields were found.
Found Product Variant?BooleanIndicates whether a product variant was found.
Found Product Variant Metafields?BooleanIndicates whether variant metafields were found.

Example Use Cases

  • Retrieve both product and variant details including metafields for price calculation or metadata enrichment.
  • Fetch only product metafields by passing "fields_to_return": ["productMetafields"].
  • Use "using order line" mode inside workflows triggered by new Shopify orders.