List chargebacks
curl --request GET \
--url https://external-api-service.pagamerican.app/api/v1/chargebacks \
--header 'Authorization: Bearer <token>'import requests
url = "https://external-api-service.pagamerican.app/api/v1/chargebacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://external-api-service.pagamerican.app/api/v1/chargebacks', 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://external-api-service.pagamerican.app/api/v1/chargebacks",
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://external-api-service.pagamerican.app/api/v1/chargebacks"
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://external-api-service.pagamerican.app/api/v1/chargebacks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api-service.pagamerican.app/api/v1/chargebacks")
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{
"data": [
{
"refundRequestId": "19119",
"orderId": 129156,
"checkoutId": "chk_01a04083-beb7-71fc-b5a6-1b0091157d02",
"creatorId": "987",
"affiliateId": "135",
"cardBrand": "visa",
"refundSource": "customer_request",
"refundType": "chargeback",
"refundReason": "item_not_received",
"isFraud": false,
"amountRequested": 522,
"amountRefundedTotal": 522,
"transactionsCount": 1,
"completedCount": 1,
"failedCount": 0,
"cancelReason": "",
"requestedAt": "2026-08-25 10:30:00",
"lastTransactionAt": "2026-08-25 11:00:00",
"canceledAt": ""
}
],
"meta": {
"count": 10,
"limit": 1000,
"from": "2026-08-24",
"to": "2026-08-25",
"truncated": false
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}chargebacks
List chargebacks
Chargebacks and alerts in the window (by requestedAt). Available to creator and affiliate keys.
GET
/
api
/
v1
/
chargebacks
List chargebacks
curl --request GET \
--url https://external-api-service.pagamerican.app/api/v1/chargebacks \
--header 'Authorization: Bearer <token>'import requests
url = "https://external-api-service.pagamerican.app/api/v1/chargebacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://external-api-service.pagamerican.app/api/v1/chargebacks', 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://external-api-service.pagamerican.app/api/v1/chargebacks",
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://external-api-service.pagamerican.app/api/v1/chargebacks"
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://external-api-service.pagamerican.app/api/v1/chargebacks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api-service.pagamerican.app/api/v1/chargebacks")
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{
"data": [
{
"refundRequestId": "19119",
"orderId": 129156,
"checkoutId": "chk_01a04083-beb7-71fc-b5a6-1b0091157d02",
"creatorId": "987",
"affiliateId": "135",
"cardBrand": "visa",
"refundSource": "customer_request",
"refundType": "chargeback",
"refundReason": "item_not_received",
"isFraud": false,
"amountRequested": 522,
"amountRefundedTotal": 522,
"transactionsCount": 1,
"completedCount": 1,
"failedCount": 0,
"cancelReason": "",
"requestedAt": "2026-08-25 10:30:00",
"lastTransactionAt": "2026-08-25 11:00:00",
"canceledAt": ""
}
],
"meta": {
"count": 10,
"limit": 1000,
"from": "2026-08-24",
"to": "2026-08-25",
"truncated": false
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}{
"error": {
"code": "invalid_request",
"message": "from must be before to",
"correlation_id": "a1b2c3d4-0000-0000-0000-000000000000"
}
}Authorizations
Your opaque API key (pag_...) sent directly as the Bearer token. There is no token/JWT exchange.
Query Parameters
Inclusive start date (00:00 UTC), YYYY-MM-DD. Must be on or after 2026-08-21 (the data window start); an earlier date returns 422.
Example:
"2026-08-01"
Exclusive end date (00:00 UTC), YYYY-MM-DD. Pass the day after your intended last day. Max window 90 days.
Example:
"2026-08-08"
Filter by refund type.
Available options:
chargeback, alert_chargeback Example:
"chargeback"
Maximum number of records (1 to 5000).
Required range:
1 <= x <= 5000Example:
1000