The Possession & Handover Workflow
Possession Handover Data Model (PossessionHandover)
Handover data is managed via POST /api/leads/:id/booking/handover:
Automated Side Effects on Handover Completion
When an officer marks keys as handed over (keysHandedOver: true or status: 'HANDED_OVER'), BrokerOS executes automated backend operations:
Inventory Unit Locked to SOLD
The associated unit status transitions from RESERVED to SOLD (Unit.status = 'SOLD'), permanently removing it from available inventory.
Status History Audit Trail
A permanent entry is written toUnitStatusHistory:
fromStatus:RESERVEDtoStatus:SOLDreason:Handover CompletedchangedById: Handover officer user ID
Inbound Commission Record Generated
If the unit has developer commission configurations (commissionAmount or commissionPercentage), the system auto-creates an InboundCommission record in PENDING status, alerting the accounts team to bill the developer.