n8n-docs/docs/integrations/builtin/credentials/shopify.md

3.3 KiB

title description contentType
Shopify credentials Documentation for Shopify credentials. Use these credentials to authenticate Shopify in n8n, a workflow automation platform. integration

Shopify credentials

You can use these credentials to authenticate the following nodes with Shopify.

Prerequisites

Supported authentication methods

  • API token
  • OAuth2
  • API key

Refer to Shopify's authentication documentation{:target=_blank .external-link} for more information about the service.

Using API token

To configure this credential, you'll need:

  • Your Shop Subdomain: Your subdomain is within the URL: https://<subdomain>.myshopify.com. For example, if the full URL is https://n8n.myshopify.com, the Shop Subdomain is n8n.
  • An Access Token: Generated when you create a custom app as the Admin API Access Token. View it in the app's API Credentials section.
  • An APP Secret Key: Generated when you create a custom app as the API Secret Key. View it in the app's API Credentials section.

Creating a custom app{:target=_blank .external-link} generates the Access Token and APP Secret Key.

Refer to Generate access tokens for custom apps in the Shopify admin{:target=_blank .external-link} for more information.

Using OAuth2

To configure this credential, you'll need:

  • A Client ID: Generated when you create a custom app in the API Access section.
  • A Client Secret: Generated when you create a custom app in the API Access section.
  • Your Shop Subdomain: Your subdomain is within the URL: https://<subdomain>.myshopify.com. For example, if the full URL is https://n8n.myshopify.com, the Shop Subdomain is n8n.

Refer to About auth code grants{:target=_blank .external-link} for more information on working with OAuth2.

Using API key

To configure this credential, you'll need:

  • An API Key
  • A Password
  • Your Shop Subdomain: Your subdomain is within the URL: https://<subdomain>.myshopify.com. For example, if the full URL is https://n8n.myshopify.com, the Shop Subdomain is n8n.
  • Optional: A Shared Secret

Forbidden credentials error

If you get a Couldn't connect with these settings / Forbidden - perhaps check your credentials warning when you test the credentials, this may be due to access scope{:target=_blank .external-link} dependencies. For example, read_orders scope also requires read_products scope.