{"openapi":"3.1.0","info":{"title":"POST /api/v1/bills/suggest-payment-priority","version":"1.0.0","description":"AI payment priority suggestions"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/bills/suggest-payment-priority":{"post":{"tags":["bills"],"summary":"AI payment priority suggestions","description":"Get AI-powered bill payment priority recommendations.","operationId":"suggest_payment_priority_api_v1_bills_suggest_payment_priority_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestPaymentPriorityResponse"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PaymentPriorityItem":{"properties":{"bill_id":{"type":"string","title":"Bill Id","description":"Bill ID"},"vendor_name":{"type":"string","title":"Vendor Name","description":"Vendor name"},"amount":{"type":"integer","title":"Amount","description":"Amount in cents"},"due_date":{"type":"string","title":"Due Date","description":"Due date"},"priority_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Priority Score","description":"Priority score 0-1"},"reason":{"type":"string","title":"Reason","description":"Reason for priority ranking"}},"type":"object","required":["bill_id","vendor_name","amount","due_date","priority_score","reason"],"title":"PaymentPriorityItem"},"SuggestPaymentPriorityResponse":{"properties":{"recommendations":{"items":{"$ref":"#/components/schemas/PaymentPriorityItem"},"type":"array","title":"Recommendations"},"projected_balance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Projected Balance","description":"Projected balance in cents"}},"type":"object","title":"SuggestPaymentPriorityResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}