Respond to alert
curl --request POST \
--url https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"response": "CONFIRMED",
"type": "CARD_LOST"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({response: 'CONFIRMED', type: 'CARD_LOST'})
};
fetch('https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond"
payload = {
"response": "CONFIRMED",
"type": "CARD_LOST"
}
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"origin": "DETECTED",
"type": "CARD_LOST",
"detectionReason": "<string>",
"cardholderMessage": "<string>",
"transactionOccurredAt": "2023-11-07T05:31:56Z",
"detectedAt": "2023-11-07T05:31:56Z",
"respondedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"reportableUntil": "2023-11-07T05:31:56Z",
"respondableUntil": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "FRAUD_ALERT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FRAUD_ALERT_ALREADY_RESOLVED",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FRAUD_RESPONSE_WINDOW_EXPIRED",
"message": "<string>",
"detail": {}
}
}Fraud Alerts
Respond to alert
Confirms or declines a pending detected fraud alert. Confirming blocks the card (CARD_STATUS_UPDATED with blockReason: FRAUD_ALERT_CONFIRMED); declining leaves the card alone. type is required when confirming.
POST
/
fraud-alerts
/
{id}
/
respond
Respond to alert
curl --request POST \
--url https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"response": "CONFIRMED",
"type": "CARD_LOST"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({response: 'CONFIRMED', type: 'CARD_LOST'})
};
fetch('https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/fraud-alerts/{id}/respond"
payload = {
"response": "CONFIRMED",
"type": "CARD_LOST"
}
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"origin": "DETECTED",
"type": "CARD_LOST",
"detectionReason": "<string>",
"cardholderMessage": "<string>",
"transactionOccurredAt": "2023-11-07T05:31:56Z",
"detectedAt": "2023-11-07T05:31:56Z",
"respondedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"reportableUntil": "2023-11-07T05:31:56Z",
"respondableUntil": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "FRAUD_ALERT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FRAUD_ALERT_ALREADY_RESOLVED",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FRAUD_RESPONSE_WINDOW_EXPIRED",
"message": "<string>",
"detail": {}
}
}Required scope: FRAUD_ALERTS_RESPOND
Headers
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Respond to a pending detected fraud alert. Confirming blocks the card; declining does not.
Response
Fraud alert resource