Shopify Custom icon

Shopify Custom

Shopify Admin GraphQL node with metafields and definitions support

Publication → Publish Products

AI-generated

Summary

Publishes one or more Shopify products to one or more publications (sales channels) through the Admin GraphQL API, and returns the result in the chosen output mode.

Inputs

  • Authentication — Credential type: Admin API Credentials (access token or Dev Dashboard client credentials) or OAuth2. Defaults to Admin API Credentials.
  • Product IDs (required) — Product GIDs to publish, for example gid://shopify/Product/123. Separate multiple IDs with commas or new lines.
  • Publication IDs (required) — Publication GIDs for the target sales channels, for example gid://shopify/Publication/123. Separate multiple IDs with commas or new lines. Use Publication → Get Many to look them up.
  • Output Mode — Simplified (default), Raw, or Selected Fields. Controls the shape of the returned data.
  • Selected Fields — Comma-separated field names to keep in the output, for example ID,title,status. Only shown when Output Mode is Selected Fields.

Output shape

One or more n8n items. The shape depends on Output Mode: a simplified mapping of the mutation result, the raw GraphQL payload, or only the selected fields.

The source pack shows signatures only, so the exact publish mutation and the simplified shape are not visible. The Product IDs description also mentions unpublishing, but this operation is declared as publish only. Shopify userErrors are checked by shared error helpers, which are expected to raise an error on failure.

Examples

Example 1: Publish a newly created product to the Online Store channel.

Product IDs = {{ $json.id }}, Publication IDs = the Online Store publication GID (found via Publication → Get Many), Output Mode = Simplified.

Example 2: Publish a batch of products to two sales channels at once.

Product IDs = several GIDs on separate lines, Publication IDs = two GIDs separated by commas, Output Mode = Raw.

Links

Discussion