Shopify

Ecommerce platform

Go to site
Explore
/
Apps
/
Shopify

Shopify API Integrations

Build and run workflows using the Shopify API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    shopify: {
      type: "app",
      app: "shopify",
    }
  },
  async run({steps, $}) {
    const data = {
      "query": `{  
        shop { 
          id 
          name 
        } 
      }`,
    }
    return await axios($, {
      method: "post",
      url: `https://${this.shopify.$auth.shop_id}.myshopify.com/admin/api/2019-10/graphql.json`,
      headers: {
        "X-Shopify-Access-Token": `${this.shopify.$auth.oauth_access_token}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Authentication

Shopify uses OAuth authentication. When you connect your Shopify account, Pipedream will open a popup window where you can sign into Shopify and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Shopify API.

Pipedream requests the following authorization scopes when you connect your account:

read_contentwrite_contentread_themeswrite_themesread_productswrite_productsread_product_listingsread_customerswrite_customersread_ordersread_all_orderswrite_ordersread_draft_orderswrite_draft_ordersread_inventorywrite_inventoryread_locationsread_script_tagswrite_script_tagsread_fulfillmentswrite_fulfillmentsread_shippingwrite_shippingread_analyticsread_checkoutswrite_checkoutsread_reportswrite_reportsread_price_ruleswrite_price_rulesread_discountswrite_discountsread_marketing_eventswrite_marketing_eventsread_resource_feedbackswrite_resource_feedbacksread_shopify_payments_payoutsread_shopify_payments_disputeswrite_assigned_fulfillment_orderswrite_merchant_managed_fulfillment_orders
OAuth Request Configurations:
  1. authorization
    GEThttps://{{custom_fields.shop_id}}.myshopify.com/admin/oauth/authorize?client_id={{oauth.client_id}}&state={{oauth.state}}&redirect_uri={{oauth.redirect_uri}}&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://{{custom_fields.shop_id}}.myshopify.com/admin/oauth/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&code={{oauth.code}}