[PREVIEW] Get a private rent contract

Prev Next
Get
/api/v1/contracts/privaterent

[PREVIEW] Get an existing private rent contract. Either reference or externalIdentifier must have a value. If both are given, both are used for retrieving the private rent contract.

Description

Retrieve the information currently known in the Bloxs database about a certain finalized private rent contract. Either reference or externalIdentifier must have a value. Please note that if both identifiers are given, both must match; otherwise, an error message will be generated. It is recommended that the user utilizes only one identifier, with a preference for the reference.

Private rent contracts concern the finalized contracts, which is essentially different from the 'ConceptPrivateRent' endpoints which relate to the concept contracts. Private rent contracts pertains to contracts concerning real estate objects in the private sector. 

Please note that it is currently not possible to finalize a contract through the Bloxs api's. If a private rent contract is created using the POST operation, it will first need to be finalized in the Bloxs application before it can be retrieved through this GET operation.

Use Case

Upon finalizing the contract in the Bloxs application, the user wants to retrieve the most important details of the contract in a third party application.

Request fields

The request contains the following fields:

FieldDescription
referenceThe reference of the contract as generated by Bloxs.
externalIdentifierThe unique identifier of the contract within the system of the requesting party. This identifier is not generated by the Bloxs system.

Response fields

The 200 response contains the fields in the table below. For the GET operation it gives an up-to-date insight in the data that is currently registered in Bloxs.

FieldDescription
referenceThe reference of the contract as generated by Bloxs.
externalIdentifierThe unique identifier of the contract within the system of the requesting party. This identifier is not generated by the Bloxs system.
ownerReferenceThis pertains to the reference of the owner of the object which is subject of the contract. Please note, a reference must be included here.
relationReferenceThis pertains to the primary tenant who is financially responsible. Please note, a reference must be included here.
extraRelationReferences
startDate
endDate


automaticExtends
noticeDate
noticePeriod

lastModified


Security
HTTP
Type Bearer

Please enter a valid token

Query parameters
reference
string

The internal identifier of the model (i.e. Reference, Code, Name, depends on model).

externalIdentifier
string

The external API identifier of the model.

Responses
200

OK

object
reference
string | null
Min length0
Max length100
externalIdentifier
string | null
Min length0
Max length100
ownerReference
string | null
Min length0
Max length100
relationReference
string | null
Min length0
Max length100
extraRelationReferences
string | null
Min length0
Max length100
startDate
string (date-time)
endDate
string (date-time) | null
automaticExtends
boolean
noticeDate
string (date-time) | null
noticePeriod
integer (int32) | null
lastModified
string (date-time)
404

The requested private rent contract was not found.