{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Attestation de salaire (CPAM / IJSS)","description":"French salary attestation issued to the CPAM to calculate indemnités journalières de sécurité sociale (IJSS) for arrêt maladie, maternity, paternity or AT/MP, under CSS art. R323-4 et s. and R436-1. Generated in practice via DSN signalement événementiel 'arrêt de travail' or the S3201/S6202 CERFA forms. Includes 3 (maladie) or 12 (AT/MP, maternité) months of reference salaries used to compute the salaire journalier de base (SJB).","type":"object","required":["employer","employee","event","reference_salaries","reference_totals","subrogation","issued_by","place_of_issue","issue_date"],"additionalProperties":false,"properties":{"employer":{"type":"object","required":["name","address","siret","urssaf"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"legal_form":{"type":"string"},"address":{"type":"string","minLength":1},"siret":{"type":"string","pattern":"^[0-9]{14}$"},"urssaf":{"type":"string","minLength":1}}},"employee":{"type":"object","required":["full_name","nir","date_of_birth","address","cpam","job_title","entry_date"],"additionalProperties":false,"properties":{"full_name":{"type":"string","minLength":1},"nir":{"type":"string","pattern":"^[12][0-9]{14}$"},"date_of_birth":{"type":"string","format":"date"},"address":{"type":"string","minLength":1},"cpam":{"type":"string","minLength":1,"description":"Caisse primaire d'assurance maladie de rattachement"},"job_title":{"type":"string","minLength":1},"entry_date":{"type":"string","format":"date"}}},"event":{"type":"object","required":["type","last_day_worked","start_date"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["maladie","maternite","paternite","at_mp"]},"last_day_worked":{"type":"string","format":"date"},"start_date":{"type":"string","format":"date"},"expected_return":{"type":"string","format":"date"}}},"reference_salaries":{"type":"array","minItems":1,"maxItems":12,"items":{"type":"object","required":["month","year","period","gross","days_worked","cumulative"],"additionalProperties":false,"properties":{"month":{"type":"integer","minimum":1,"maximum":12},"year":{"type":"integer","minimum":2018,"maximum":2100},"period":{"type":"string","minLength":1,"description":"Période (ex: 'du 01/12/2025 au 31/12/2025')"},"gross":{"type":"number","minimum":0},"days_worked":{"type":"number","minimum":0},"cumulative":{"type":"number","minimum":0}}}},"reference_totals":{"type":"object","required":["gross","days_worked"],"additionalProperties":false,"properties":{"gross":{"type":"number","minimum":0},"days_worked":{"type":"number","minimum":0}}},"subrogation":{"type":"object","required":["applies"],"additionalProperties":false,"properties":{"applies":{"type":"boolean","description":"L'employeur maintient le salaire et demande le versement des IJSS directement (subrogation)"},"end_date":{"type":"string","format":"date"},"iban":{"type":"string","pattern":"^FR[0-9]{25}$"}}},"issued_by":{"type":"object","required":["name","role"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"role":{"type":"string","minLength":1}}},"place_of_issue":{"type":"string","minLength":1},"issue_date":{"type":"string","format":"date"}}}