EstateHub

Seller Onboarding API

Base URL: http://localhost:8000/api/v1
Prefix: ``
Auth: Bearer access token
Headers: Content-Type: application/json


1. Become Seller

Adds the seller role to an existing customer account without creating a duplicate account.

POST/accounts/customers/become-seller/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Seller role added successfully. Submit KYB verification to start selling.",
  "data": {
    "seller": {
      "id": "123",
      "full_name": "Jane Buyer",
      "email": "jane@example.com",
      "roles": [
        "buyer",
        "renter",
        "seller_owner"
      ],
      "status": "active",
      "is_email_verified": true,
      "is_phone_verified": false
    },
    "tokens": {
      "access": "<access_token>",
      "refresh": "<refresh_token>"
    }
  }
}

Notes

  • Requires an authenticated customer account.

  • Existing buyer and renter roles are preserved.

  • Repeated requests are safe and do not duplicate the seller role.

  • KYB approval is required before creating property listings.


2. Submit Seller KYB

Submits seller business information and documents for verification.

POST/accounts/sellers/kyb/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "business_name": "EstateHub Development Inc.",
  "business_type": "limited_company",
  "registration_number": "EXAMPLE-TX-2026-001",
  "business_address": {
    "line_1": "115 Example Avenue, Austin, TX 78701",
    "city": "Austin",
    "postal_code": "78701",
    "country": "United States"
  },
  "representative_name": "Michael Carter",
  "representative_position": "Managing Director",
  "representative_identity_document_type": "driving_license",
  "registration_certificate": {
    "file_url": "https://cdn.example.com/registration.pdf"
  },
  "trade_license": {
    "file_url": "https://cdn.example.com/trade-license.pdf"
  },
  "tax_document": {
    "file_url": "https://cdn.example.com/tax-document.pdf"
  },
  "representative_identity_front": {
    "file_url": "https://cdn.example.com/id-front.jpg"
  },
  "representative_identity_back": {
    "file_url": "https://cdn.example.com/id-back.jpg"
  },
  "representative_selfie": {
    "file_url": "https://cdn.example.com/selfie.jpg"
  },
  "declaration_confirmed": true
}

Success Example

JSON
{
  "success": true,
  "message": "KYB submitted successfully.",
  "data": {
    "kyb": {
      "id": "456",
      "type": "kyb",
      "status": "pending",
      "ui_status": "under_review",
      "rejection_reason": "",
      "submitted_data": {},
      "documents": [],
      "reviewed_by": null,
      "reviewed_at": null
    }
  }
}

Notes

  • The user must have the seller_owner role.

  • KYB status changes from not_submitted to pending.

  • An administrator must approve KYB before property listing creation.

  • Required document fields must be provided.

  • declaration_confirmed must be true.


Common Success Format

JSON
{
  "success": true,
  "message": "Operation completed successfully.",
  "data": {}
}

Common Error Format

JSON
{
  "success": false,
  "message": "Validation failed.",
  "errors": {
    "field_name": [
      "This field is required."
    ]
  }
}