Get a paged list of existing supplier contracts, optionally filtered to the given parameters.
Get supplier contracts filtered and paged (POST)
This endpoint retrieves a paged list of existing, finalised supplier contracts, optionally filtered by owner, supplier, dates or renewal terms.
A supplier contract covers agreements with a supplier, for example the regular servicing of heating and ventilation systems in rental properties.
A developer calls this endpoint to browse or search multiple finalised supplier contracts at once, rather than retrieving a single known contract.
Request Fields
Field | Type | Required | Description |
|---|---|---|---|
paging.pageSize | integer (int32) | No | The number of results to return per page. Minimum 1, maximum 1000. |
paging.pageNumber | integer (int32) | No | The page of results to return. Minimum 1, maximum 9999. |
sorting.columnName | string | No | The name of the field to sort the results by, for example name. |
sorting.order | integer (int32) | No | The sort direction for the field named in sorting.columnName. Allowed values: 0 (ascending), 1 (descending). |
filter.externalIdentifier | string | No | Filters on the identifier of the contract within the system of the requesting party. This identifier is not generated by Bloxs. |
filter.reference | string | No | Filters on the reference of the contract as generated by Bloxs. |
filter.ownerReference | string | No | Filters on the reference of the owner of the real estate object covered by the contract. |
filter.relationReference | string | No | Filters on the reference of the supplier the contract belongs to. This is the same relation reference used across persons, organisations, suppliers, estate agents, financiers and owners in Bloxs. |
filter.startDate.from | string (date-time) | No | Lower bound of the contract start date range. ISO 8601 format. |
filter.startDate.to | string (date-time) | No | Upper bound of the contract start date range. ISO 8601 format. |
filter.endDate.from | string (date-time) | No | Lower bound of the contract end date range. ISO 8601 format. |
filter.endDate.to | string (date-time) | No | Upper bound of the contract end date range. ISO 8601 format. |
filter.isStarted | boolean | No | Filters on whether the contract's start date has passed. |
filter.isEnded | boolean | No | Filters on whether the contract's end date has passed. |
filter.automaticExtends | boolean | No | Filters on whether the contract is subject to automatic renewal. Default value false. |
filter.noticeDate.from | string (date-time) | No | Lower bound of the range for the latest cancellation date before automatic renewal takes effect. Relevant only when automaticExtends is true. ISO 8601 format. |
filter.noticeDate.to | string (date-time) | No | Upper bound of the range for the latest cancellation date before automatic renewal takes effect. Relevant only when automaticExtends is true. ISO 8601 format. |
filter.noticePeriod | integer (int32) | No | Filters on the notice period of the contract in months. Relevant when automaticExtends is true. |
Response Fields
Field | Type | Required | Description |
|---|---|---|---|
paging.pageSize | integer (int32) | No | The number of results returned per page, echoed back from the request. |
paging.pageNumber | integer (int32) | No | The page number returned, echoed back from the request. |
sorting.columnName | string | No | The field the results were sorted by, echoed back from the request. |
sorting.order | integer (int32) | No | The sort direction applied, echoed back from the request. Allowed values: 0 (ascending), 1 (descending). |
contracts.reference | string | No | The reference of the contract as generated by Bloxs. |
contracts.externalIdentifier | string | No | The identifier of the contract within the system of the requesting party. |
contracts.ownerReference | string | No | The reference of the owner of the real estate object covered by the contract. |
contracts.relationReference | string | No | The reference of the supplier the contract belongs to. |
contracts.startDate | string (date-time) | Yes | Start date of the contract. ISO 8601 format. |
contracts.endDate | string (date-time) | No | End date of the contract. ISO 8601 format. |
contracts.isStarted | boolean | Yes | Whether the contract's start date has passed. |
contracts.isEnded | boolean | Yes | Whether the contract's end date has passed. |
contracts.automaticExtends | boolean | No | Whether the contract is subject to automatic renewal. |
contracts.noticeDate | string (date-time) | No | The latest date on which the contract can be cancelled before automatic renewal takes effect. Only relevant when automaticExtends is true. ISO 8601 format. |
contracts.noticePeriod | integer (int32) | No | Notice period of the contract in months. Relevant when automaticExtends is true. |
Ascending = 0 Descending = 1
OK
Ascending = 0 Descending = 1