Get a general sales contract

Prev Next
Get
/api/v1/contracts/general

Get an existing general sales contract. Either reference or externalIdentifier must have a value. If both are given, both are used for retrieving the general sales contract.

Get a general sales contract

This endpoint retrieves an existing, finalized general sales contract.

A general sales contract covers "other contracts" that are not lease contracts, for example an agreement covering maintenance, where Bloxs' user is the invoicing party.

Integrators call this endpoint to display a full overview of a specific finalized contract in a third-party application.

The contract can be identified by its internal reference, its external identifier, or both.


Request Fields

Field

Type

Required

Description

reference

string

Conditional

Internal identifier of the contract, generated by Bloxs. Either reference or externalIdentifier must be provided. If both are given, the contract must match both values. Maximum length 100 characters.

externalIdentifier

string

Conditional

External identifier of the contract, as set by the integrating system. Either reference or externalIdentifier must be provided. If both are given, the contract must match both values. Maximum length 100 characters.


Response Fields

Field

Type

Required

Description

reference

string

No

Internal identifier of the contract, generated by Bloxs. Maximum length 100 characters.

externalIdentifier

string

No

External identifier of the contract, as set by the integrating system. Maximum length 100 characters.

ownerReference

string

No

Reference of the owner of the object subject to the contract. Must be a reference assigned by Bloxs. Maximum length 100 characters.

relationReference

string

No

Reference of the primary tenant who is financially responsible for the contract. Must be a reference assigned by Bloxs. Maximum length 100 characters.

extraRelationReferences

string

No

Reference of a co-tenant on the contract. Must be a reference assigned by Bloxs. On this endpoint the field returns a single value, not a list. Maximum length 100 characters.

startDate

string (date-time)

Yes

Start date of the contract. ISO 8601 format.

endDate

string (date-time)

No

End date of the contract. Can be left empty. Also used as the date the contract is automatically renewed, when applicable. ISO 8601 format.

automaticExtends

boolean

Yes

Indicates whether the contract renews automatically. Default value is false.

noticeDate

string (date-time)

No

Latest date the contract can be cancelled before an automatic extension takes effect. Only relevant when automaticExtends is true. Calculated automatically by Bloxs from noticePeriod and endDate; left empty if endDate is empty. ISO 8601 format.

noticePeriod

integer

No

Notice period of the contract, in months. Relevant when automaticExtends is true.

lastModified

string (date-time)

Yes

Timestamp of the last modification to the contract in Bloxs. ISO 8601 format, UTC.

Security
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 general sales contract was not found.