ShipHero

Whether you want to let go of running your own warehouse, or run your warehouse better, you can do both – and so much more – with ShipHero.

Integrate the ShipHero API with the Bash API

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

Run Bash Code with the Bash API

Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.

 
Try it

Overview of ShipHero

The ShipHero API enables granular control over warehousing and order fulfillment processes, offering endpoints for managing inventory, orders, returns, and shipping. In Pipedream, you can leverage this API to automate routine tasks, sync data across multiple platforms, and trigger actions based on specific events. This can save time, reduce errors, and increase operational efficiency for e-commerce businesses.

Connect ShipHero

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    shiphero: {
      type: "app",
      app: "shiphero",
    }
  },
  async run({steps, $}) {
    const data = {
      "query": `{
      products {
        request_id
        data(first: 100) {
          edges {
            node {
              id
              sku
              name
            }
          }
        }
      }
    }
    `,
    }
    return await axios($, {
      method: "post",
      url: `https://public-api.shiphero.com/graphql`,
      headers: {
        Authorization: `Bearer ${this.shiphero.$auth.oauth_access_token}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Connect Bash

1
2
3
4
5
6
7
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id

# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS