This document describes API to get affiliation metrics (commission, balance, registrations, etc.).
It can be used by the Operator - to get metrics for all affiliates
Or it can be used by the Affiliate - to get only their own metrics
The default API URL is https://boapi.smartico.ai/ but depending on your setup it could be different. Check for the exact URL in the 'Settings' section.
If you are an affiliate, check for the exact URL in 'Account Settings' section in your profile.
TheAffiliatePlatform (TAP) provides API to retrieve configurational, operational, and analytical data. API is provided as a REST over HTTP and uses SSL for data protection.
Reporting API is designed for the high level aggregated reporting (aggregated overview per operation/affiliate and not per individual user).
Affiliates can use API to get reports related to the activities of their own traffic and for the Operator to have access to all affiliates' data.
API for the Affiliate
Accessing analytical data
The Affiliation system has an API endpoint that provides statistical information about visits, registrations, commissions, etc., aggregated by a specified period or for a lifetime.
As TAP is providing an affiliation system as a white-label solution, you can find the name, domain, and image of the “Operator” operating affiliation system in response to API calls.
In grouping by "day", the report will show the change of commission during this day. It's not a total commission at the end of the day.
If you are querying aggregated data and there are no activities for a specific period, the record for a specific period will be missing in response.
Note that not all attributes are available for every affiliate. Visibility depends on the Additional Permissions granted to each Affiliate
If you query for aggregated data, the response will show only changes for a specified period. Given the example in the image below, you should treat it in the following way:
During July, the affiliate had a change of balance “-795.50 EUR”, and because it was his first month, at the end of the month, his balance will be -795.50 EUR
During August, he had a positive change, +225 EUR. This means that his balance was “-570.50 EUR at the end of August.”
"manager_id" value can be passed as 123 or as 123,456