Smart Returns Platform
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Welcome to the Returnly API! With our API, you can extend, integrate and build
custom returns flow and exchanges for your customers. Here are a few examples
of what you can do with our API:
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`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})