EstateHub

Accounts and Verification

EstateHub separates customer KYC from seller KYB. Each role submits its own data and document URLs; administrator-role accounts inspect submissions and approve or reject them.

Implemented Transitions

stateDiagram-v2
[*] --> NotSubmitted
NotSubmitted --> Pending: User submits complete data
Rejected --> Rejected: User updates data
Rejected --> Pending: User submits again
Expired --> Expired: User updates data
Expired --> Pending: User submits again
Pending --> Approved: Administrator approves
Pending --> Rejected: Administrator rejects

The model defines not_submitted, pending, approved, rejected, and expired. Users may edit only not_submitted, rejected, or expired records. A POST submission validates completeness and changes the record to pending; an update alone does not resubmit it.

Administrator approval and rejection record the reviewer and time. Rejection also stores a required reason. The current source has no route or scheduled service that changes an approved record to expired, even though the state is defined and editable.

Route Ownership

ActorVerified routes and actions
CustomerGET/POST/PATCH `/api/v1/accounts/customers/kyc/` plus GET `/kyc/requirements/`.
SellerPOST `/api/v1/accounts/sellers/kyb/`, GET/PATCH `/kyb/me/`, and GET `/kyb/requirements/`.
AdministratorList/detail and approve/reject routes under `/api/v1/accounts/admins/kyc/` and `/kyb/`.

Required Data

Customer KYC requires identity information plus identity-front, identity-back, and selfie documents. Seller KYB requires business and representative information plus registration, trade-license, tax, representative identity-front/identity-back, and representative-selfie documents. Submit managed uploads with their upload_id values; the requirements endpoints remain the runtime authority for accepted fields and labels.