• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Setting up the API Client
  • Using the API Client
    • Getting started
  • Customers
    • Adding a customer
  • Branch Users
    • Managing branch users
  • List data
    • Getting list data
  • Properties
    • Referring a property
    • Searching for properties
    • Getting property details
  • Property Images
    • Listing property images
    • Adding property images
    • Removing property images
  • Property Notes
    • Listing property notes
  • Viewings
    • Listing property viewings
    • Creating a viewing
    • Rescheduling a viewing
    • Cancelling a viewing
    • Adding viewing feedback

Listing property viewings

In order to list the viewings for a property, you'll need to use the Viewings.GetPropertyViewingsAsync method on the API client:

var viewings = await client.Viewings.GetPropertyViewingsAsync(12345);

The above example will return the viewings for the property with ID 12345.

If the property doesn't exist, or you don't have access to it, a null value will be returned.

The response will be a readonly list of ViewingDetails, and will contain the following properties:

  • Id

    • Type: int
    • Description: Gets or sets the ID of the viewing.
  • PropertyId

    • Type: int
    • Description: Gets or sets the ID of the property associated with the viewing.
  • CustomerId

    • Type: int
    • Description: Gets or sets the ID of the customer associated with the viewing.
  • Date

    • Type: DateTime
    • Description: Gets or sets the date of the viewing.
  • From

    • Type: TimeSpan
    • Description: Gets or sets the start time of the viewing.
  • To

    • Type: TimeSpan
    • Description: Gets or sets the end time of the viewing.
  • Cancelled

    • Type: bool
    • Description: Gets or sets a value indicating whether the viewing is cancelled.
  • Feedback

    • Type: string?
    • Description: Gets or sets the feedback provided for the viewing.
In This Article
Back to top Generated by DocFX