EstateHub

Seller Appointments API

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


1. List Seller Appointments

List property visit appointments for the logged-in seller.

GET/sellers/appointments/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Appointments retrieved successfully.",
  "data": {
    "appointments": {
      "count": 1,
      "next": null,
      "previous": null,
      "results": [
        {
          "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
          "property": {
            "id": "0d45d5d0-38a3-42f0-a76d-bc05a2fd49a2",
            "title": "Modern Apartment in Downtown",
            "slug": "modern-apartment-in-downtown",
            "city": "Austin",
            "area_name": "Downtown",
            "address": "112 Example Lane, Austin, TX 78701"
          },
          "buyer": {
            "id": "95b8e5e7-6d24-4745-a3c8-4f4453a09c11",
            "full_name": "Jane Customer",
            "email": "jane@example.com",
            "phone": "+15125550109"
          },
          "seller": {
            "id": "5c3b2357-53e8-49f5-bc6a-98c20cde6fd1",
            "full_name": "Property Seller",
            "email": "seller@example.com",
            "phone": "+15125550110"
          },
          "agent": null,
          "scheduled_at": "2026-08-10T10:00:00+06:00",
          "type": "property_tour",
          "meeting_type": "in_person",
          "status": "requested",
          "notes": "I want to visit this property.",
          "cancel_reason": "",
          "created_at": "2026-08-04T15:30:00+06:00",
          "updated_at": "2026-08-04T15:30:00+06:00"
        }
      ]
    }
  }
}

Notes

  • Returns only appointments where the logged-in seller is the appointment seller.

  • Pagination uses page.


2. Seller Appointment Details

Get details of a single appointment for the logged-in seller.

GET/sellers/appointments/{appointment_id}/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Appointment details retrieved successfully.",
  "data": {
    "appointment": {
      "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
      "property": {
        "id": "0d45d5d0-38a3-42f0-a76d-bc05a2fd49a2",
        "title": "Modern Apartment in Downtown",
        "slug": "modern-apartment-in-downtown",
        "city": "Austin",
        "area_name": "Downtown",
        "address": "112 Example Lane, Austin, TX 78701"
      },
      "buyer": {
        "id": "95b8e5e7-6d24-4745-a3c8-4f4453a09c11",
        "full_name": "Jane Customer",
        "email": "jane@example.com",
        "phone": "+15125550109"
      },
      "seller": {
        "id": "5c3b2357-53e8-49f5-bc6a-98c20cde6fd1",
        "full_name": "Property Seller",
        "email": "seller@example.com",
        "phone": "+15125550110"
      },
      "agent": null,
      "scheduled_at": "2026-08-10T10:00:00+06:00",
      "type": "property_tour",
      "meeting_type": "in_person",
      "status": "requested",
      "notes": "I want to visit this property.",
      "cancel_reason": "",
      "created_at": "2026-08-04T15:30:00+06:00",
      "updated_at": "2026-08-04T15:30:00+06:00"
    }
  }
}

Notes

  • Returns 404 if the appointment does not belong to the logged-in seller.

3. Accept Appointment

Accept an appointment request.

POST/sellers/appointments/{appointment_id}/accept/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Appointment accepted successfully.",
  "data": {
    "appointment": {
      "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
      "status": "confirmed"
    }
  }
}

Notes

  • Final appointments cannot be accepted.

  • Final statuses are canceled, completed, and no_show.


4. Reject Appointment

Reject an appointment request.

POST/sellers/appointments/{appointment_id}/reject/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "cancel_reason": "Owner is unavailable at this time."
}

Success Example

JSON
{
  "success": true,
  "message": "Appointment rejected successfully.",
  "data": {
    "appointment": {
      "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
      "status": "canceled",
      "cancel_reason": "Owner is unavailable at this time."
    }
  }
}

Notes

  • cancel_reason is optional.

  • Rejected appointments are saved with status canceled.


5. Reschedule Appointment

Reschedule an appointment.

POST/sellers/appointments/{appointment_id}/reschedule/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "scheduled_at": "2026-08-12T14:00:00+06:00",
  "notes": "Owner requested another time."
}

Success Example

JSON
{
  "success": true,
  "message": "Appointment rescheduled successfully.",
  "data": {
    "appointment": {
      "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
      "scheduled_at": "2026-08-12T14:00:00+06:00",
      "status": "rescheduled",
      "notes": "Owner requested another time."
    }
  }
}

Notes

  • scheduled_at must be a future datetime.

  • notes is optional.


6. Cancel Appointment

Cancel an appointment.

POST/sellers/appointments/{appointment_id}/cancel/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Request Body

JSON
{
  "cancel_reason": "Property is no longer available."
}

Success Example

JSON
{
  "success": true,
  "message": "Appointment canceled successfully.",
  "data": {
    "appointment": {
      "id": "8b91f5d4-5c38-4d9c-84e8-60f2f8d74a21",
      "status": "canceled",
      "cancel_reason": "Property is no longer available."
    }
  }
}

Notes

  • cancel_reason is optional.

  • Final appointments cannot be canceled again.



7. Get Appointment KPIs

Returns appointment totals for the authenticated verified seller.

GET/sellers/appointments/kpis/

Auth: Required

Headers

HTTP
Authorization: Bearer {{access_token}}

Success Example

JSON
{
  "success": true,
  "message": "Seller appointment KPIs retrieved successfully.",
  "data": {
    "kpis": {
      "upcoming_today": 1,
      "upcoming_this_week": 4,
      "completed": 8,
      "cancelled": 2
    }
  }
}

Notes

  • Completed and cancelled counts cover the current calendar month.
  • Approved KYB is required.

Common Success Format

JSON
{
  "success": true,
  "message": "Success message.",
  "data": {}
}

Common Error Format

JSON
{
  "success": false,
  "message": "Validation failed.",
  "errors": {}
}