Register a chargeback alert (admin)
curl --request POST \
--url https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Ethoca alert received on 2026-06-24"
}
'import requests
url = "https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert"
payload = { "reason": "Ethoca alert received on 2026-06-24" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Ethoca alert received on 2026-06-24'})
};
fetch('https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert', 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-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Ethoca alert received on 2026-06-24'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert"
payload := strings.NewReader("{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}"
response = http.request(request)
puts response.read_body{
"chargeId": "2vorkDcXyvzifL63YX09S9VqcnI",
"status": "pre_chargeback",
"refund": {
"id": "2RhQg9M7ZCg3X3nMb9W1kX8Q",
"mode": "api"
},
"alertFee": {
"amount": 25,
"currency": "BRL"
}
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}Chargeback Alerts
Register a chargeback alert (admin)
Administrative endpoint that records a chargeback alert for a paid charge. In a single transaction it:
- Refunds the charge (falling back to the manual refund queue when the PSP does not expose an API refund).
- Debits the chargeback alert fee configured for the merchant
(
merchant_settings.chargeback_alert_fee, with the gateway default as fallback) from the merchant’s available balance and credits the gateway’s revenue balance. - Transitions the charge status to
pre_chargeback.
Requires the admin.chargeback_alerts.create permission. The operation
is idempotent: a second call for the same charge returns 422.
See Alertas de chargeback for the full flow, including the manual refund fallback.
POST
/
v1
/
charges
/
{id}
/
chargeback-alert
Register a chargeback alert (admin)
curl --request POST \
--url https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Ethoca alert received on 2026-06-24"
}
'import requests
url = "https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert"
payload = { "reason": "Ethoca alert received on 2026-06-24" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Ethoca alert received on 2026-06-24'})
};
fetch('https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert', 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-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Ethoca alert received on 2026-06-24'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert"
payload := strings.NewReader("{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-global.fastpaybrasil.com/v1/charges/{id}/chargeback-alert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Ethoca alert received on 2026-06-24\"\n}"
response = http.request(request)
puts response.read_body{
"chargeId": "2vorkDcXyvzifL63YX09S9VqcnI",
"status": "pre_chargeback",
"refund": {
"id": "2RhQg9M7ZCg3X3nMb9W1kX8Q",
"mode": "api"
},
"alertFee": {
"amount": 25,
"currency": "BRL"
}
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}{
"statusCode": 422,
"message": "SubMerchant is not active",
"error": "Unprocessable Entity"
}Authorizations
JWT Bearer token authentication. Use the JWT token obtained from the login endpoint in the Authorization header as 'Bearer {token}'.
Path Parameters
ID of the charge to register the alert against. Must be in paid status.
Example:
"2vorkDcXyvzifL63YX09S9VqcnI"
Body
application/json
Optional reason/notes for the alert. Stored for audit.
Maximum string length:
500Example:
"Ethoca alert received on 2026-06-24"