Aller au contenu principal

8. Créer un dossier de location

Reconstruit — PDF « Création dossier de location » + createRentalFolder / CreateRentalFolderInput.

Mapping métier → API

Étape UI (PDF)Côté API
Collaborateur signatairerepresentativeId (obligatoire)
Dates effet / fin, reconductioncontractDetails (startDate, leaseEndingDate, leaseRenewalOption…)
Lot + profil locataireunits[] + profiles[]
Période / cycle / échéanceinvoicingConfig (+ champs contrat)
Planifier / confirmer l’entréemutations d’événements / états du dossier (hors capture — voir schéma RentalFolder)
Solde initialparcours comptable dédié (souvent UI)

Prérequis

  • unitId existant
  • personalProfileId ou moralProfileId
  • representativeId (collaborateur / représentant)
  • Idéalement accountingInvoiceConfigId
  • Lot + profil créés avant (comme l’indique la doc utilisateur)

Mutation

mutation createRentalFolder($rentalFolder: CreateRentalFolderInput!) {
createRentalFolder(rentalFolder: $rentalFolder) {
id
reference
}
}
{
"rentalFolder": {
"representativeId": "00000000-0000-4000-8000-000000000050",
"accountingInvoiceConfigId": "00000000-0000-4000-8000-000000000060",
"externalId": "RF-EXT-001",
"isAutomaticInvoicingEnabled": true,
"isSubletting": false,
"units": [
{ "unitId": "00000000-0000-4000-8000-000000000020" }
],
"profiles": [
{
"personalProfileId": "00000000-0000-4000-8000-000000000070",
"associationType": "tenant",
"isProxySignatory": true
}
],
"contractDetails": {
"startDate": "2026-09-01",
"leaseEndingDate": "2029-08-31",
"leaseRenewalOption": "tacit",
"paymentDueDay": 5,
"invoiceFrequency": "monthly",
"securityDeposit": 300000
},
"invoicingConfig": {
"invoicingStartDate": "2026-09-01",
"invoicingFrequency": "monthly",
"invoicingTimeWindow": "current_period",
"dueDateMethod": "fixed_day",
"dueDatePositioning": "in_arrears",
"paymentDueDay": 5
}
}
}
Enums à valider par introspection

Les valeurs associationType, leaseRenewalOption, invoicingFrequency, etc. sont illustratives. Introspectez RentalFolderProfileAssociationTypeEnum, LeaseRenewalOptionTypeEnum, InvoicingFrequencyEnum, DueDateMethodEnum… avant mise en production. Les noms exacts font foi dans le schéma de votre tenant.

Après création

  1. Vérifier le dossier via rentalFoldersPaginated / query détail.
  2. Planifier l’entrée / activer la facturation : chercher dans le schéma les mutations d’événements / états (RentalFolder domain).
  3. Solde initial : souvent un flux comptable séparé (PDF étapes 8–9) — à confirmer sur votre version.

Voir aussi

Suite

Activer & paramétrer un dossier