Shopify Module

Prev Next

Overview

Module Details

Core or GitHub ModuleGithub Module
Restart Required?No
Steps Exposed?Yes
Step LocationIntegration > Shopify
Settings LocationN/A
Prerequisites

The Shopify Module enables integration between Decisions and Shopify using the Shopify Admin API. This module provides steps to interact with core Shopify resources, including Products, Inventory, Orders, and Customers.

Installing the Shopify module adds steps to Integration > Shopify in the Flow Toolbox. These steps allow data to be sent to and retrieved from Shopify, enabling automation of common e-commerce operations such as product management, order processing, and customer updates.


Configuration

The Shopify module requires an OAuth token configured in Decisions to authenticate with the Shopify Admin API.

Create a Shopify App

  1. Navigate to Shopify Partners and create a Partner account.
  2. Open the Partner Dashboard and access the App Distribution > Dev Dashboard.
  3. Create a Dev Store.
    • Provide a store name and select a plan
    • Enable “Generate test data for store”
  4. Create a new application:
    • Click Settings (bottom left)
    • Navigate to Apps > Develop Apps > Build App in Dev Dashboard
    • Click Create App
  5. Configure required Admin API scopes, such as:
    • read_products, write_products
    • read_orders
    • read_customers
    • read_inventory, write_inventory
  6. Install the application in the development store:
    • Return to the Dev Dashboard and open the created application
    • Click Install App
    • Select the store and click install.
  7. From the app settings, obtain the Client ID and Client Secret.

Create an OAuth Provider in Decisions

  1. Navigate to System > Integration > OAuth > Providers.
  2. Click ADD OAUTH PROVIDER.
  3. Configure the provider using Shopify OAuth endpoints:
URLDescriptionExample
Authorize URLUsed to request user authorizationhttps://{shop}.myshopify.com/admin/oauth/authorize
Token Request URLUsed to exchange an authorization code for an access tokenhttps://{shop}.myshopify.com/admin/oauth/access_token
Callback URLUsed to receive the token response[portalbaseurl]/HandleTokenResponse
  1. Enter the Client ID and Client Secret from the Shopify app configuration.
  2. Save the provider.

Create an OAuth Token

  1. Navigate to System > Integration > OAuth > Tokens.
  2. Click CREATE TOKEN.
  3. Select the Shopify OAuth provider.
  4. Provide the required scopes that match the Shopify app configuration.
  5. Click Request Token and complete the authorization flow.

Module Steps

Step NameDescription
Get Customer By IdRetrieves details for a specific customer using the provided customer ID.
List CustomersReturns a list of customers from the Shopify store.
Adjust Inventory AvailableAdjusts the available inventory quantity for a specific inventory item at a location.
List Inventory Levels By Inventory Item IdRetrieves inventory levels for a specific inventory item across locations.
List LocationsReturns a list of locations configured in the Shopify store.
List Variants By Product IdRetrieves all variants associated with a specific product.
Get Order By IdRetrieves detailed information for a specific order using the order ID.
List OrdersReturns a list of orders from the Shopify store.
Create ProductCreates a new product in Shopify with the provided details.
Delete ProductDeletes an existing product from the Shopify store.
Get Product By IdRetrieves details of a specific product using the product ID.
List ProductsReturns a list of products available in the Shopify store.
Update ProductUpdates an existing product’s information, such as title, description, or pricing.

For further information on Modules, visit the Decisions Forum.