Getting user current affiliate

This article shows how to get the affiliate that will receive the rewards in the case that the user converts.

Getting affiliate per conversion

To get the affiliate for a specific user use the getUserAffiliates method.

import { Fuul } from ('@fuul/sdk');

await Fuul.getUserAffiliates({ user_address: '0x12345' })

Notice that every conversion may have different attribution type (first/last click) or conversion window.

An example response would be the following:

[
  {
     conversion_name: "My Conversion",
     affiliate_address: "0x12345",
  },
  {
     conversion_name: "My Second Conversion",
     affiliate_address: "0x12345",
  }
]

Last updated