{"openapi":"3.1.0","info":{"title":"POST /api/v1/advisory-firms/{firm_id}/candidates/bulk-resolve","version":"1.0.0","description":"Confirm or reject match candidates"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/advisory-firms/{firm_id}/candidates/bulk-resolve":{"post":{"tags":["intercompany-cleanup"],"summary":"Confirm or reject match candidates","description":"Confirming applies the booking side effects: same-business pairs retarget to the transfers ledger, cross-entity pairs book due-to/due-from plus an elimination entry, parent legs book due-from-parent on our side only. Every confirmation also feeds rule learning and the account map's known description strings.","operationId":"bulk_resolve_candidates_api_v1_advisory_firms__firm_id__candidates_bulk_resolve_post","parameters":[{"name":"firm_id","in":"path","required":true,"schema":{"type":"string","title":"Firm Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResolveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope_BulkResolveResponse_"}}}},"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"}}}},"404":{"description":"Not Found - Resource does not exist","content":{"application/json":{"example":{"detail":"Resource not found"}}}},"422":{"description":"Validation Error - Invalid data format","content":{"application/json":{"example":{"detail":[{"loc":["body","field"],"msg":"field required","type":"value_error.missing"}]}}}}}}}},"components":{"schemas":{"BulkResolveRequest":{"properties":{"candidate_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Candidate Ids"},"action":{"type":"string","title":"Action","description":"'confirm' or 'reject'"}},"type":"object","required":["candidate_ids","action"],"title":"BulkResolveRequest","description":"Confirm or reject a batch of candidates."},"BulkResolveResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/BulkResolveResultRow"},"type":"array","title":"Results"},"confirmed_count":{"type":"integer","title":"Confirmed Count"},"rejected_count":{"type":"integer","title":"Rejected Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"missing_ids":{"items":{"type":"string"},"type":"array","title":"Missing Ids"},"rules_learned":{"type":"integer","title":"Rules Learned","default":0},"resolution_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Batch Id","description":"Undo handle — null when nothing was resolved"}},"type":"object","required":["confirmed_count","rejected_count","skipped_count"],"title":"BulkResolveResponse","description":"Per-candidate outcomes + aggregates for the summary toast."},"BulkResolveResultRow":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"outcome":{"type":"string","title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["candidate_id","outcome"],"title":"BulkResolveResultRow"},"SuccessEnvelope_BulkResolveResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"data":{"anyOf":[{"$ref":"#/components/schemas/BulkResolveResponse"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"SuccessEnvelope[BulkResolveResponse]"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}