Skip to main content
POST
/
affiliates
/
reporting
/
distribution
Get Distribution Report
curl --request POST \
  --url https://api.eflow.team/v1/affiliates/reporting/distribution \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "from": "2024-01-01",
  "to": "2024-01-31",
  "timezone_id": 67,
  "currency_id": "USD"
}
'
{
  "geo": [
    {
      "country": "<string>",
      "percentage": 123,
      "count": 123
    }
  ],
  "device": [
    {
      "device_type": "<string>",
      "percentage": 123,
      "count": 123
    }
  ]
}

Authorizations

X-Eflow-Api-Key
string
header
required

The affiliate's API key generated from the Affiliate Portal. Uses the same X-Eflow-Api-Key header as the Network API, but the key belongs to the affiliate user rather than the network admin.

Body

application/json
from
string
required

Start date. Format YYYY-MM-DD.

to
string
required

End date. Format YYYY-MM-DD.

timezone_id
integer
required

Timezone identifier for the date range.

currency_id
string
required

Currency code for monetary values.

Response

200 - application/json

OK

geo
object[]

Geographic distribution data.

device
object[]

Device type distribution data.