Consultar relatório de performance
curl --request GET \
--url https://api.ephra.io/v1/reports/performance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/performance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/reports/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ephra.io/v1/reports/performance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/reports/performance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ephra.io/v1/reports/performance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/performance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"affiliateRevenue": {
"total": 1846300,
"salesCount": 37,
"changeVsPreviousPeriod": 18.4
},
"paidCommissions": {
"total": 738520,
"percentageOfRevenue": 40,
"changeVsPreviousPeriod": 18.4
},
"activeAffiliates": {
"count": 4,
"newThisMonth": 1,
"changeVsPreviousPeriod": 1
},
"averageTicket": {
"value": 49900,
"aboveAverage": true,
"changeVsPreviousPeriod": 0
},
"top5Affiliates": [
{
"name": "Marketing Digital Ltda",
"initials": "MD",
"sales": 21,
"approvalRate": 64.2,
"revenue": 1047900,
"commission": 419160
}
],
"revenueAndCommission": {
"changeOverPeriod": 18.4,
"points": [
{
"date": "2026-09-11T00:00:00.000Z",
"revenue": 149700,
"commission": 59880
}
]
},
"averageTicketByAffiliate": [
{
"name": "Marketing Digital Ltda",
"averageTicket": 49900
}
],
"performanceByProduct": [
{
"name": "Curso de Tráfego Pago",
"sales": 37,
"revenue": 1846300,
"commission": 738520,
"newSales": 31,
"recurringSales": 6,
"newRevenue": 1546900,
"recurringRevenue": 299400
}
],
"roiProgram": {
"multiplier": 2.5,
"changeVsPreviousPeriod": 0.2
},
"concentrationTop3": {
"percentage": 81.4,
"revenue": 1502900
}
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Crescimento
Consultar relatório de performance
Devolve a performance do programa de afiliados da empresa autenticada no período: receita e comissão, afiliados ativos, os cinco que mais venderam, desempenho por produto e o quanto a receita se concentra nos três maiores. Use para decidir onde investir em parceria.
GET
/
v1
/
reports
/
performance
Consultar relatório de performance
curl --request GET \
--url https://api.ephra.io/v1/reports/performance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/performance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/reports/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ephra.io/v1/reports/performance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/reports/performance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ephra.io/v1/reports/performance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/performance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"affiliateRevenue": {
"total": 1846300,
"salesCount": 37,
"changeVsPreviousPeriod": 18.4
},
"paidCommissions": {
"total": 738520,
"percentageOfRevenue": 40,
"changeVsPreviousPeriod": 18.4
},
"activeAffiliates": {
"count": 4,
"newThisMonth": 1,
"changeVsPreviousPeriod": 1
},
"averageTicket": {
"value": 49900,
"aboveAverage": true,
"changeVsPreviousPeriod": 0
},
"top5Affiliates": [
{
"name": "Marketing Digital Ltda",
"initials": "MD",
"sales": 21,
"approvalRate": 64.2,
"revenue": 1047900,
"commission": 419160
}
],
"revenueAndCommission": {
"changeOverPeriod": 18.4,
"points": [
{
"date": "2026-09-11T00:00:00.000Z",
"revenue": 149700,
"commission": 59880
}
]
},
"averageTicketByAffiliate": [
{
"name": "Marketing Digital Ltda",
"averageTicket": 49900
}
],
"performanceByProduct": [
{
"name": "Curso de Tráfego Pago",
"sales": 37,
"revenue": 1846300,
"commission": 738520,
"newSales": 31,
"recurringSales": 6,
"newRevenue": 1546900,
"recurringRevenue": 299400
}
],
"roiProgram": {
"multiplier": 2.5,
"changeVsPreviousPeriod": 0.2
},
"concentrationTop3": {
"percentage": 81.4,
"revenue": 1502900
}
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Início do período, em ISO 8601. Sem período, vale a janela padrão.
Fim do período, em ISO 8601.
⌘I
