Evaluate decision policy
POST/v1/customer/:customerId/decision-policies/:slug/evaluate
Apply a decision policy to a customer and receive the verdict. Supply a value for every input the policy declares; the policy's steps are applied in order and the first step whose condition matches returns its outcome and the recommended actions of its matched rules, falling back to the policy's default outcome when none match. The response also carries computedLimits, always present and empty until a policy can carry a limit.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
The policy's verdict
Invalid request body, customer id, or supplied inputs
Missing or invalid API key
Client lacks required scope: decision-policies:evaluate
Customer or decision policy not found
The policy could not be applied to this customer