Last updated

Unit Change

The Unit Change webhook triggers:

  • Unit created
  • Unit updated.

Summary

The following gives and overview of the fields in the json.

FieldDescription
typeThe type of webhook event, e.g., webhookUnitOutboundDto.
idUnique identifier for this webhook event (775e62a9-6d99-47e8-a8be-1c26f54af40a).
createdDateThe date and time the webhook was created, in array format (2024-11-28T07:55:06.892Z).
detailDto.idUnique identifier for the unit (2).
detailDto.nameName of the unit (1.1).
detailDto.bookableIndicates if the unit is bookable (true).
detailDto.inactiveIndicates if the unit is inactive (false).
detailDto.sellableFromDate from which the unit is sellable (2024-10-01).
detailDto.sellableToDate until which the unit is sellable (2025-12-31).
detailDto.occupancyFromDate from which the unit is available for occupancy (2024-10-01).
detailDto.occupancyToDate until which the unit is available for occupancy (2025-12-31).
detailDto.unitTypeNameName of the unit type (Studio).
detailDto.unitTypeTypeType of the unit (STUDIO).
detailDto.buildingIdUnique identifier for the building (2).
detailDto.buildingNameName of the building (Demo Property 1).
detailDto.addressAddress details of the unit, including street, city, postcode, and country.
detailDto.costCentreCost centre associated with the unit (001).
detailDto.shortDescriptionShort description of the unit.
detailDto.directionsDirections for the unit.
detailDto.customFieldsCustom fields related to the unit (empty in this example).
detailDto.landlordIdUnique identifier for the landlord (null if not assigned).
detailDto.landlordNameName of the landlord (null if not assigned).
detailDto.landlordEmailEmail address of the landlord (null if not assigned).
detailDto.landlordTelephoneTelephone number of the landlord (null if not assigned).
detailDto.floorFloor number where the unit is located (1).
detailDto.floorSpaceFloor space of the unit (null if not specified).
detailDto.cleanStatusClean status of the unit (CLEAN).
detailDto.lastCleanedDate and time the unit was last cleaned (2024-11-12 09:38:00).
detailDto.lastInspectedDate and time the unit was last inspected (null if not inspected).
detailDto.standardOccupancyStandard occupancy for the unit (null if not specified).
detailDto.primaryLockIdentifierIdentifier for the primary lock of the unit (null if not assigned).

Example

{
   "type":"webhookUnitOutboundDto",
   "id":"775e62a9-6d99-47e8-a8be-1c26f54af40a",
   "createdDate":[
      2024,
      11,
      28,
      7,
      55,
      6,
      892000000
   ],
   "detailDto":{
      "id":2,
      "name":"1.1",
      "bookable":true,
      "inactive":false,
      "sellableFrom":"2024-10-01",
      "sellableTo":"2025-12-31",
      "occupancyFrom":"2024-10-01",
      "occupancyTo":"2025-12-31",
      "unitTypeName":"Studio",
      "unitTypeType":"STUDIO",
      "buildingId":2,
      "buildingName":"Demo Property 1",
      "address":{
         "addressLine1":"Demo Street",
         "addressLine2":null,
         "addressLine3":null,
         "city":"London",
         "postcode":"EC4A 1ED",
         "country":"United Kingdom",
         "isoCountry2":"GB",
         "nickname":null
      },
      "costCentre":"001",
      "shortDescription":[
         {
            "":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat porttitor lacus, sit amet elementum risus tristique vitae. Aenean libero diam"
         }
      ],
      "directions":[
         {
            "":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat porttitor lacus, sit amet elementum risus tristique vitae. Aenean libero diam"
         }
      ],
      "customFields":[
         
      ],
      "landlordId":null,
      "landlordName":null,
      "landlordEmail":null,
      "landlordTelephone":null,
      "floor":1,
      "floorSpace":null,
      "cleanStatus":"CLEAN",
      "lastCleaned":"2024-11-12 09:38:00",
      "lastInspected":null,
      "standardOccupancy":null,
      "primaryLockIdentifier":null
   }
}