{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Lohnkonto","description":"Annual per-employee wage ledger (Lohnkonto) pursuant to §41 EStG and §4 LStDV. Documents monthly gross, tax withholdings and social-security contributions for a full calendar year; the employer is legally obliged to maintain one Lohnkonto per employee.","type":"object","required":["employer","employee","year","monthly","year_totals"],"additionalProperties":false,"properties":{"employer":{"type":"object","required":["name","address","tax_number","betriebsnummer"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"legal_form":{"type":"string"},"address":{"type":"string","minLength":1},"tax_number":{"type":"string","minLength":1},"betriebsnummer":{"type":"string","pattern":"^[0-9]{8}$"}}},"employee":{"type":"object","required":["personal_number","full_name","date_of_birth","sv_nummer","steuer_id","tax_class","entry_date"],"additionalProperties":false,"properties":{"personal_number":{"type":"string","minLength":1},"full_name":{"type":"string","minLength":1},"address":{"type":"string"},"date_of_birth":{"type":"string","format":"date"},"sv_nummer":{"type":"string","minLength":1},"steuer_id":{"type":"string","pattern":"^[0-9]{11}$"},"tax_class":{"type":"integer","minimum":1,"maximum":6},"child_allowance_factor":{"type":"number","minimum":0,"maximum":8},"church_tax":{"type":"string","enum":["none","ev","rk"]},"krankenkasse":{"type":"string"},"entry_date":{"type":"string","format":"date"},"exit_date":{"type":"string","format":"date"}}},"year":{"type":"integer","minimum":2020,"maximum":2100},"monthly":{"type":"array","minItems":1,"maxItems":12,"items":{"type":"object","required":["month","gross","lohnsteuer","soli","kirchensteuer","sv_employee","net"],"additionalProperties":false,"properties":{"month":{"type":"integer","minimum":1,"maximum":12},"gross":{"type":"number","minimum":0},"lohnsteuer":{"type":"number","minimum":0},"soli":{"type":"number","minimum":0},"kirchensteuer":{"type":"number","minimum":0},"sv_employee":{"type":"number","minimum":0},"net":{"type":"number"}}}},"year_totals":{"type":"object","required":["gross","lohnsteuer","soli","kirchensteuer","sv_employee","sv_employer","net"],"additionalProperties":false,"properties":{"gross":{"type":"number","minimum":0},"lohnsteuer":{"type":"number","minimum":0},"soli":{"type":"number","minimum":0},"kirchensteuer":{"type":"number","minimum":0},"sv_employee":{"type":"number","minimum":0},"sv_employer":{"type":"number","minimum":0},"net":{"type":"number"}}}}}