with Pingback and Returnless?
Emit new event when a return is created. See the documentation
Emit new event when a return note is added. See the documentation
Emit new event when a return product is marked as received. See the documentation
Emit new event when a return status is changed. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pingback: {
type: "app",
app: "pingback",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://connect.pingback.com/v1/subscriber/${this.pingback.$auth.email}`,
headers: {
"x-api-key": `${this.pingback.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
returnless: {
type: "app",
app: "returnless",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-v2.returnless.com/2023-01/account`,
headers: {
Authorization: `Bearer ${this.returnless.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})