{"openapi":"3.1.0","info":{"title":"GET /api/v1/contractors/1099-report","version":"1.0.0","description":"1099 year-end report"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/contractors/1099-report":{"get":{"tags":["contractors"],"summary":"1099 year-end report","description":"Total payments per 1099 contractor for the tax year.","operationId":"report_1099_api_v1_contractors_1099_report_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":2000,"description":"Tax year, e.g. 2025.","title":"Year"},"description":"Tax year, e.g. 2025."},{"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":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contractor1099ReportResponse"}}}},"400":{"description":"Bad Request - Invalid input","content":{"application/json":{"example":{"detail":"Invalid request parameters"}}}},"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":{"Contractor1099ReportResponse":{"properties":{"year":{"type":"integer","title":"Year"},"threshold_cents":{"type":"integer","title":"Threshold Cents","default":60000},"rows":{"items":{"$ref":"#/components/schemas/Contractor1099ReportRow"},"type":"array","title":"Rows"},"total_paid":{"type":"integer","title":"Total Paid"},"reportable_count":{"type":"integer","title":"Reportable Count"}},"type":"object","required":["year","rows","total_paid","reportable_count"],"title":"Contractor1099ReportResponse","description":"The 1099 year-end summary across all flagged contractors."},"Contractor1099ReportRow":{"properties":{"vendor_id":{"type":"string","title":"Vendor Id"},"name":{"type":"string","title":"Name"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"tax_id_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Type"},"box":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Box"},"total_paid":{"type":"integer","title":"Total Paid"},"meets_threshold":{"type":"boolean","title":"Meets Threshold"}},"type":"object","required":["vendor_id","name","total_paid","meets_threshold"],"title":"Contractor1099ReportRow","description":"One contractor's total payments for the tax year (cents)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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":[]}]}