API reference · Communities & institutions

Rental properties

GET Properties you registered

GET /rental/property

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Example

Response: GenericResponseListPropertyResponse

curl -X GET "https://api.bridgemoni.com/rental/property" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Properties retrieved successfully

POST Register a property

POST /rental/property

An assertion, graded G0 until somebody verifies it. Registering an address that is already known in the market returns the existing property rather than a duplicate, so two occupants of one block share one building.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Example

Request body: PropertyRequest · Response: GenericResponsePropertyResponse

curl -X POST "https://api.bridgemoni.com/rental/property" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "marketCode": "NG-LA",
  "propertyType": "BLOCK_OF_FLATS",
  "displayName": "Adeola Court",
  "addressReference": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
  "addressLine": "12 Adeola Odeku Street",
  "area": "Victoria Island",
  "city": "Lagos",
  "latitude": 0,
  "longitude": 0
}'

Responses

StatusWhen
200Property registered successfully
404No such market

GET One property and its units

GET /rental/property/{reference}

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: GenericResponsePropertyResponse

curl -X GET "https://api.bridgemoni.com/rental/property/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Property retrieved successfully
404No such property

POST Add a unit to a property

POST /rental/property/{reference}/unit

The unit is the lettable thing; tenancies, charges and listings attach to it. A label already on the property returns that unit.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: UnitRequest · Response: GenericResponseUnitResponse

curl -X POST "https://api.bridgemoni.com/rental/property/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/unit" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "unitLabel": "Block C Flat 4",
  "unitType": "SELF_CONTAINED",
  "bedrooms": 0,
  "bathrooms": 0,
  "furnished": true
}'

Responses

StatusWhen
200Unit added successfully
404No such property

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors