EstateHub

Administrator Platform Settings API

Base URL: http://localhost:8000/api/v1
Prefix: /admins/platform-settings
Auth: Admin JWT authentication
Headers: Content-Type: application/json


1. Get Platform Settings

Returns the general platform configuration.

GET/admins/platform-settings/general/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Platform settings retrieved successfully.",
  "data": {
    "settings": {
      "name": "EstateHub",
      "currency": "USD",
      "language": "en",
      "timezone": "America/Chicago",
      "support_email": "support@example.com",
      "updated_at": "2026-09-23T10:00:00Z"
    }
  }
}

2. Update Platform Settings

Partially updates the general platform configuration.

PATCH/admins/platform-settings/general/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "name": "EstateHub USA",
  "currency": "USD",
  "language": "en",
  "timezone": "America/Chicago",
  "support_email": "support@example.com"
}

Success Example

JSON
{
  "success": true,
  "message": "Platform settings updated successfully.",
  "data": {
    "settings": {
      "name": "EstateHub USA",
      "currency": "USD",
      "language": "en",
      "timezone": "America/Chicago",
      "support_email": "support@example.com",
      "updated_at": "2026-09-23T10:15:00Z"
    }
  }
}

Notes

  • Supported currencies: USD, BDT, EUR, GBP.

  • Supported languages: en, bn, es, fr.

  • updated_at is read-only.


3. Get Branding Settings

Returns platform branding configuration.

GET/admins/platform-settings/branding/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Branding settings retrieved successfully.",
  "data": {
    "branding": {
      "primary_color": "#2563EB",
      "secondary_color": "#14B8A6",
      "accent_color": "#F59E0B",
      "logo_url": "",
      "logo_upload_id": null,
      "favicon_url": "",
      "favicon_upload_id": null,
      "hero_image_url": "",
      "hero_image_upload_id": null,
      "hero_title": "Find your next place to call home",
      "hero_description": "Discover verified properties for buying and leasing with trusted sellers and guided support.",
      "updated_at": "2026-09-23T10:20:00Z"
    }
  }
}

4. Update Branding Settings

Partially updates platform branding.

PATCH/admins/platform-settings/branding/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "primary_color": "#1D4ED8",
  "secondary_color": "#0F766E",
  "accent_color": "#D97706",
  "hero_title": "Find Your Dream Property",
  "hero_description": "Explore trusted properties across United States.",
  "logo_upload_id": "8e4b7a43-6b1a-4d25-8f77-2e6c8b1f3a10"
}

Success Example

JSON
{
  "success": true,
  "message": "Branding settings updated successfully.",
  "data": {
    "branding": {
      "primary_color": "#1D4ED8",
      "secondary_color": "#0F766E",
      "accent_color": "#D97706",
      "logo_url": "https://cdn.example.com/delivery/logo-token",
      "logo_upload_id": "8e4b7a43-6b1a-4d25-8f77-2e6c8b1f3a10",
      "favicon_url": "",
      "favicon_upload_id": null,
      "hero_image_url": "",
      "hero_image_upload_id": null,
      "hero_title": "Find Your Dream Property",
      "hero_description": "Explore trusted properties across United States.",
      "updated_at": "2026-09-23T10:25:00Z"
    }
  }
}

Notes

  • Color fields must use six-digit hexadecimal values, such as #2563EB.

  • logo_upload_id, favicon_upload_id, and hero_image_upload_id must reference valid uploads with purpose branding.

  • The upload must belong to the authenticated admin.

  • Set an upload ID to attach an uploaded asset.

  • Set an upload ID to null to remove the attached asset.

  • Direct URL fields are read-only and are ignored during updates.

  • Delivery URLs may be generated dynamically.

  • updated_at is read-only.


5. Get Commission Settings

Returns configured sale, rental, and reservation commission settings.

GET/admins/platform-settings/commission/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Commission settings retrieved successfully.",
  "data": {
    "commission": {
      "property_sale_rate": "2.00",
      "rental_rate": "5.00",
      "purchase_reservation_type": "percentage",
      "purchase_reservation_value": "2.00",
      "rental_reservation_type": "percentage",
      "rental_reservation_value": "2.00",
      "updated_at": "2026-09-23T10:30:00Z"
    }
  }
}

6. Update Commission Settings

Partially updates commission settings.

PATCH/admins/platform-settings/commission/

Auth: Required — Admin

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "property_sale_rate": "2.50",
  "rental_rate": "6.00",
  "purchase_reservation_type": "percentage",
  "purchase_reservation_value": "2.00",
  "rental_reservation_type": "fixed",
  "rental_reservation_value": "500.00"
}

Success Example

JSON
{
  "success": true,
  "message": "Commission settings updated successfully.",
  "data": {
    "commission": {
      "property_sale_rate": "2.50",
      "rental_rate": "6.00",
      "purchase_reservation_type": "percentage",
      "purchase_reservation_value": "2.00",
      "rental_reservation_type": "fixed",
      "rental_reservation_value": "500.00",
      "updated_at": "2026-09-23T10:35:00Z"
    }
  }
}

Notes

  • property_sale_rate and rental_rate are percentages between 0 and 100.

  • Reservation types are percentage or fixed.

  • Percentage reservation values cannot exceed 100.

  • Reservation values must be greater than 0.

  • updated_at is read-only.


Common authentication error:

JSON
{
  "success": false,
  "message": "Authentication credentials were not provided.",
  "errors": {}
}

Common permission error:

JSON
{
  "success": false,
  "message": "You do not have permission to perform this action.",
  "errors": {}
}