Cancelling a viewing
In order to cancel a viewing, you need to call the Viewings.CancelViewingAsync method on the API client:
var response = await apiClient.Viewings.CancelViewingAsync(new CancelViewingRequest
{
Id = 123456,
Reason = "A reason for cancelling the viewing"
});
The response variable will contain
a CancelViewingResponse object, which will
indicate whether the viewing was cancelled successfully or not. If it was, there will be
a ViewingDetails object in the Viewing property,
which will contain the information about the viewing that was cancelled.
Validation
| Name | Type | Required | Max Length | Other Rules |
|---|---|---|---|---|
| Id | int | Yes | - | Must be greater than 0 and must a valid viewing id for the agent |
| Reason | string | Yes | - |