[PREVIEW] Get a commercial rent contract

Prev Next
Get
/api/v1/contracts/commercialrent

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

Description

Retrieve the information currently known in the Bloxs database about a certain finalised commercial 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.

Commercial rent contracts concern the finalised contracts, which is essentially different from the 'ConceptCommercialRent' endpoints which relate to the concept contracts. Commercial rent contracts pertains to contracts concerning stores, offices, and commercial spaces (commercial real estate).

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

Use Case

Upon finalising 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 assigned by Bloxs must be included here.
relationReferenceThis pertains to the primary tenant who is financially responsible. Please note, a reference assigned by Bloxs must be included here.
extraRelationReferencesThis pertains to co-tenants. Please note, a reference assigned by Bloxs must be included here
startDateStart date of the contract.
endDate

End date of the contract. This may be left blank; otherwise, please fill in the contract end date. This can also be the date on which the contract is automatically renewed.

automaticExtendsThis field indicates whether the contract is subject to automatic renewal. The default value is "false."
noticeDateThe latest date by which the contract can be cancelled, before an automatic extension is activated. This is true only if 'automaticExtends' = true. This date is automatically calculated by Bloxs based on the 'noticePeriod' & 'endDate' of the contract. If 'endDate' is left empty,  noticeDate will not be calculated and therefore be left empty.
noticePeriod
Notice period of the contract specified in months. This is relevant if automatic extension applies to this contract (automaticExtends = true).
lastModifiedTimestamp of the last modification in Bloxs.


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 commercial rent contract was not found.