Consultar relatório de pagamentos
curl --request GET \
--url https://api.ephra.io/v1/reports/payment \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/payment"
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/payment', 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/payment",
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/payment"
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/payment")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/payment")
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": {
"approvalRate": {
"rate": 61.2,
"goalMet": false,
"changeVsPreviousPeriod": 2.8
},
"refusalRate": {
"rate": 38.8,
"totalRefused": 88,
"changeVsPreviousPeriod": -2.8
},
"approvedTransactions": {
"total": 97,
"totalAmount": 4871200,
"changeVsPreviousPeriod": 14
},
"processedVolume": {
"totalAmount": 11240300,
"averageTicket": 50214,
"changeVsPreviousPeriod": 9.6
},
"refusalReasons": {
"totalRefused": 88,
"classifiedTotal": 81,
"reasons": [
{
"reason": "Saldo ou limite insuficiente",
"code": "INSUFFICIENT_FUNDS",
"count": 41,
"percentage": 50.6
}
]
},
"approvalByBrand": {
"brands": [
{
"brand": "visa",
"rate": 64.1,
"transactions": 52
}
]
},
"approvalByInstallment": {
"installments": [
{
"installment": "1x",
"rate": 68.4,
"volumePercentage": 44.2,
"transactions": 38
}
]
},
"approvalByIssuer": {
"issuers": [
{
"issuer": "Nubank",
"rate": 71.2
}
]
},
"approvalEvolution": {
"changeOverPeriod": 2.8,
"points": [
{
"date": "2026-09-11T00:00:00.000Z",
"rate": 63.4
}
]
}
}
}{
"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 pagamentos
Devolve o desempenho por meio de pagamento da empresa autenticada no período: taxa de aprovação e recusa, volume processado, motivos de recusa classificados e aprovação por bandeira, parcelamento e banco emissor. Use para saber onde a recusa dói mais.
GET
/
v1
/
reports
/
payment
Consultar relatório de pagamentos
curl --request GET \
--url https://api.ephra.io/v1/reports/payment \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/payment"
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/payment', 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/payment",
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/payment"
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/payment")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/payment")
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": {
"approvalRate": {
"rate": 61.2,
"goalMet": false,
"changeVsPreviousPeriod": 2.8
},
"refusalRate": {
"rate": 38.8,
"totalRefused": 88,
"changeVsPreviousPeriod": -2.8
},
"approvedTransactions": {
"total": 97,
"totalAmount": 4871200,
"changeVsPreviousPeriod": 14
},
"processedVolume": {
"totalAmount": 11240300,
"averageTicket": 50214,
"changeVsPreviousPeriod": 9.6
},
"refusalReasons": {
"totalRefused": 88,
"classifiedTotal": 81,
"reasons": [
{
"reason": "Saldo ou limite insuficiente",
"code": "INSUFFICIENT_FUNDS",
"count": 41,
"percentage": 50.6
}
]
},
"approvalByBrand": {
"brands": [
{
"brand": "visa",
"rate": 64.1,
"transactions": 52
}
]
},
"approvalByInstallment": {
"installments": [
{
"installment": "1x",
"rate": 68.4,
"volumePercentage": 44.2,
"transactions": 38
}
]
},
"approvalByIssuer": {
"issuers": [
{
"issuer": "Nubank",
"rate": 71.2
}
]
},
"approvalEvolution": {
"changeOverPeriod": 2.8,
"points": [
{
"date": "2026-09-11T00:00:00.000Z",
"rate": 63.4
}
]
}
}
}{
"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
