Create decision
Creates a new fraud decision to evaluate a transaction.
Endpoint: POST /v1/risk
POST /v1/riskHeaders
Content-Type: application/json
x-api-key: <YOUR_API_KEY>Request Body
{
"transaction_info": {
"type": "create_decision",
"reference_code": "123456789"
},
"card": {
"number": "{{token_id : detokenize}}",
"expiration_date": "{{token_id : detokenize}}"
},
"order_info": {
"amount_details": {
"total_amount": "1000",
"currency": "USD"
}
},
"bill_to": {
"first_name": "John",
"last_name": "Doe",
"country": "US",
"address_1": "1001 FALCON AVE",
"address_2": "Unit 2",
"city": "Miami",
"state": "FL",
"phone_number": "50762987635",
"email": "accept@gmsectec.com",
"postal_code": "33166"
},
"device_info": {
"fingerprint_session_id": "1713211198904",
"ip_address": "190.123.237.237",
"http_browser_color_depth": "24",
"http_browser_java_enabled": false,
"http_browser_js_enabled": true,
"http_browser_screen_height": "1050",
"http_browser_screen_width": "1680",
"http_browser_time_offset": "240",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
"cookies_accepted": true,
"http_browser_language": "en-US"
},
"merchant_defined_info": [
{
"key": "1",
"value": "1"
},
{
"key": "2",
"value": "test number 2"
},
{
"key": "3",
"value": "test number 3"
},
{
"key": "4",
"value": "test number 4"
},
{
"key": "5",
"value": "test number 5"
}
]
}Parameters
Field
Type
Required
Description
Response
Status
Message
Description
Status
Description
Usage Examples
Last updated