Import lifetime relationships
Sometimes when you are using the lifetime commissions (https://support.qualityunit.com/541587-Lifetime-commissions) feature (and you have a lot of new affiliates with their own customers), you may want to import all their relationships to PAP at once.
In this case, we made the following script which imports relationships from a CSV file. The CSV file has to be in this exact format (below you can download an example).
In the API script you have to replace PAP URL, merchant's username and...