The Get reseller analytics method is used to get information about the expenses per subscription of all reseller's customers. The target period can be specified using arbitrary dates only.
GET {base_url}/api/v3/resellers/{reseller_id}/reseller_analytics
Arguments
Response model
|
Name |
Data type |
Description |
||||||
|---|---|---|---|---|---|---|---|---|
|
expenses |
array of objects |
A list of expenses |
||||||
|
|
total |
string |
The subscription expenses amount in the reseller currency |
|||||
|
|
billing_period |
string |
The billing period (YYYY-MM) |
|||||
|
|
account_id |
integer |
The account ID |
|||||
|
|
subscription_id |
integer |
The subscription ID |
|||||
Request example
GET /api/v3/resellers/1/reseller_analytics?date_from=2023-09-01&date_to=2023-09-20
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json
Response example
JSON
{
"expenses": [
{
"total": "25.76",
"period": "2023-06",
"account_id": 929,
"subscription_id": 3008386
},
{
"total": "437.0",
"period": "2023-06",
"account_id": 1195,
"subscription_id": 3008458
}
]
}