DEV

Shopify

Shopify Connection

Put Shopify to Work with @Human Automations and @Human Agents

The Shopify Connection documents all Triggers, Actions and Query Operations available for creating automations via the Shopify API.

What can you do with the Shopify Connection?

  • Connect to the Shopify API in a few clicks

  • Use the related Shopify Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Product Created

Triggers on: products/products_create

Triggered when a new product is created in Shopify.

Product Updated

Triggers on: products/products_update

Triggered when an existing product is updated in Shopify.

Product Deleted

Triggers on: products/products_delete

Triggered when a product is deleted from Shopify.

Order Created

Triggers on: orders/orders_create

Triggered when a new order is placed in Shopify.

Order Updated

Triggers on: orders/orders_updated

Triggered when an existing order is updated in Shopify.

Customer Created

Triggers on: customers/customers_create

Triggered when a new customer account is created in Shopify.

Customer Updated

Triggers on: customers/customers_update

Triggered when an existing customer's information is updated in Shopify.

Action Operations

Action: Add Line Item to Order

Action: Create Blog Entry

Action: Create Company Location

Action: Create Customer

Query Operations

Example link

Example link

Obtaining Access Credentials

Here’s the step-by-step process to generate a Shopify Personal Access Token (PAT) for system-to-system access:

Prerequisites

  • A Shopify Admin account (owner or collaborator with Apps and channels + Settings permissions).

  • Access to the Shopify Admin Dashboard of the target store.

Steps to Generate the PAT

  1. Log in to the Shopify Admin Dashboard:

    • Go to https://{{STORE_URL}}.myshopify.com/admin (replace {{STORE_URL}} with your store’s subdomain).

    • Enter admin credentials (email + password).

  2. Navigate to Apps & Developers Section:

    • In the left sidebar, click AppsDevelop apps (or Manage private apps for older stores).

  3. Create a New Private App (if none exists):

    • Click Create an app (or Allow custom app development if prompted).

    • Enter an App name (e.g., "System Integration").

    • Click Create app.

  4. Configure API Access:

    • Under Admin API access, select the required permissions (e.g., read_write for products, orders, etc.).

    • Scroll to API credentials and click Install app.

  5. Generate the Access Token:

    • After installation, Shopify displays the Admin API access token (this is your PAT).

    • Copy the token immediately (it won’t be shown again).

  6. Store Securely:

    • Save the token in a secure vault (e.g., 1Password, AWS Secrets Manager).

    • Treat it like a password—do not hardcode in scripts.

Required Permissions

Ensure the token has the correct scopes for your use case (e.g., read_products, write_orders). Adjust in the app’s API access settings if needed.

Configuring Webhooks

  1. Log in to your Shopify Admin Dashboard.

  2. Click Settings (gear icon) in the bottom-left corner of the sidebar.

  3. Select Notifications from the left-hand menu.

  4. Scroll to the bottom of the page to find the Webhooks section.

  5. Click the Create webhook button.

  6. Select the Event you want to subscribe to from the dropdown menu (e.g., Order creation).

  7. Set the Format to JSON.

  8. Enter the destination URL where the webhook payloads should be sent.

  9. Select the latest Webhook API version from the dropdown menu.

  10. Click Save to activate the webhook.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated