Office
Gets a single office by OfficeKey
Both methods are valid and return the same result: a single Office entity identified by its unique OfficeKey. The path-style is more intuitive and commonly used in RESTful APIs. The function-style follows OData conventions and may be required in certain query contexts (e.g., when the key contains special characters or is not a simple numeric ID).
<b>Path-style access: </b>/odata/v1/Office/{OfficeKey}
<b>Example: </b>/odata/v1/Office/49
<b> Function-style access: </b>/odata/v1/Office('{OfficeKey}')
<b>Example: </b>/odata/v1/Office('49')
get/odata/v1/Office/{OfficeKey}
Path parameters
OfficeKeystring required
A unique identifier for this record from the immediate source
Query parameters
$selectstring
Selects which properties to include in the response.
Response
OK (DDF.Core.Entities.Office object)
Example response
{
"@odata.context": "https://localhost:7051/odata/v1/$metadata#DDF.Core.Entities.Office",
"OfficeKey": "OfficeKey",
"OfficeMlsId": "OfficeMlsId",
"OfficeAORKey": "OfficeAORKey",
"OfficeNationalAssociationId": "OfficeNationalAssociationId",
"FranchiseNationalAssociationId": "0",
"OfficeBrokerNationalAssociationId": "OfficeBrokerNationalAssociationId",
"OfficeAddress1": "OfficeAddress1",
"OfficeAddress2": "OfficeAddress2",
"OfficeCity": "OfficeCity",
"OfficeFax": "OfficeFax",
"OfficeName": "OfficeName",
"OfficePhone": "OfficePhone",
"OfficePhoneExt": "OfficePhoneExt",
"OfficePostalCode": "OfficePostalCode",
"Media": [
{
"MediaKey": "MediaKey",
"LongDescription": "REALTOR.ca Logo",
"MediaURL": "https:///ddfcdn.realtor.ca/realtorlogo.png",
"ModificationTimestamp": "2019-08-24T14:15:22Z",
"Order": 1,
"PreferredPhotoYN": true,
"ResourceRecordId": "RealtorLogo.png",
"ResourceRecordKey": "1234",
"ResourceName": "Member",
"MediaCategory": "Photo"
}
],
"OfficeSocialMedia": [
{
"SocialMediaKey": "SocialMediaKey",
"ResourceRecordKey": "12345",
"SocialMediaType": "FaceBook",
"ModificationTimestamp": "\"2021-01-01T00:00:00.000Z\"",
"SocialMediaUrlOrId": "\"SocialMediaUrlOrId\""
}
],
"ModificationTimestamp": "\"2021-01-01T12:00:00.000Z\"",
"OriginalEntryTimestamp": "\"2021-01-01T12:00:00.000Z\"",
"OfficeType": "Real Estate",
"OfficeStateOrProvince": "Ontario",
"OfficeAOR": "Affiliate",
"OfficeStatus": "Active",
"OfficeCountry": "Canada"
}