Shopify is a user-friendly e-commerce platform that helps small businesses build an online store and sell online through one streamlined dashboard.
Go to siteBy creating a custom app on Shopify, you will be able to configure the exact scopes that you require to build the workflows that you need.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shopify_developer_app: {
type: "app",
app: "shopify_developer_app",
}
},
async run({steps, $}) {
const data = {
"query": `{
shop {
id
name
email
}
}`,
}
return await axios($, {
method: "post",
url: `https://${this.shopify_developer_app.$auth.shop_id}.myshopify.com/admin/api/2023-04/graphql.json`,
headers: {
"X-Shopify-Access-Token": `${this.shopify_developer_app.$auth.access_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
To get started, you will need to create a custom Shopify app in the Shopify Admin UI. The steps are outlined below:
At this point, you should have a Pipedream App connected to your Shopify store, and a long-lived access token.
Emit new event each time a user abandons their cart.
Emit new event each time a new order is cancelled.
Emit new event for each new customer added to a store.
Emit new event for each new draft order submitted to a store.
Adds a product or products to a custom collection or collections. See the docs
Create a new custom collection. See the documentation
Shopify Developer App uses API keys for authentication. When you connect your Shopify Developer App account, Pipedream securely stores the keys so you can easily authenticate to Shopify Developer App APIs in both code and no-code steps.
Log in to your Shopify admin account. In your browser's address bar, you should see a URL like this:
Next, create a custom app in Shopify to obtain your Admin API access token. See our detailed instructions here.
Enter your Admin API access token below, and save it in a secure location (we recommend using a password manager such as 1Password)