Smart Returns Platform
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`,
},
})
},
})
The Filter API is a great way to build powerful workflows that can manipulate
and transform data. Here are some examples of what you can build using the
Filter API:
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})