Last Updated: Sept 2021
BDP WebAPI Documentation
BDP Rest API Basics
The BDP Media restful API allows authenticated users to receive orders for new media and load media remotely.
BDP restful APIs follow restful principles.
Authenticating a Request
BDP APIs use a simplified version of the Amazon S3 method for authentication. Authentication is provided by placing an ‘Authorization’ header in the request containing an API key and signature generated from a shared secret.
Authorization = “BDWS” + ” ” + BDWSAccessKeyId + “:” + Signature;
Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) );
StringToSign = HTTP-Verb + “\n” +
Content-MD5 + “\n” +
Content-Type + “\n” +
Date + “\n”
;
Full details of this authentication technique can be found at:
http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
Request Format
Base URLs
Live environment: https://api.bdphq.com/restapi/
UAT environment: https://uat.bdphq.com/restapi/
Training environment: https://training.bdphq.com/restapi/
Request
====================================================================
GET /property/id HTTP/1.1
Host: bdphq.com
accId : 123456
Date: Mon, 26 Mar 2007 19:37:58 +0000
Authorization: ESPCWS AKIAIOSFODNN7EXAMPLE:frJIUN8DYpKDtOLCwo//yllqDzg=
In the above example, all available property data would be returned for property with a given id for account id. 123456.
WARNING: Depending on the firm the result might have more or less data.
Return
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
{ "brochureDescription": "", "descText": "", "epcBand": "Unknown", "propertyType": "49", "heating": "Double Glazing", "cTaxBand": "A", "gardenType": "", "parkingType": "", "f1": "", "f2": "", "f3": "", "rmSummary": "", "viewingDetails": "", "hrValue": "650000", "priceType": "Fixed Price", "entryDate": "", "brochure": "brochure.docx", "fPlan": "fPlan.jpg", "hReportPdf": "", "viewingMInfoviewingMInfo": "", "keyMInfo": "", "signMInfo": "", "surveyorName": "691", "viewingContact": "{Some JSON data}", "useOpenViewings": "1", "genNotes": "", "digitalAppraisal": "", "digitalBrochure": "", "fPlanPdf": "fPlanPdf.pdf", "fPlanSketch": "", "epcGraph": "epcGraph.jpg", "singleSurvaey": "", "mortgageValuation": "", "pQuestionairre": "", "epcDoc": "", "oneSurveyLink": "", "bookingCalendarId": "228", "yourWebsiteSnippet": "", "useAtm": "1", "useGspc": "1", "gspcId": "", "useEspc": "1", "useRMove": "1", "useDpg": "1", "useS1": "1", "espcId": "", "escpHrId": "", "localRef": "", "managedBy": "Agent", "hmoLicence": "0", "landlordRefNo": "", "travelDirections": "", "propertyLocation": "", "propertyAdvisor": "12345", "surveyorInstructions": "", "eaOnly": "0", "agencyTerm": "", "executry": "0", "matrimonial": "0", "tenureType": "Freehold", "useNetHousePrices": "0", "shootHomeId": "", "shMovieLink": "", "movieLink2": "", "virtualTourAvailable": "1", "useRMoveI": "1", "property_id": "123456", "firm_id": "6", "webPublish": "1", "client_id": "123456", "branch_id": "1", "xagent_id": "0", "xagentContact_id": "0", "xsolicitor_id": "123456", "xsolicitorContact_id": "123456", "external_id": "", "external_id2": "", "primaryImage_id": "123456", "cachePrimaryImage": "123456.jpg", "houseNo": "1", "streetName": "Some Street", "pName": "", "addrL1": null, "addrL2": null, "addrL3": null, "town": "Edinburgh", "postcode": "EH1 1EE", "formatAddress": "1, Some Street, Edinburgh, EH1 1EE", "dispAddress": "1, Some Street, Edinburgh, EH1 1EE", "lat": "123456789", "lng": "123456789", "featureString": "", "profile_id": null, "askingPrice": "123000", "sqmHouse": "", "sqmLand": "", "bedRooms": "12", "livingRooms": "2", "bathRooms": "1", "garden": "0", "pTypes": "46,49", "pdiv_id": null, "offertype_id": null, "salestatus_id": null, "noShowerRooms": null, "noKitchens": null, "noToilets": null, "garage": "0", "fullDesc": null, "viewingDesc": null, "homeReportId": null, "espcIdInline": null, "lastUpdated": "2021-09-27 00:00:00", "archived": "0", "statusId": "123", "letting": "0", "newBuild": "0", "featured": "0", "soldPrice": "120000", "undOffer": null, "soldDate": "", "accOfferId": "123456", "feeData": "{Some JSON data}", "chkListData": "{Some JSON data}", "gspcDistrict": "0", "gspcArea": "0", "datecreated": "123456789", "active": "1", "newProp": "0", "soldClientId": "0", "osTown": null, "espcFeedDate": null, "pNegotiator": "12345", "pValuer": "12345", "pConveyancer": "0", "pCareManager": "0", "pFeeEarner": "0", "pSolicitor": "0", "pAdministrator": "0", "live": "1", "espcPublish": "0", "espcPDate": "", "espcExDate": "", "espcStatus": "", "espcDistrict": "Some Street, Town", "espcDistrictId": "1234", "customDistrict": "", "notesInterest": "7", "offersLogged": "4", "closingDate": "123456789", "delayedFeeds": "0", "marketDate": "123456789", "altisSolData": "", "lifequay_transaction_id": "585", "pLive": "1", "imagePath": "image.jpg", "images": [ { "url": "http://some url", "created": "123456789" }, { "url": "http://some url", "created": "123456789" } ], "fullTypes": [], "types": [ "46", "49" ], "typeNames": [ "House", "Terraced" ], "outputAskingPrice": "£123,000", "floatAskingPrice": 123000, "outputHrValue": "£650,000", "outputSoldPrice": "£120,000", "summaryText": "", "priceTypeLabel": "Fixed Price", "letFrequency": "", "sellingStatus": "Available", "statusClass": "status_available", "currencySymbol": "£", "brochurePathPublic": "http://some url", "epcDocPathPublic": false, "floorPlanPdfPathPublic": "http://some url", "hrPathPublic": false, "addrL4": null, "stats": { "notesInterest": 7, "notesInterestFormal": "5", "notesInterestInformal": "2", "offersLogged": "4", "closingDate": "123456789", "gasSafety": "", "workOrders": "0", "noViewings": 38, "dRequestsOffice": "2", "dRequestsWebsite": "0", "dRequestsRM": "0", "dRequestsZoopla": 0, "dRequestsS1": 0, "dRequestsESPC": 0, "hrRequestsESPC": "0", "hrRequestsOffice": 0, "setOnline": "123456789", "valuationDate": "0", "feeValue": "", "feeType": "", "valuationCreationDate": 0, "valuationCreator": "", "confirmedViewings": { "viewings": "12", "openViewings": 4, "total": 16 }, "unconfirmedViewings": { "viewings": 18, "openViewings": 4, "total": 22 } }, "marketDateFormat": "17 Oct 2018", "dateListed": "1539730800", "hrValueFormat": "£650,000", "timeOnMarket": "154 weeks, 0 days", "soldDateFormat": "", "lenders": [ { "lender_id": "1", "lenderCode": "LHS-ACCO", "lenderName": "", "lenderFax": "", "lenderPhone": "", "lenderLink": "http://some url", "postalAddress": "2 Some Street, Edinburgh, EH1 1EE", "company_no": null, "houseNo": "", "streetName": "", "town": "", "postcode": "", "dxAddress": "", "dxTown": "", "lpAddress": "", "lpTown": "", "datecreated": "1610728311", "active": "1", "plender_id": "123", "property_id": "123456", "firm_id": "6", "addrL2": "", "addrL3": "", "accountNo": "123456789", "loanNotes": "", "formatAddress": "2 Some Street, Edinburgh, EH1 1EE", "printAddress": "2 Some Steet\nEdinburg\nEH1 1EE", "name": "" } ], "imageLinksHtml": "", "ownerDetailsSimple": { "groupName": "", "fullName": "James Bond", "fullNameWithTitles": "Mr James Bond", "formatAddress": "3 Some Road, Edinburgh, EH1 1EE", "printAddress": "3 Some Road\nEdinburg\nEH1 1EE", "email1": "test@test.com", "tel1": "", "mobile": "5255414785", "tel2": "", "c2-fullName": null, "c2-fullNameWithTitles": null, "c2-email1": null, "c2-tel1": null, "c2-mobile": null, "c2-tel2": null }, "solicitorDetailsSimple": { "groupName": "Demo Solicitors", "fullName": "Smily Face", "fullNameWithTitles": "Smily Face", "formatAddress": "", "printAddress": "", "email1": "test@test.com", "tel1": "", "mobile": null, "tel2": null, "c2-fullName": null, "c2-fullNameWithTitles": null, "c2-email1": null, "c2-tel1": null, "c2-mobile": null, "c2-tel2": null }, "showNotesInterest": true, "onlineState": true, "onlineStateLabel": "Online", "outputAskingPriceCMS": "£123,000", "outputSoldPriceCMS": "£120,000", "closingDateFormat": "11 Apr 2019 11:00", "gasSafetyFormat": "", "featureList": "", "editButton": true, "enableMerge": false, "showDelete": true, "hasAdmin": true, "detailPath": "http://some url", "mapData": "", "firmName": "Demo Solicitors LLP", "branchName": "Head Office", "rooms": [ { "room_id": "285625", "roomName": "Living Room", "property_id": "123456", "external_id": null, "external_id2": null, "roomDesc": "Some description of this room", "roomWidth": "3.80", "roomLength": "6.90", "ordering": null, "lastUpdated": "0000-00-00 00:00:00", "live": "0", "datecreated": null, "active": "1" } ], "staffData": { "staff": { "user_id": null, "userNme": null, "firstName": null, "lastName": null, "workTel1": null, "workMob1": null, "workRole": null, "proPic": null, "initials": null }, "negDetails": { "user_id": "12345", "userNme": "test.user@espc.com", "firstName": "Test", "lastName": "User", "workTel1": "", "workMob1": "", "workRole": "", "proPic": "", "initials": "TU" } } } |
API Methods
Get Property
GET /property/id HTTP/1.1
Returns the full set of json for a property with a given id.
Get Props
GET /props HTTP/1.1
Additional parameters can be included to control search results. These can be found at: http://i.bdphq.com/controlling-output-using-the-url/
Returns json results for properties. Each property result is a shortened ‘summary’ json object. Full property details including all images must be pulled individually using GET /property/id.
Return
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
{ "properties": [ { "property_id": "123456", "firm_id": "6", "branch_id": "1", "primaryImage_id": "0", "cachePrimaryImage": "", "houseNo": "10", "streetName": "Some Street", "pName": "", "town": "Edinburgh", "postcode": "EH1 1EE", "lat": "123456789", "lng": "123456789", "mapData": "", "soldPrice": "", "askingPrice": "541220", "bedRooms": "2", "livingRooms": "2", "bathRooms": "2", "garden": "0", "lastUpdated": "2021-09-27 00:00:00", "archived": "0", "statusId": "164", "letting": "0", "sqmLand": "", "sqmHouse": "", "datecreated": "123456789", "espcDistrict": " ", "espcDistrictId": "0", "dispAddress": "10 Some Street, Edinburgh, EH1 1EE", "pNegotiator": "0", "pValuer": "11792", "pConveyancer": "0", "pCareManager": "0", "pFeeEarner": "0", "pSolicitor": "0", "pAdministrator": "0", "marketDate": "0", "soldDate": "", "closingDate": "", "noShowerRooms": null, "noKitchens": null, "noToilets": null, "garage": "0", "newBuild": "0", "imagePath": "http://some url", "images": [ { "order": "", "imageId": "843540", "imageName": "24woodsideavenue-print", "fileName": "116868_2_1554887196.jpg", "url": "http://some url" } ], "propertyType": "50", "gardenType": "Rear", "parkingType": "Garage & Driveway", "heating": "", "valuationAppointment": "", "hrValue": "", "priceType": "", "entryDate": "", "managedBy": "Agent", "epcBand": "Unknown", "cTaxBand": null, "tenureType": "Freehold", "useAtm": "1", "useGspc": "1", "useEspc": "1", "useRMove": "1", "useDpg": "1", "useNetHousePrices": "1", "useS1": "1", "useRMoveI": "1", "fullTypes": [], "types": [ "46", "50" ], "typeNames": [ "House", "End of Terrace" ], "outputAskingPrice": "£541,220", "floatAskingPrice": 541220, "summaryText": "", "descText": "", "priceTypeLabel": "", "letFrequency": "", "sellingStatus": "Available", "statusClass": "status_available", "currencySymbol": "£", "brochurePathPublic": false, "epcDocPathPublic": false, "floorPlanPdfPathPublic": false, "hrPathPublic": "", "addrL3": null, "addrL4": null, "formatAddress": "10 Some Street, Edinburgh, EH1 1EE", "stats": { "notesInterest": 0, "notesInterestFormal": "0", "notesInterestInformal": "0", "offersLogged": "0", "closingDate": "", "gasSafety": "", "workOrders": "0", "noViewings": 0, "dRequestsOffice": "0", "dRequestsWebsite": "0", "dRequestsRM": "0", "dRequestsZoopla": 0, "dRequestsS1": 0, "dRequestsESPC": 0, "hrRequestsESPC": "0", "hrRequestsOffice": 0, "setOnline": "1632411299", "valuationDate": "1565154000", "feeValue": "", "feeType": "", "valuationCreationDate": "1565098334", "valuationCreator": "James Bond", "confirmedViewings": { "viewings": "0", "openViewings": 0, "total": 0 }, "unconfirmedViewings": { "viewings": 0, "openViewings": 0, "total": 0 } }, "marketDateFormat": "", "dateListed": "1632411299", "hrValueFormat": "£0", "timeOnMarket": "5 days", "soldDateFormat": "", "lenders": [], "imageLinksHtml": "", "satCheck": true, "detailPath": "http://some url", "rResImage": "images/no_propertyimage_sresult_home.gif", "resThumbParams": "&w=178&h=144&q=80&fname=/", "shortDesc": "", "corePath": "https://some url", "espcDistrictName": "", "espcAreaName": "", "homeThumbParams": "", "homeThumbData": [], "closingDateFormat": "" } ], "nRes": 1 } |
Get Branches
GET /branches HTTP/1.1
Returns a json object for each branch. The follow example shows what details are included:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
[ { "branch_id": "122", "branchName": "Aberdeen ", "houseNo": "12", "streetName": "Some Street", "town": "Aberdeen", "addrL3": "", "postcode": "AB10 2HR", "tel1": "01234 567 890", "contactEmail": "maildesk@firm.com", "espcRef": "1000001", "gspcRef": "", "fspcRef": "", "rMoveRef": "", "atmRef": "", "dpgRef": "", "s1Ref": "", "lWebRef": "", "partnerEmail": "", "branchWebsite": "", "partnerName": "" }, { "branch_id": "999", "branchName": "Inverurie", "houseNo": "6", "streetName": "Some Street", "town": "Inverurie", "addrL3": "", "postcode": "AB11 6TT", "tel1": "01234 567 890", "contactEmail": "maildesk@firm.com", "espcRef": "1000001", "gspcRef": "", "fspcRef": "", "rMoveRef": "", "atmRef": "", "dpgRef": "", "s1Ref": "", "lWebRef": "", "partnerEmail": "", "branchWebsite": "", "partnerName": "" } ] |
Get Users
GET /users HTTP/1.1
Returns all users for a given firm. Included data for each user:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
[ { "user_id": "101111", "userNme": "test@bdphq.com", "password": "password", "firstName": "Joe", "lastName": "Brown", "userStatus_id": "2", "workTel1": "", "workMob1": "", "workRole": "", "accountAdmin": "1", "branchId": "212", "techAdmin": "0", "propertyEdit": "0", "valuer": "0", "viewingAgent": "0", "negotiator": "0", "conveyancer": "0", "feeEarner": "0", "propertyAdvisor": "0", "solicitor": "0", "clientCare": "0", "propertyAdmin": "0", "inCal": "1", "firmIpHold": "0", "ipHold": "", "calEmail": "", "calColour": "", "proPic": null, "customInitials": "", "assignedAccess": "0" }, { "user_id": "11433", "userNme": "user@bdphq.com", "password": "password", "firstName": "Dave", "lastName": "Field", "userStatus_id": "2", "workTel1": "", "workMob1": "", "workRole": "", "accountAdmin": "1", "branchId": "212", "techAdmin": "0", "propertyEdit": "1", "valuer": "0", "viewingAgent": "0", "negotiator": "1", "conveyancer": "0", "feeEarner": "0", "propertyAdvisor": "0", "solicitor": "0", "clientCare": "0", "propertyAdmin": "0", "inCal": "1", "firmIpHold": "0", "ipHold": "", "calEmail": "", "calColour": "", "proPic": null, "customInitials": "", "assignedAccess": "0" } ] |
Get Property Types
GET /propertytypes HTTP/1.1
Returns all property types. We recommend using only the superTypeId (i.e. House, Flat, etc.) to limit the amount of search options e.g. when populating a drop-down.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[ { "superTypeId": "46", "superTypeName": "House", "subTypeId": "49", "subTypeName": "Terraced" }, { "superTypeId": "47", "superTypeName": "Flat / Apartment", "subTypeId": "284", "subTypeName": "Penthouse Flat" } ] |
Get SPC Districts
GET /spcdistricts HTTP/1.1
Returns all SPC districts. Fields include CRAD id, country, region, area and district. Snippet of returned JSON data:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
[ { "crad_id": "858", "country": "Scotland", "region": "Argyll & The Isles", "area": "Argyll & The Isles", "district": "Argyll & The Isles" }, { "crad_id": "859", "country": "Scotland", "region": "Ayrshire", "area": "Arran Bute & Cumbrae", "district": "Arran Bute & Cumbrae" }, { "crad_id": "860", "country": "Scotland", "region": "Ayrshire", "area": "East Ayrshire", "district": "East Ayrshire" }, { "crad_id": "861", "country": "Scotland", "region": "Ayrshire", "area": "North Ayrshire", "district": "North Ayrshire" }, { "crad_id": "862", "country": "Scotland", "region": "Ayrshire", "area": "South Ayrshire", "district": "South Ayrshire" }, { "crad_id": "863", "country": "Scotland", "region": "Central Scotland", "area": "Greater Falkirk", "district": "Airth" } ] |
Webhook
The suggested method for populating a website with content from BDP is to pull the data on page load, rather than store it locally. If storing data locally, it is recommended that a full GET of property data is pulled at least once a day to avoid data inconsistencies if webhook calls are missed.
A Webhook Url can be stored in the configuration section of BDP. When a new order is initiated from BDP, a simple get request is made to the Webhook Url containing an id parameter. A typical rest client would listen for a notification, when received, it will access the API and request data for the given id.
A typical Webhook Notification: http://yourdomain.com/notification.php?id=123456
This can be used to prompt a get request for updated data on a given property.
Pulling Images from BDP
The URL for each image in BDP appears in the API at full size. Images can be resized by adding
the following parameters to the query string of the image:
- W – setting the width (height scales automatically unless set)
- H – setting the height (width scales automatically unless set)
- MXD – setting a maximum dimension, an example might be setting an image inside a box
- Nogzip – stops the image from being sent gzipped – we recommend using gzipping to streamline delivery as much as possible.
PUT Request (capturing leads)
PUT /request/
This method is used for creating viewing requests, enquiries, home report requests and for submitting new applicants to a mailing list.
The parameter ‘actionTime’ sets the time for an appointment – used in the case of a viewing or valuation request.
The parameter ‘viewingRequested’ initiates a viewing in BDP when this value is set to true.
The parameter ‘hrRequest’ initiates a home report request in BDP when this value is set to true.
The parameter ‘sendOtherData’ ensures that the applicant is subscribed to the mailing list in BDP and can receive matching emails.
The parameter ‘enquiryRequest’ initiates a standard enquiry when set to true. This can then be manually converted into a viewing via the UI.
PUT /request/ – Example of a Property Mailing List Sign-Up request
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
{ "propertyId": 0, "createdDate": "2017-09-13T09:55:38", "actionTime": "2017-09-13T09:55:38", "viewingRequested": false, "hrRequest": false, "sendOtherData": true, "message": "Mailing List request.", "contactData": { "title": "Mr", "firstName": "James", "lastName": "Bond", "salutation": "Mr. Bond", "tel1": "01234 567 890", "mobile": "01234 56789, "houseNo": "3", "streetName": "High Road", "addrL2": "Chelsea", "town": "London", "postcode": "SW10 0AJ", "email": "test@bdphq.com" }, "buyingData": { "transType": "sale", "minPrice": 0.0, "maxPrice": 200000.0, "bedRoomsMin": 1, "bedRoomsMax": 2, "districts": [ "Edinburgh City Centre", "Edinburgh East", "Edinburgh North", "Edinburgh North West", "Edinburgh South", "Edinburgh South West", "Edinburgh West" ], "propertyTypes": [ "Flat" ], "keywords": "2nd floor" } } |
PUT /request/ – Viewing Request
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "propertyId": 89657, "createdDate": "2017-02-14T12:20:59", "viewingRequested": true, "hrRequest": false, "sendOtherData": true, "message": "Viewing Requested - Preferred time: Afternoon", "contactData": { "title": "Ms", "firstName": "Sharon", "lastName": "Smith", "salutation": "", "tel1": "01234 56789", "mobile": "", "houseNo": "22", "streetName": "Some Steet", "addrL2": "", "town": "Aberdeen", "postcode": "AB16 7AP", "email": "test@bdphq.com" }, "buyingData": null } |
PUT /request/ – Home Report Request
1 2 3 4 5 6 7 8 9 10 11 12 |
{ "propertyId": 85682, "createdDate": "2017-09-13T09:55:38", "hrRequest": true, "message": "Home report please", "contactData": { "firstName": "Dave", "lastName": "Smith", "tel1": "01234 567 890", "email": "test@bdphq.com" } } |
PUT /request – Valuation Request
This will add the property to BDP with a blank status and create an unconfirmed calendar appointment at the time of creation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
{ "message": "I would like a valuation please", "createdDate": "2017-11-22T12:20:59", "actionTime": "2017-11-22T12:20:59", "valuationRequested": true, "propertyData": { "houseNo": "79", "streetName": "Lothian Road", "town": "Edinburgh", "postcode": "EH39AW" }, "contactData": { "firstName": "John", "lastName": "Smith", "tel1": "01234 567 890", "email": "jsmith@email.com" } } |
PUT /request – Enquiry Request
This will add an enquiry which will appear in the Enquiries (web) section.
1 2 3 4 5 6 7 8 9 10 11 12 |
{ "propertyId": 121937, "createdDate": "2017-09-13T09:55:38", "enquiryRequest": true, "message": "I would like to request a viewing, please.", "contactData": { "firstName": "Mary", "lastName": "Poppins", "tel1": "0123456798", "email": "mary.poppins@example.com" } } |