À quoi sert la ressource « Contrats de travail » ?
Contrats de travail : nature et motif, période d’essai, DPAE, convention collective et classification, temps de travail, rémunération, clauses, avenants et fin de contrat (préavis, motif DSN)
Quels endpoints sont disponibles ?
| Méthode | Adresse | Action |
|---|---|---|
| GET | /api/v1/employmentContracts et /{id} | lire (liste paginée ou un élément par identifiant) |
| POST | /api/v1/employmentContracts | créer un élément |
| PUT | /api/v1/employmentContracts/{id} | remplacer un élément |
| DELETE | /api/v1/employmentContracts/{id} | supprimer un élément |
| PATCH | /api/v1/employmentContracts/{id} | modifier certains champs |
Quels champs contient la ressource « Contrats de travail » ?
| Champ | Type et description |
|---|---|
| id | string |
| tenantId | string |
| startDate | ISO8601 |
| reference | string |
| employeeId | string — salarié titulaire (le champ userId n’a jamais existé sur cette ressource) |
| legalEntityId | string |
| type | EmploymentContractType |
| status | EmploymentContractStatus |
| endDate | string |
| trialPeriodEndDate | string |
| trialPeriodRenewable | boolean |
| trialPeriodRenewed | boolean |
| cddReason | string |
| cddReasonDetails | string |
| precarityBonusApplies | boolean |
| dpaeReference | string |
| dpaeDate | string |
| dpaeStartTime | string — HH:MM, heure d’embauche du fichier DPAE format 120 (30/09/2026) |
| previousContractEndDate | string |
| previousContractDurationDays | number |
| dsnSignaledAt | string |
| dsnEndReasonCode | string — motif de rupture au format DSN |
| endNotifiedAt | string |
| conventionSignedDate | string |
| noticeStatus | 01|02|03|10|50|51|60|61|90 — type de préavis (S21.G00.63.001, cahier P26V01, « 09 » historique lu comme 90) |
| procedureStartDate | string — date d’engagement de la procédure de licenciement (S21.G00.62.005) |
| lastWorkedPaidDate | string — dernier jour travaillé et payé (S21.G00.62.006) |
| transactionPending | boolean — transaction en cours (S21.G00.62.008) |
| noticeStart | string |
| noticeEnd | string |
| noticePeriodDays | number |
| effectiveEndDate | string |
| jobTitle | string |
| jobCategory | string |
| classification | string |
| collectiveAgreement | string |
| idccCode | string |
| department | string |
| managerId | string |
| workLocation | string |
| remoteAllowed | boolean |
| remoteDaysPerWeek | number |
| workTimeType | WorkTimeType |
| weeklyHours | number |
| annualHours | number |
| forfaitDays | number |
| forfaitDaysReference | number — forfait annuel de la catégorie (jours, défaut 218) : quotité DSN 21,67 × forfaitDays / forfaitDaysReference |
| schedule | string |
| salaryGross | number — salaire BRUT contractuel (le champ salary n’a jamais existé), la périodicité est portée par salaryFrequency |
| salaryFrequency | SalaryFrequency |
| currency | string |
| bonusScheme | string |
| variablePercent | number |
| thirteenthMonth | boolean |
| benefits | string[] |
| vacationDaysPerYear | number |
| rttDaysPerYear | number |
| mutuelle | string |
| prevoyance | string |
| retirementPlan | string |
| transportAllowance | number |
| nonCompeteClause | boolean |
| nonCompeteDurationMonths | number |
| nonCompeteCompensation | number |
| confidentialityClause | boolean |
| intellectualPropertyClause | boolean |
| exclusivityClause | boolean |
| mobilityClause | boolean |
| signedAt | string |
| signedBy | string — signataire(s) (posé par la signature électronique, /api/esignature) |
| documentUrl | string |
| attachments | { name: string, url: string, uploadedAt: string }[] |
| amendments | EmploymentContractAmendment[] — avenants au contrat |
| endReason | demission|licenciement|rupture_conventionnelle|fin_cdd|retraite|periode_essai|transfert|autre |
| endDetails | string |
| exitInterviewDate | string |
| notes | string |
| createdAt | string |
| updatedAt | string |
| esignature | EsignSourceLink — signature électronique (requestId, provider, status, updatedAt, signedGedId, proofGedId), écrit par le serveur (/api/esignature) |
Comment filtrer, trier et paginer ?
Exemple de lecture filtrée et triée : GET /api/v1/employmentContracts?filter[startDate]=…&sort=reference:desc&limit=50.
Le filtre est une égalité stricte sur un champ déclaré, le tri s’écrit champ:asc ou champ:desc, la page contient 50 éléments par défaut et 200 au plus, un champ inconnu renvoie une erreur 400 plutôt qu’un résultat faux.
Quelles autorisations faut-il ?
- Une offre qui inclut l’API publique : Enterprise.
- Une clé d’API créée dans Système › Intégrations, envoyée dans l’en-tête Authorization: Bearer, limitée au dossier qui l’a émise.
- Une portée accordée à la clé pour cette ressource : lecture, écriture et suppression.