curl -X POST "https://api.affonso.io/v1/fraud-events/confirm" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "Matched chargeback"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": true,
"partial_success": true,
"total_requested": 2,
"processed": 1,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": true
},
{
"id": "cmevent999xyz",
"success": false,
"error": "Fraud event not found",
"error_code": "NOT_FOUND"
}
]
}
}
Fraud Events
Confirm Fraud Events
Confirm one or many Risk Center events as fraud
POST
/
v1
/
fraud-events
/
confirm
curl -X POST "https://api.affonso.io/v1/fraud-events/confirm" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "Matched chargeback"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": true,
"partial_success": true,
"total_requested": 2,
"processed": 1,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": true
},
{
"id": "cmevent999xyz",
"success": false,
"error": "Fraud event not found",
"error_code": "NOT_FOUND"
}
]
}
}
Confirming fraud is money-moving. Each processed event is marked
CONFIRMED_FRAUD, the related referral is rejected, and that referral’s team-scoped commissions are declined to amount 0.write:affiliates permission. There is no filter-scoped bulk: list a page, then send up to 100 IDs.
Foreign-team IDs return as NOT_FOUND in the per-item results and are not mutated. Already-resolved events return ALREADY_RESOLVED. Extra body properties are rejected.
Body Parameters
The request body is strict. Extra properties are rejected.string[]
required
Fraud event IDs to confirm. Minimum 1, maximum 100. Each ID must be a non-empty string.
string
Optional merchant note stored on the resolution. Maximum 2000 characters.
Response
The response wraps a per-ID batch result.boolean
Always
true for successful HTTP responses. Check data.success and data.results for per-ID outcomes.object
Batch confirm result.
Show Data Object Properties
Show Data Object Properties
boolean
true when at least one ID was processedboolean
true when some IDs succeeded and some failedinteger
Number of IDs in the request
integer
Number of IDs that were confirmed
integer
Number of IDs that were not confirmed
curl -X POST "https://api.affonso.io/v1/fraud-events/confirm" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "Matched chargeback"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": true,
"partial_success": true,
"total_requested": 2,
"processed": 1,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": true
},
{
"id": "cmevent999xyz",
"success": false,
"error": "Fraud event not found",
"error_code": "NOT_FOUND"
}
]
}
}
Was this page helpful?
