← QStash + Picqer integrations

Search Picqer Orders with Picqer API on New Topic Webhook from QStash API

Pipedream makes it easy to connect APIs for Picqer, QStash and 2,700+ other apps remarkably fast.

Trigger workflow on
New Topic Webhook from the QStash API
Next, do this
Search Picqer Orders with the Picqer 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 QStash trigger and Picqer 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 Topic Webhook trigger
    1. Connect your QStash account
    2. Select a QStash Topic
  3. Configure the Search Picqer Orders action
    1. Connect your Picqer account
    2. Optional- Configure Search
    3. Optional- Configure Since ID
    4. Optional- Configure Before ID
    5. Optional- Configure Since Date
    6. Optional- Configure Until Date
    7. Optional- Select a Status
    8. Optional- Configure Reference
    9. Optional- Configure Email Address
    10. Optional- Select a Customer ID
    11. Optional- Select a Warehouse ID
    12. Optional- Select a Fulfillment Customer ID
  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 events on each new QStash topic message
Version:0.0.1
Key:qstash-new-topic-webhook

QStash Overview

QStash API offers a secure, scalable, and simple way to manage message queues and defer tasks. Using this API, you can enqueue messages, schedule tasks to run after a delay, and ensure that tasks are executed exactly once, leveraging the power of serverless architecture. With Pipedream's ability to connect to a multitude of services, you can build complex workflows that trigger actions in other apps based on events in QStash, allowing you to automate cross-application business processes with ease.

Trigger Code

import qstash from "../../qstash.app.mjs";
import { methods } from "../../common.mjs";

export default {
  name: "New Topic Webhook",
  version: "0.0.1",
  key: "qstash-new-topic-webhook",
  description: "Emit new events on each new QStash topic message",
  props: {
    qstash,
    topicId: {
      type: "string",
      label: "QStash Topic",
      description: "The QStash topic to subscribe to.",
      async options() {
        const topics = await this.qstash.listTopics({
          $: this,
        });

        return topics.map((topic) => ({
          label: topic.name,
          value: topic.topicId,
        }));
      },
    },
    http: {
      type: "$.interface.http",
      customResponse: true, // optional: defaults to false
    },
    db: "$.service.db",
  },
  type: "source",
  methods: {
    ...methods,
  },
  hooks: {
    async deploy() {
      console.log("deployment hook started");
      console.log("selected topic ID", this.topicId);
      console.log(`PD generated endpoint URL ${this.http.endpoint}`);
      const endpoint = await this.qstash.createEndpoint({
        $: this,
        topicId: this.topicId,
        endpointUrl: this.http.endpoint,
      });
      console.log("Created endpoint", endpoint);
      this.db.set("endpointId", endpoint.endpointId);
    },
    async deactivate() {
      console.log("deactivate hook started");
      const endpointId = this.db.get("endpointId");
      await this.qstash.deleteEndpoint({
        $: this,
        endpointId,
      });
      console.log(`Deleted QStash endpoint ${endpointId}`);
    },
    async activate() {
      console.log("activate hook started");

      const keys = await this.qstash.getKeys({
        $: this,
      });

      const currentSigningKey = keys.current;
      const nextSigningKey = keys.next;

      this.db.set("currentSigningKey", currentSigningKey);
      this.db.set("nextSigningKey", nextSigningKey);
      console.log("Set QStash signing keys");
    },
  },
  async run(event) {
    const signature = event.headers["upstash-signature"];
    const currentSigningKey = this.db.get("currentSigningKey");
    const nextSigningKey = this.db.get("nextSigningKey");
    const url = event.url.slice(0, -1);

    try {
      await this.verify(signature, currentSigningKey, event.rawBody, url);
    } catch (e) {
      console.log(e);
      await this.verify(signature, nextSigningKey, event.rawBody, url);
    }

    await this.$emit(
      {
        event,
      },
      {
        id: event.headers["upstash-signature"],
        summary: "New webhook received from QStash",
        ts: Date.now(),
      },
    );

    await this.http.respond({
      status: 200,
    });
  },
};

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
QStashqstashappThis component uses the QStash app.
QStash TopictopicIdstringSelect a value from the drop down menu.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.

Trigger Authentication

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

Retrieve your QStash token

  1. Open the QStash console
  2. Copy the QSTASH_TOKEN from the Request Builder

Click REQUEST_TOKEN within the Request builder to copy the token to your clipboard

Then paste it in the field below.

About QStash

QStash is an HTTP based messaging and scheduling solution for the serverless and edge runtimes.

Action

Description:Search for orders in Picqer. [See the documentation](https://picqer.com/en/api/orders#get-all-orders)
Version:0.0.1
Key:picqer-search-orders

Action Code

import { STATUS_OPTIONS } from "../../common/constants.mjs";
import picqer from "../../picqer.app.mjs";

export default {
  key: "picqer-search-orders",
  name: "Search Picqer Orders",
  description: "Search for orders in Picqer. [See the documentation](https://picqer.com/en/api/orders#get-all-orders)",
  version: "0.0.1",
  type: "action",
  props: {
    picqer,
    search: {
      type: "string",
      label: "Search",
      description: "Search through the fields orderid, reference, customer name and customer contact name.",
      optional: true,
    },
    sinceId: {
      type: "string",
      label: "Since ID",
      description: "Get the orders with a later idorder than given.",
      optional: true,
    },
    beforeId: {
      type: "string",
      label: "Before ID",
      description: "Get the orders with a smaller idorder than given.",
      optional: true,
    },
    sinceDate: {
      type: "string",
      label: "Since Date",
      description: "Get the orders that are added after this date and time. **Format: YYYY-MM-DD HH:MM:SS**",
      optional: true,
    },
    untilDate: {
      type: "string",
      label: "Until Date",
      description: "Get the orders that are added before this date and time. **Format: YYYY-MM-DD HH:MM:SS**",
      optional: true,
    },
    status: {
      type: "string",
      label: "Status",
      description: "Get the orders that have this status.",
      options: STATUS_OPTIONS,
      optional: true,
    },
    reference: {
      type: "string",
      label: "Reference",
      description: "Get the orders that have this value as reference.",
      optional: true,
    },
    emailAddress: {
      type: "string",
      label: "Email Address",
      description: "Get the orders that have this value as email address.",
      optional: true,
    },
    customerId: {
      propDefinition: [
        picqer,
        "customerId",
      ],
      description: "Get all orders for this customer.",
      optional: true,
    },
    warehouseId: {
      propDefinition: [
        picqer,
        "warehouseId",
      ],
      description: "Get the orders that can be delivered from this warehouse.",
      optional: true,
    },
    fulfillmentCustomerId: {
      propDefinition: [
        picqer,
        "fulfillmentCustomerId",
      ],
      description: "Get the orders for this fulfilment.",
      optional: true,
    },
  },
  async run({ $ }) {
    const response = await this.picqer.searchOrders({
      $,
      params: {
        search: this.search,
        sinceid: this.sinceId,
        beforeid: this.beforeId,
        sincedate: this.sinceDate,
        untildate: this.untilDate,
        status: this.status,
        reference: this.reference,
        emailaddress: this.emailAddress,
        idcustomer: this.customerId,
        idwarehouse: this.warehouseId,
        idfulfilment_customer: this.fulfillmentCustomerId,
      },
    });

    $.export("$summary", `Orders found: ${response.length}`);
    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
PicqerpicqerappThis component uses the Picqer app.
Searchsearchstring

Search through the fields orderid, reference, customer name and customer contact name.

Since IDsinceIdstring

Get the orders with a later idorder than given.

Before IDbeforeIdstring

Get the orders with a smaller idorder than given.

Since DatesinceDatestring

Get the orders that are added after this date and time. Format: YYYY-MM-DD HH:MM:SS

Until DateuntilDatestring

Get the orders that are added before this date and time. Format: YYYY-MM-DD HH:MM:SS

StatusstatusstringSelect a value from the drop down menu:{ "label": "Concept", "value": "concept" }{ "label": "Expected", "value": "expected" }{ "label": "Processing", "value": "processing" }{ "label": "Paused", "value": "paused" }{ "label": "Completed", "value": "completed" }{ "label": "Cancelled", "value": "cancelled" }
Referencereferencestring

Get the orders that have this value as reference.

Email AddressemailAddressstring

Get the orders that have this value as email address.

Customer IDcustomerIdstringSelect a value from the drop down menu.
Warehouse IDwarehouseIdstringSelect a value from the drop down menu.
Fulfillment Customer IDfulfillmentCustomerIdstringSelect a value from the drop down menu.

Action Authentication

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

About Picqer

Warehouse software for online stores

More Ways to Connect Picqer + QStash

Add Comment To Return with Picqer API on New Topic Webhook from QStash API
QStash + Picqer
 
Try it
Create Picqer Order with Picqer API on New Topic Webhook from QStash API
QStash + Picqer
 
Try it
Get Picqer Order with Picqer API on New Topic Webhook from QStash API
QStash + Picqer
 
Try it
Get Customer with Picqer API on New Topic Webhook from QStash API
QStash + Picqer
 
Try it
Get Picklist with Picqer API on New Topic Webhook from QStash API
QStash + Picqer
 
Try it
New Topic Webhook from the QStash API

Emit new events on each new QStash topic message

 
Try it
New Event Instant from the Picqer API

Emit new event when Picqer sends a webhook matched with selected event. See the documentation

 
Try it
Create Endpoint with the QStash API

Create a new HTTP endpoint on a QStash topic.

 
Try it
Create Topic with the QStash API

Create a new QStash topic that emits to multiple endpoints.

 
Try it
List Endpoints with the QStash API

Lists all your existing QStash endpoints.

 
Try it
List Topics with the QStash API

List all your existing QStash topics.

 
Try it
Publish Endpoint Message with the QStash API

Publish a message a callback endpoint

 
Try it

Explore Other Apps

1
-
24
of
2,700+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream 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.
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
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.
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.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
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
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.