Internal endpoint called by Gateway services to verify if a transaction is permissible under current rules.
Request
Bearer olive_default_xxx (Internal Service Token)
Body Parameters
Type: P2P, CASH_OUT, PAYMENT
Velocity check (last 24h count)
Response
LOW, MEDIUM, HIGH, CRITICAL
Rule violated (if allowed=false)
Examples
curl -X POST "https://olive-gateway-a6ba.onrender.com/api/v1/compliance/check" \
-H "Authorization: Bearer olive_internal_xxx" \
-H "Content-Type: application/json" \
-d '{
"subscriber_id": "sub_abc123",
"amount": 5000000,
"transaction_type": "CASH_OUT",
"recent_transaction_count": 5
}'
{
"allowed": true,
"risk_level": "LOW"
}
| Check | Description |
|---|
| Limit Check | Is amount within daily/single limits? |
| Balance Check | Does wallet max balance exceed tier? |
| Velocity | Too many transactions in short time? |
| Watchlist | Is user on sanctions list? |
| Status | Code | Description |
|---|
| 400 | INVALID_INPUT | Bad request parameters |
| 500 | rule_error | rule evaluation failed |