POST /underwriting/auto-approval-rules/{id}/test
Test auto-approval rule
Test how an auto-approval rule would perform against sample data or specific application
Required Parameters
id
path string Rule ID
Request Body
{}{ "applicationId": "string", "sampleData": { "creditScore": 0, "requestedAmount": "string", "timeInBusiness": 0, "annualRevenue": "string", "mcc": "string", "riskScore": 0 }}Try it out
Loading...
Output:
Responses
Description
Rule test completed successfully
{ "matches": false, "action": "string", "approvedAmount": "string", "conditions": [ "string" ], "criteriaResults": {}, "executionTime": 0}Description
Invalid test data
Description
Insufficient permissions
Description
Rule not found
Route Source Code
Check out the source code for this route entrypoint here: /underwriting/auto-approval-rules/[id]/test/route.ts
Or the swagger.yaml spec this documentation was generated from:
/underwriting/auto-approval-rules/swagger.yaml