Smart Returns Platform
Add or update a single record in your Pipedream Data Store.
Add or update multiple records to your Pipedream Data Store.
Append to a record in your data store Pipedream Data Store. If the record does not exist, a new record will be created in an array format.
Check if a key exists in your Pipedream Data Store or create one if it doesn't exist.
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`,
},
})
},
})
With the Data Stores API, you can build applications that:
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})