Seller Property Management API
Base URL: http://localhost:8000/api/v1
Prefix: ``
Auth: JWT Bearer token
Headers: Content-Type: application/json
1. List Seller Properties
Returns paginated properties owned by the authenticated seller.
/sellers/properties/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Seller properties retrieved successfully.",
"data": {
"properties": {
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"title": "Modern Apartment in South Congress",
"status": "draft",
"media": [],
"resources": []
}
]
}
}
}Notes
-
Optional filter:
?status=draft -
Pagination:
?page=1&page_size=12
2. Create Seller Property
Creates a new property listing as a draft.
/sellers/properties/Auth: Required
Headers
Authorization: Bearer {{access_token}}
Content-Type: application/jsonRequest Body
{
"title": "Modern Apartment in South Congress",
"description": "Spacious apartment with parking and lift.",
"property_type": "apartment",
"purpose": "buy",
"price": "625000.00",
"currency": "USD",
"city": "Austin",
"area_name": "South Congress",
"address": "120 Example Avenue, Austin, TX 78704",
"latitude": "30.2500000",
"longitude": "-97.7490000",
"bedrooms": 3,
"bathrooms": 2,
"area_size": "1450.00",
"area_unit": "sqft",
"amenity_ids": [
"0f4f3d7d-9c8a-4f80-9f4f-5f9a43d9f101"
],
"media": [
{
"type": "image",
"upload_id": "dc99095f-a854-4a00-b398-232108749938",
"thumbnail_url": "",
"is_primary": true,
"sort_order": 0
},
{
"type": "virtual_tour",
"file_url": "https://my.matterport.com/show/?m=TOUR_ID",
"is_primary": false,
"sort_order": 1
}
],
"resources": [
{
"title": "Floor Plan",
"resource_type": "floor_plan",
"file_url": "https://cdn.example.com/property/floor-plan.pdf",
"file_size": 200000,
"sort_order": 0
}
]
}Success Example
{
"success": true,
"message": "Property listing created successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"title": "Modern Apartment in South Congress",
"status": "draft",
"media": [
{
"id": "a11d3b90-6d3c-4de1-9e2f-8f7dcbbe21aa",
"upload_id": "dc99095f-a854-4a00-b398-232108749938",
"type": "image",
"file_url": "http://localhost:8000/api/v1/uploads/dc99095f-a854-4a00-b398-232108749938/content/",
"thumbnail_url": "",
"is_primary": true,
"sort_order": 0
},
{
"id": "b22d4c91-7e4d-4ef2-9f30-9f8edcbf32bb",
"upload_id": null,
"type": "virtual_tour",
"file_url": "https://my.matterport.com/show/?m=TOUR_ID",
"thumbnail_url": "",
"is_primary": false,
"sort_order": 1
}
],
"resources": [
{
"id": "33bdc470-6667-4696-ad3b-ca5782d3b0e8",
"title": "Floor Plan",
"resource_type": "floor_plan",
"file_url": "https://cdn.example.com/property/floor-plan.pdf",
"file_size": 200000,
"sort_order": 0
}
]
}
}
}Notes
-
amenity_idsis optional. -
Only active amenity IDs are accepted.
-
Duplicate amenity IDs are rejected.
-
New properties always start as
draft. -
Only one media item can be primary.
-
EstateHub-managed property media should use
upload_id. -
External virtual tours may use
file_url. -
Legacy public media URLs remain supported.
-
Property media uploads must first be prepared and completed through the Upload API.
-
property_mediasupports images and videos up to 100 MB. -
Resources currently use
file_url.
3. Get Seller Property Details
Returns details for a property owned by the authenticated seller.
/sellers/properties/{property_id}/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property details retrieved successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"title": "Modern Apartment in South Congress",
"status": "draft",
"media": [
{
"id": "a11d3b90-6d3c-4de1-9e2f-8f7dcbbe21aa",
"upload_id": "dc99095f-a854-4a00-b398-232108749938",
"type": "image",
"file_url": "http://localhost:8000/api/v1/uploads/dc99095f-a854-4a00-b398-232108749938/content/",
"thumbnail_url": "",
"is_primary": true,
"sort_order": 0
}
],
"resources": []
}
}
}4. Update Seller Property
Updates fields for a seller-owned property.
/sellers/properties/{property_id}/Auth: Required
Headers
Authorization: Bearer {{access_token}}
Content-Type: application/jsonRequest Body
{
"title": "Updated Apartment in South Congress",
"price": "650000.00",
"amenity_ids": [
"0f4f3d7d-9c8a-4f80-9f4f-5f9a43d9f101",
"87b7f7f1-8f93-47d2-bb3a-3e6a24d80b22"
],
"media": [
{
"type": "image",
"upload_id": "dc99095f-a854-4a00-b398-232108749938",
"is_primary": true,
"sort_order": 0
}
]
}Success Example
{
"success": true,
"message": "Property listing updated successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"title": "Updated Apartment in South Congress",
"price": "650000.00",
"status": "draft",
"media": [
{
"id": "a11d3b90-6d3c-4de1-9e2f-8f7dcbbe21aa",
"upload_id": "dc99095f-a854-4a00-b398-232108749938",
"type": "image",
"file_url": "http://localhost:8000/api/v1/uploads/dc99095f-a854-4a00-b398-232108749938/content/",
"thumbnail_url": "",
"is_primary": true,
"sort_order": 0
}
]
}
}
}Notes
-
This endpoint supports partial updates.
-
If
amenity_idsis provided, existing amenities are replaced. -
Send
"amenity_ids": []to remove all amenities. -
If
mediais provided, the existing media collection is replaced. -
If
resourcesis provided, the existing resources collection is replaced. -
Reusing an already attached upload on the same property is supported.
5. Delete Seller Property
Deletes a seller-owned property.
/sellers/properties/{property_id}/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property listing deleted successfully.",
"data": {}
}6. Submit Property for Approval
Submits a draft or rejected property for admin approval.
/sellers/properties/{property_id}/submit/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property submitted for approval successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"status": "pending",
"media": []
}
}
}Notes
- Only draft or rejected properties can be submitted.
7. Duplicate Property Listing
Creates a draft copy of an existing seller-owned property.
/sellers/properties/{property_id}/duplicate/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property listing duplicated successfully.",
"data": {
"property": {
"id": "9b239c83-0ed6-4206-bf5e-189d079ba633",
"title": "Modern Apartment in South Congress Copy",
"status": "draft",
"media": []
}
}
}8. Hide Property Listing
Hides a seller-owned property listing.
/sellers/properties/{property_id}/hide/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property hidden successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"status": "hidden",
"media": []
}
}
}Notes
- Sold, rented, and transfer-pending properties cannot be hidden.
9. Publish Property Listing
Publishes an approved hidden property.
/sellers/properties/{property_id}/publish/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Property listing published successfully.",
"data": {
"property": {
"id": "6f6e0df4-44e0-4de1-b3f4-87507ed92d3b",
"status": "available",
"media": []
}
}
}Notes
-
Only approved hidden properties can be published.
-
If the property is already available, the response message is
Property listing is already published.
10. Get Property KPIs
Returns property totals for the authenticated verified seller.
/sellers/properties/kpis/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Seller property KPIs retrieved successfully.",
"data": {
"kpis": {
"all_properties": 12,
"active_property": 7,
"pending": 2,
"without_agent": 4
}
}
}Notes
- Counts are scoped to properties owned by the authenticated seller.
- Approved KYB is required.
Common Success Format
{
"success": true,
"message": "Success message.",
"data": {}
}Common Error Format
{
"success": false,
"detail": "Error message.",
"errors": {
"upload_id": [
"Upload is not available for attachment."
]
}
}