Status Lifecycles
Use service actions and role-specific endpoints to change status. A value existing in a model does not prove that a route implements every transition.
| Workflow | Implemented path | Defined but not fully automated |
|---|---|---|
| KYC / KYB | not_submitted → pending → approved or rejected; rejected/expired records may be edited and resubmitted | No route or scheduler expires an approved record. |
| Property | draft → pending → available or rejected; available ↔ hidden; available → reserved → transfer_pending | Administrator deal completion marks purchases sold and activated leases rented. |
| Purchase | requested → reserved → payment_pending → transfer_pending; requested → canceled | Administrators complete required deal checklist stages; ownership transfer sets completed and marks the property sold. |
| Rental application | submitted → reserved or rejected | Administrators create and activate a lease during the complete-lease stage after payment and checklist validation. |
| Lease | Model supports draft, pending_signature, active, renewal_pending, termination_pending, ended, and canceled | Customer routes do not implement the complete lease lifecycle. |
| Payment | submitted → verified or failed | Pending, partial, paid, refunded, and canceled lack a general transition API. |
| Payout | pending → approved/on_hold/canceled; approved → processing; processing → paid/failed | Every terminal financial action requires retained external evidence. |
Integration Rule
Clients should render only actions returned or allowed for the current role and state. Do not let a UI invent transitions or update status fields directly.
Preserve history
Never delete or rewrite payment, payout, verification, moderation, or audit history to make a workflow appear complete.