Viewings: post

Save online booking viewing.

Request - POST https://api-uat.vtopenview.com/saveOnlineBookingViewing

You will need to supply a request body with this method.
You will need to include your access token upon making a request. For more information, see the authentication and authorization page.

Example request with authorization:

curl -- POST Base URI: https://api-uat.vtopenview.com/saveOnlineBookingViewing
--header "Authorization: Bearer MTQ0NjJkZmQ5OTM2NDE1ghNNBiuyUYUN"

Request Body
Example request body:

Content-Type: application/json
{
"viewing_request":
{
"foreName": "string",
"surName": "string",
"phone": "string",
"email": "string",
"eventId": integer,
"callBack": boolean,
"aggremment": "string",
"branchGuid": "GUID",
"propertyGuid": "GUID",
"sales": boolean,
"lettings": boolean,
}
}

aggremment:

It should contain the submited qualifying questions and answers.

Example field on request:

"aggremment": "Qualifying questions : Do you have a pet? Answer : Yes"

Response

If successful, this method returns a response body with the following structure:

Example response:

HTTPS 200 OK
Content-Type: application/json
{
"viewingId": long,
}