GET
/
reports
/
download
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/affiliate/reports/download \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>'
"<string>"

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Query Parameters

report_type
enum<string>
required
Available options:
overview,
traffic_sources,
urls,
sub_ids
totals
boolean
columns
string[]
required
group_by
enum<string>
required
Available options:
day,
week,
month,
year
start_date
string
required
end_date
string
required

Response

200
text/csv

Successful response

The response is of type string.