AI payment behavior analysis

POST /api/v1/customers/analyze-payment-behavior

Get AI-powered customer payment behavior analysis.

Operation ID: analyze_payment_behavior_api_v1_customers_analyze_payment_behavior_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 · PaymentBehaviorItem PaymentBehaviorItem
7 fields
customer_id string required

Customer ID

customer_name string required

Customer name

behavior string required

early, on_time, late, or delinquent

avg_days_to_pay number required

Average days to pay

predicted_next_payment string

Predicted next payment date

risk_score number required

Risk score 0-1

recommendation string required

Recommended action

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