Consultar relatório de risco
curl --request GET \
--url https://api.ephra.io/v1/reports/risk \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/risk"
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/risk', 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/risk",
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/risk"
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/risk")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/risk")
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": {
"chargebackRate": {
"rate": 0.42,
"belowLimit": true,
"safeLimit": 1,
"changeVsPreviousPeriod": -0.08
},
"disputeValue": {
"totalAmount": 149700,
"activeDisputes": 3,
"changeVsPreviousPeriod": -1
},
"pendingDisputes": {
"total": 2,
"averageDays": 6.5,
"changeVsPreviousPeriod": 0
},
"winRate": {
"rate": 66.7,
"won": 2,
"total": 3,
"changeVsPreviousPeriod": 16.7
},
"monthlyChargebackRate": {
"criticalLimit": 1,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"rate": 0.42
}
]
},
"chargebackByProduct": {
"products": [
{
"productName": "Curso de Tráfego Pago",
"chargebacks": 2,
"amount": 99800,
"percentageOfTotal": 66.7
}
]
},
"disputeResults": {
"winRate": 66.7,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"won": 2,
"lost": 1
}
]
},
"fraudCategories": {
"categories": [
{
"category": "Cartão não reconhecido",
"count": 2
}
]
},
"antifraudBlocks": {
"total": 14,
"changeVsPreviousPeriod": -3
},
"blockReasonCategories": {
"categories": [
{
"category": "HIGH_RISK_SCORE",
"label": "Score de risco alto",
"count": 9,
"percentage": 64.3
}
]
},
"riskScoreDistribution": {
"low": {
"count": 182,
"percentage": 84.1
},
"medium": {
"count": 25,
"percentage": 11.6
},
"high": {
"count": 7,
"percentage": 3.2
}
},
"antifraudBlocksByBrand": {
"brands": [
{
"brand": "visa",
"blockedCount": 8,
"blockRate": 5.4
}
]
},
"disputesByStatus": {
"statuses": [
{
"status": "analyzing",
"label": "Em análise",
"count": 2
}
]
}
}
}{
"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 risco
Devolve os indicadores de risco da empresa autenticada no período: taxa de chargeback contra o limite seguro das bandeiras, valor em disputa, taxa de vitória, bloqueios do antifraude e distribuição por faixa de risco. Use para agir antes de a bandeira agir por você.
GET
/
v1
/
reports
/
risk
Consultar relatório de risco
curl --request GET \
--url https://api.ephra.io/v1/reports/risk \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/risk"
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/risk', 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/risk",
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/risk"
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/risk")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/risk")
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": {
"chargebackRate": {
"rate": 0.42,
"belowLimit": true,
"safeLimit": 1,
"changeVsPreviousPeriod": -0.08
},
"disputeValue": {
"totalAmount": 149700,
"activeDisputes": 3,
"changeVsPreviousPeriod": -1
},
"pendingDisputes": {
"total": 2,
"averageDays": 6.5,
"changeVsPreviousPeriod": 0
},
"winRate": {
"rate": 66.7,
"won": 2,
"total": 3,
"changeVsPreviousPeriod": 16.7
},
"monthlyChargebackRate": {
"criticalLimit": 1,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"rate": 0.42
}
]
},
"chargebackByProduct": {
"products": [
{
"productName": "Curso de Tráfego Pago",
"chargebacks": 2,
"amount": 99800,
"percentageOfTotal": 66.7
}
]
},
"disputeResults": {
"winRate": 66.7,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"won": 2,
"lost": 1
}
]
},
"fraudCategories": {
"categories": [
{
"category": "Cartão não reconhecido",
"count": 2
}
]
},
"antifraudBlocks": {
"total": 14,
"changeVsPreviousPeriod": -3
},
"blockReasonCategories": {
"categories": [
{
"category": "HIGH_RISK_SCORE",
"label": "Score de risco alto",
"count": 9,
"percentage": 64.3
}
]
},
"riskScoreDistribution": {
"low": {
"count": 182,
"percentage": 84.1
},
"medium": {
"count": 25,
"percentage": 11.6
},
"high": {
"count": 7,
"percentage": 3.2
}
},
"antifraudBlocksByBrand": {
"brands": [
{
"brand": "visa",
"blockedCount": 8,
"blockRate": 5.4
}
]
},
"disputesByStatus": {
"statuses": [
{
"status": "analyzing",
"label": "Em análise",
"count": 2
}
]
}
}
}{
"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
