Evaluate policy
POST /v2/compliance/evaluate
Evaluate a policy decision using Open Policy Agent (OPA) rules against provided subject, organization, request, transaction, and environment data.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”API Key
API Secret
Request Body required
Section titled “Request Body required ”object
The subject of the policy - user or api key
object
Subject ID
e271bc5c-f870-44cd-8462-54280d0411f6Subject name
John DoeSubject scopes and claims
object
KYC verification status
PENDINGThe organization of the policy
object
Organisation ID
e271bc5c-f870-44cd-8462-54280d0411f6Organisation name
ACME CorpOrganisation scopes
[ "read", "write"]KYB verification status
NOT_STARTEDThe request details
object
Request context
object
Event name
io.fsco.payment.initiatedService name
paymentFunction name
transferJurisdiction
USThe transaction details
object
Transaction source
object
Transaction destination
object
Transaction execution details
object
Transaction corridor
US-EUThe environment of the policy execution
object
Environment stage
productionRegion
us-east-1Provider
awsVersion
1.0.0Responses
Section titled “ Responses ”The policy evaluation result with allow/deny decision and detailed rulings.
object
The original request
object
The subject of the policy - user or api key
object
Subject ID
e271bc5c-f870-44cd-8462-54280d0411f6Subject name
John DoeSubject scopes and claims
object
KYC verification status
PENDINGThe organization of the policy
object
Organisation ID
e271bc5c-f870-44cd-8462-54280d0411f6Organisation name
ACME CorpOrganisation scopes
[ "read", "write"]KYB verification status
NOT_STARTEDThe request details
object
Request context
object
Event name
io.fsco.payment.initiatedService name
paymentFunction name
transferJurisdiction
USThe transaction details
object
Transaction source
object
Transaction destination
object
Transaction execution details
object
Transaction corridor
US-EUThe environment of the policy execution
object
Environment stage
productionRegion
us-east-1Provider
awsVersion
1.0.0The evaluation response
object
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error