Returnly

Smart Returns Platform

Go to site
Explore
/
Apps
/
Returnly

Returnly API Integrations

Build and run workflows using the Returnly API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    returnly: {
      type: "app",
      app: "returnly",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.returnly.com/returns`,
      headers: {
        "X-Api-Token": `${this.returnly.$auth.api_key}`,
      },
      params: {
        include: `return_line_items,shipping_labels,instant_refund_voucher`,
        status: `refunded`,
      },
    })
  },
})

Authentication

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

See docs for more information.