Create Viewing

Send a POST request to https://wms.access2view.co.uk/api/v1/order/__order_id__/tasks/__task_id__/viewings.

Sample JSON

{
    "conduct_date_start": "2017-09-07T08:00:00+0000",
    "viewer": {
        "name": "Joe Bloggs",
        "mobile": "07900000000",
        "email": "joe.bloggs@example.com"
    }
}

Sample XML

<?xml version="1.0" encoding="UTF-8"?>
<json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx" xsi:schemaLocation="http://www.datapower.com/schemas/json jsonx.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <json:string name="conduct_date_start">2017-09-07T08:00:00+0000</json:string>
 <json:object name="viewer">
  <json:string name="name">Joe Bloggs</json:string>
  <json:string name="mobile">07900000000</json:string>
  <json:string name="email">joe.bloggs@example.com</json:string>
 </json:object>
</json:object>

Structure

Path Type
conduct_date_start ISO8601 DateTime Use the availability endpoint to get available viewing slots.
The viewing must have Viewer's details when booking a time slot otherwise a 400 response will be served
viewer Object
viewer.name string
viewer.mobile string
viewer.email string