AI approval risk scores

POST /api/v1/ap-approval/risk-score

Get AI-powered risk scores for pending bill approvals.

Operation ID: score_approval_risk_api_v1_ap_approval_risk_score_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

201 Successful Response

items array · ApprovalRiskItem ApprovalRiskItem

Risk-scored bills.

5 fields
bill_id string required

Bill UUID (as string).

vendor_name string

Vendor name as resolved at scoring time.

amount number | integer

Amount in dollars (display value).

risk_score integer

Risk score (0-100, higher = riskier).

risk_factors array · string

Up to 3 short risk factor strings.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object