Manage and track your ambassador, influencer and affiliate marketing programs with ease.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Get information about an affiliate. You can get an affiliate's information using their ID or code. See the docs here
Allows you to manually credit an affiliate with any commission amount. See the docs here
The Refersion API gives you the power to build secure and feature-rich
applications that extend the functionality of the Refersion platform. With the
Refersion API, you can create applications that target referral and affiliate
marketing campaigns, product promotions, and other marketing initiatives.
You can use the Refersion API to:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
refersion: {
type: "app",
app: "refersion",
}
},
async run({steps, $}) {
const data = {
"limit": `3`,
"page": `1`,
}
return await axios($, {
method: "post",
url: `https://api.refersion.com/v2/affiliate/list`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"Refersion-Public-Key": `{{custom_fields.api_key}}`,
"Refersion-Secret-Key": `{{custom_fields.secret}}`,
},
data,
})
},
})
// 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
},
})