This API allows you to report an order, transaction, or user as fraudulent. It requires you to have previously made a proxy detection API call containing an order.
- Proxy & VPN Detection API
- Email Verification API
- Phone Number Validation API
- Device Fingerprint API
- Malicious URL Scanner API
- Mobile Device Fingerprinting SDK
- Gaming Fraud Detection SDK
- Dark Web Leak API
- Malware File Scanner API
- Request List API
- Fraud Reporting API
- Account Management APIs
- Bulk Validation CSV API
- Allowlist & Blocklist APIs
- Plugins Platforms & Integrations
- IP Reputation Database
- Email Verification Database
- Custom Integrations
- Country List API
Fraud Reporting
About Fraud Reporting in Custom Integrations
Request URL
Warning: For security reasons, you should only call this API server-side. |
You can use the following URL to report an order, transaction, or user as fraudulent:
Request Parameters
Parameter | Description | Example Value / Format |
key | Required. Your site's domain or the domain that requested this integration. | example.com |
secret | Required. Your user's current secret created during the authentication process. | char(128) |
request | Required. The unique request ID of the original proxy API call containing this order's information. | string |
Response Parameters
Note: Only JSON responses are available from this API. |
Parameter | Description | Format |
message | Description of the status of this call. May contain errors if errors exist. | text |
success | Boolean result of if the request was successful or not. | boolean |
EXAMPLE CODE
xxxxxxxxxx
1
// URL for this request.
2
$URL = 'https://www.ipqualityscore.com/webhooks/ExampleIntegration/json/report_order';
3
4
// Configuration items for this request. NOTE: $secret will be user specific not application specific.
5
$key = 'example.com';
6
$secret = 'YOUR_API_KEY_HERE';
7
8
// The original request ID from a proxy report.
9
$request = 'aS4sf23dsfj4dd';
10
11
// Prepare POST fields.
12
$fields = array(
13
'secret' => $secret,
14
'key' => $key,
15
'request' => $request
16
);
17
18
// Create CURL.
19
$curl = curl_init();
20
21
// Configure CURL
22
curl_setopt($curl, CURLOPT_URL, $URL);
23
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
24
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
25
curl_setopt($curl, CURLOPT_POST, 1);
26
27
// Set POST Parameters
28
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($fields));
29
30
// Fetch URL
31
$result = curl_exec($curl);
32
33
// GET response code.
34
$response_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
35
36
// Close CURL
37
curl_close($curl);
38
39
// Handle result.
40
if((int) $response_code === 200){
41
// JSON Decode
42
$output = json_decode($result, true);
43
44
if($output['success'] === true){
45
echo "Order reported successfully.";
46
} else {
47
echo "Order report failed";
48
}
49
} else {
50
echo "There appears to be an unforeseen error. Please contact IPQualityScore support if this persists.";
51
}