WeSupply

Post-Purchase CX Automation Platform built for Retail. WeSupply helps retailers reduce their customer support tickets with Pre-purchase delivery prediction, automated shipping tracking, proactive notifications and self-service returns.

Integrate the WeSupply API with the Python API

Setup the WeSupply API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate WeSupply and Python remarkably fast. Free for developers.

Import Order with the WeSupply API

Orders can be pushed into the WeSupply platform via a JSON containing the order data. See the docs here

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it

Overview of WeSupply

The WeSupply API serves as a bridge connecting your ecommerce platforms to WeSupply's order tracking and logistics features. By utilizing the API within Pipedream, you unlock the potential to automate order updates, streamline returns, and enhance customer service interactions. Pipedream's serverless platform allows you to create workflows that trigger based on certain events, process data, and connect to countless other APIs and services—essentially turning your WeSupply data into actionable insights and automated tasks without the need for a dedicated backend infrastructure.

Connect WeSupply

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    wesupply: {
      type: "app",
      app: "wesupply",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.wesupply.$auth.client_name}.labs.wesupply.xyz/api/orders/lookup`,
      headers: {
        Authorization: `Bearer ${this.wesupply.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}