Skip to main content

Get Customer Risk Profile

Retrieve the risk assessment profile for a customer.

GEThttps://api.zenpayz.com/merchant/api/v1/customers/{customerId}/risk
Bearer · API key

Request

Path Parameters

ParameterTypeDescription
customerId
REQUIRED
stringCustomer ID (e.g., cust_a1b2c3d4e5f6g7h8)

Headers

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation

Response

Success (200 OK)

{
"success": true,
"data": {
"customerId": "cust_a1b2c3d4e5f6g7h8",
"riskLevel": "low",
"riskScore": 15,
"fraudScore": 5,
"reasons": [],
"recommendations": ["Approve transaction"],
"requiresManualReview": false,
"allowTransaction": true,
"blockedReasons": []
},
"message": "Customer risk profile retrieved successfully",
"error": null,
"meta": {
"request_id": "req_xxxxx",
"timestamp": "2024-01-15T10:30:00.000Z",
"processing_time_ms": 70,
"api_version": "v1",
"endpoint": "GET /customers/:id/risk",
"user_type": "merchant"
}
}

Risk Levels

LevelScore RangeDescription
vip-VIP customer, trusted with high success rate
low0-29Low risk, standard processing
medium30-59Moderate risk, enhanced monitoring
high60-84High risk, manual review recommended
warning-Warning level, elevated monitoring
risky-Risky behavior detected
critical85-100Very high risk, transactions may be blocked

Examples

curl -X GET "https://api.zenpayz.com/merchant/api/v1/customers/cust_a1b2c3d4e5f6g7h8/risk" \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2024-01-15T10:30:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt"