← Allocadence + Shopify (OAuth) integrations

Update Product with Shopify (OAuth) API on New Purchase Order Created from Allocadence API

Pipedream makes it easy to connect APIs for Shopify (OAuth), Allocadence and 3,000+ other apps remarkably fast.

Trigger workflow on
New Purchase Order Created from the Allocadence API
Next, do this
Update Product with the Shopify (OAuth) API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Allocadence trigger and Shopify (OAuth) action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Purchase Order Created trigger
    1. Connect your Allocadence account
    2. Configure timer
  3. Configure the Update Product action
    1. Connect your Shopify (OAuth) account
    2. Select a Product ID
    3. Optional- Configure Title
    4. Optional- Configure Product Description
    5. Optional- Configure Vendor
    6. Optional- Configure Product Type
    7. Optional- Select a Status
    8. Optional- Configure Images
    9. Optional- Configure Tags
    10. Optional- Configure Metafields
    11. Optional- Configure Handle
    12. Optional- Configure SEO Title
    13. Optional- Configure SEO Description
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a new purchase order is created.
Version:0.0.1
Key:allocadence-new-purchase-order

Trigger Code

import common from "../common/base.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  ...common,
  key: "allocadence-new-purchase-order",
  name: "New Purchase Order Created",
  description: "Emit new event when a new purchase order is created.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getParams(lastDate) {
      return {
        createdFrom: lastDate,
        orderBy: "createdDate",
        orderDir: "desc",
      };
    },
    getFunction() {
      return this.allocadence.listPurchaseOrder;
    },
    getDataField() {
      return "purchaseOrders";
    },
    getFieldDate() {
      return "createdDate";
    },
    getSummary(item) {
      return `New Purchase Order: ${item.orderNumber}`;
    },
  },
  sampleEmit,
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
AllocadenceallocadenceappThis component uses the Allocadence app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

Allocadence uses API keys for authentication. When you connect your Allocadence account, Pipedream securely stores the keys so you can easily authenticate to Allocadence APIs in both code and no-code steps.

To generate a API Key and Secret pair for a user, visit the API Keys page under Admin Users.

About Allocadence

All-in-one cloud platform for managing your warehouse operations. From inventory to order management and shipping, you have total visibility.

Action

Description:Update an existing product. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productUpdate)
Version:0.1.7
Key:shopify-update-product

Shopify (OAuth) Overview

Shopify provides a powerful API that enables developers to build a wide range
of applications and tools for merchants. Some examples of what you can build
using the Shopify API include:

  • Merchant tools: tools that help merchants manage their stores, such as order
    management, product administration, and reporting
  • E-commerce applications: applications that enable merchants to sell their
    products online, such as shopping carts, product catalogs, and order
    management
  • Integration tools: tools that helps integrate Shopify with other systems,
    such as accounting, inventory, and shipping

Action Code

import shopify from "../../shopify.app.mjs";
import common from "../common/metafield-actions.mjs";

export default {
  ...common,
  key: "shopify-update-product",
  name: "Update Product",
  description: "Update an existing product. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productUpdate)",
  version: "0.1.7",
  annotations: {
    destructiveHint: true,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    shopify,
    productId: {
      propDefinition: [
        shopify,
        "productId",
      ],
    },
    title: {
      type: "string",
      label: "Title",
      description: "The new title of the product",
      optional: true,
    },
    productDescription: {
      type: "string",
      label: "Product Description",
      description: "A description of the product. Supports HTML formatting. Example: `<strong>Good snowboard!</strong>`",
      optional: true,
    },
    vendor: {
      type: "string",
      label: "Vendor",
      description: "The name of the product's vendor",
      optional: true,
    },
    productType: {
      type: "string",
      label: "Product Type",
      description: "A categorization for the product used for filtering and searching products",
      optional: true,
    },
    status: {
      type: "string",
      label: "Status",
      description: "The status of the product. `active`: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. `archived`: The product is no longer being sold and isn't available to customers on sales channels and apps. `draft`: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft",
      optional: true,
      options: [
        "ACTIVE",
        "ARCHIVED",
        "DRAFT",
      ],
    },
    images: {
      type: "string[]",
      label: "Images",
      description: "A list of URLs of images to associate with the new product",
      optional: true,
    },
    tags: {
      propDefinition: [
        shopify,
        "tags",
      ],
      optional: true,
    },
    metafields: {
      propDefinition: [
        shopify,
        "metafields",
      ],
    },
    handle: {
      type: "string",
      label: "Handle",
      description: "A unique human-friendly string for the product that serves as the URL handle. Automatically generated from the product's title.",
      optional: true,
    },
    seoTitle: {
      type: "string",
      label: "SEO Title",
      description: "The product title used for search engine optimization",
      optional: true,
    },
    seoDescription: {
      type: "string",
      label: "SEO Description",
      description: "The product description used for search engine optimization",
      optional: true,
    },
  },
  async run({ $ }) {
    const metafields = await this.createMetafieldsArray(this.metafields, this.productId, "product");

    const response = await this.shopify.updateProduct({
      input: {
        id: this.productId,
        title: this.title,
        descriptionHtml: this.productDescription,
        vendor: this.vendor,
        productType: this.productType,
        status: this.status,
        tags: this.tags,
        metafields,
        seo: this.seoTitle || this.seoDescription
          ? {
            title: this.seoTitle,
            description: this.seoDescription,
          }
          : undefined,
        handle: this.handle,
      },
      media: this.images && this.images.map((image) => ({
        mediaContentType: "IMAGE",
        originalSource: image,
      })),
    });
    if (response.productUpdate.userErrors.length > 0) {
      throw new Error(response.productUpdate.userErrors[0].message);
    }
    $.export("$summary", `Updated product \`${response.productUpdate.product.title}\` with id \`${this.productId}\``);
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Shopify (OAuth)shopifyappThis component uses the Shopify (OAuth) app.
Product IDproductIdstringSelect a value from the drop down menu.
Titletitlestring

The new title of the product

Product DescriptionproductDescriptionstring

A description of the product. Supports HTML formatting. Example: <strong>Good snowboard!</strong>

Vendorvendorstring

The name of the product's vendor

Product TypeproductTypestring

A categorization for the product used for filtering and searching products

StatusstatusstringSelect a value from the drop down menu:ACTIVEARCHIVEDDRAFT
Imagesimagesstring[]

A list of URLs of images to associate with the new product

Tagstagsstring[]

An array of tags to add

Metafieldsmetafieldsstring[]

An array of objects, each one representing a metafield. If adding a new metafield, the object should contain key, value, type, and namespace. Example: {{ [{ "key": "new", "value": "newvalue", "type": "single_line_text_field", "namespace": "global" }] }}. To update an existing metafield, use the id and value. Example: {{ [{ "id": "28408051400984", "value": "updatedvalue" }] }}

Handlehandlestring

A unique human-friendly string for the product that serves as the URL handle. Automatically generated from the product's title.

SEO TitleseoTitlestring

The product title used for search engine optimization

SEO DescriptionseoDescriptionstring

The product description used for search engine optimization

Action Authentication

Shopify (OAuth) uses OAuth authentication. When you connect your Shopify (OAuth) account, Pipedream will open a popup window where you can sign into Shopify (OAuth) 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 (OAuth) API.

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

About Shopify (OAuth)

Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.

More Ways to Connect Shopify (OAuth) + Allocadence

Create Customer Order with Allocadence API on New Customer Data Request from Shopify (OAuth) API
Shopify (OAuth) + Allocadence
 
Try it
Create Customer Order with Allocadence API on New Abandoned Cart from Shopify (OAuth) API
Shopify (OAuth) + Allocadence
 
Try it
Create Customer Order with Allocadence API on New Article from Shopify (OAuth) API
Shopify (OAuth) + Allocadence
 
Try it
Create Customer Order with Allocadence API on New Event Emitted (Instant) from Shopify (OAuth) API
Shopify (OAuth) + Allocadence
 
Try it
Create Customer Order with Allocadence API on New Page from Shopify (OAuth) API
Shopify (OAuth) + Allocadence
 
Try it
New Customer Order Created from the Allocadence API

Emit new event when a new customer order is created.

 
Try it
New Purchase Order Created from the Allocadence API

Emit new event when a new purchase order is created.

 
Try it
Collection Updated (Instant) from the Shopify (OAuth) API

Emit new event whenever a collection is updated, including whenever products are added or removed from a collection.

 
Try it
New Abandoned Cart from the Shopify (OAuth) API

Emit new event each time a user abandons their cart.

 
Try it
New Article from the Shopify (OAuth) API

Emit new event for each new article in a blog.

 
Try it
Create Customer Order with the Allocadence API

Creates a new customer order. See the documentation

 
Try it
Create Purchase Order with the Allocadence API

Generates a new purchase order. See the documentation

 
Try it
Add Products to Custom Collection with the Shopify (OAuth) API

Adds a product or products to a custom collection. See the documentation

 
Try it
Add Tags with the Shopify (OAuth) API
 
Try it
Bulk Import with the Shopify (OAuth) API

Execute bulk mutations by uploading a JSONL file containing mutation variables. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.