curl -X POST "https://api.affonso.io/v1/fraud-events/resolve" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "False positive"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": false,
"partial_success": false,
"total_requested": 1,
"processed": 0,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": false,
"error": "Fraud event is already resolved",
"error_code": "ALREADY_RESOLVED"
}
]
}
}
Fraud Events
Resolve Fraud Events
Resolve one or many Risk Center events as a false positive
POST
/
v1
/
fraud-events
/
resolve
curl -X POST "https://api.affonso.io/v1/fraud-events/resolve" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "False positive"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": false,
"partial_success": false,
"total_requested": 1,
"processed": 0,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": false,
"error": "Fraud event is already resolved",
"error_code": "ALREADY_RESOLVED"
}
]
}
}
Resolve marks a false positive as
RESOLVED. An AUTO_BLOCKED referral is restored to its original status (default LEAD). Resolve does not undecline commissions.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-reviewed events (resolved and not AUTO_BLOCKED) 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 resolve. 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 resolve 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 resolved
integer
Number of IDs that were not resolved
curl -X POST "https://api.affonso.io/v1/fraud-events/resolve" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["cmevent123abc"],
"note": "False positive"
}'
{
"success": true,
"data": {
"success": true,
"partial_success": false,
"total_requested": 1,
"processed": 1,
"failed": 0,
"results": [
{
"id": "cmevent123abc",
"success": true
}
]
}
}
{
"success": true,
"data": {
"success": false,
"partial_success": false,
"total_requested": 1,
"processed": 0,
"failed": 1,
"results": [
{
"id": "cmevent123abc",
"success": false,
"error": "Fraud event is already resolved",
"error_code": "ALREADY_RESOLVED"
}
]
}
}
Was this page helpful?
