The Calcasa API is used to connect to Calcasa provided services. This is the first production version of the service
Clients should at all times be tolerant to the following:
- Extra fields in responses
- Empty or hidden fields in responses
- Extra values in enumerations
- Unexpected error responses in the form of Problem Details
This API is documented in OpenAPI format version 3 you can use tools like the OpenAPI Generator to generate API clients for for example the languages we don't provide a pre-built client for. This is documented here.
- Add
DeelWaarderingWebhookPayload
model. - Use of strings for CBS codes.
- Add
buurtCode
field toCbsIndeling
model. - Allow for string input for endpoint
buurt
.
- Add
- Add UserAgent header to callback requests with format: CalcasaPublicAPI/
<version>
- Add
geldverstrekker
field to theCallbackInschrijving
model. - Add support for mTLS on the callback service.
- By default when requested by the target server the public CA signed TLS certificate with the appropriate domain as Common Name will be offered as the client certificate.
- Public TLS Certificates rotate every couple of months.
- Change a couple of
date-time
fields that only contained a date to puredate
fields. This might result is a different type in the generated clients and the service-side validation will be more strict. Times included in values will no longer be silently dropped, but will generate an error.- Change
Modeldata
modelwaardebepalingsdatum
field to typedate
in OpenAPI spec. - Change
Bestemmingsdata
modeldatumBestemmingplan
field to typedate
in OpenAPI spec. - Change
Bodemdata
modeldatumLaatsteOnderzoek
field to typedate
in OpenAPI spec. - Change
Referentieobject
modelverkoopdatum
field to typedate
in OpenAPI spec. - Change
VorigeVerkoop
modelverkoopdatum
field to typedate
in OpenAPI spec. - Change
waarderingInputParameters
modelpeildatum
field to typedate
in OpenAPI spec. This is an input field and will now require a date without a time.
- Change
- Add
desktopTaxatieHerwaardering
product to enumerationProductType
. - The service no longer returns CORS headers.
- Actions now correctly report the 'application/problem+json' Content-Type in the documentation for the
HTTP 422 Unprocessable Entity
responses. - Added
energielabelData
field toObjectdata
model to contain the extra information about the energy label. - The OpenAPI spec generation was changed slightly and thus the generated and published clients might be affected. There might be some slight breaking changes at compile time, but the functionality remains the same.
- For example for C# and PHP
AdresInfoAdres
is now just covered byAdres
- Likewise for the
Omgevingsdata*
models that are now all covered byGebiedsdata
- For a lot of the
Waardering*
models they are now using the correct model names, likeWaarderingModel
->Modeldata
- For example for C# and PHP
- Add
externeReferentie
field to theCallbackInschrijving
andWaarderingWebhookPayload
models.
- Add support for managing
CallbackSubscription
's, this allows you to subscribe to callbacks for valuations that were not created with your API client.GET /v1/callbacks/inschrijvingen
POST /v1/callbacks/inschrijvingen
GET /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}
DELETE /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}
- Add
taxateurnaam
field to theTaxatiedata
model. - Callback URIs should now end in
/
not just contain it to help stop common errors (ending in=
is also still allowed when using a query string). - Updating configuration in the
POST /v1/configuratie/callbacks
endpoint now clears stored but decommissioned versions from the configuration object. - Add
klantkenmerk
to theWaarderingInputParameters
andWaardering
models.
- Added support for the OAuth 2.0 authorization code flow for use of the API with user accounts.
- Add
bouweenheid
toFunderingSoortBron
enumeration.
- Added
ltvTeHoogOverbrugging
value to theBusinessRulesCode
enumeration.
- Fix the schema for
Operation
value
field for the benefit of the PHP and Python code generators, these will now correctly support any value type.
- Added proper Content-Disposition headers to the
GET /v1/rapporten/{id}
andGET /v1/facturen/{id}
endpoints with the correct filename. - Fix Mime Types for the
POST /v1/configuratie/callbacks
endpoint to only acceptapplication/json
. - Fix C# API client to correctly use the
application/json-patch+json
content type in requests that require it. - Fix C# client's
FileParameter
type correct handling of response headers likeContent-Disposition
andContent-Type
. - Removed C# client's useless implementation of
IValidatableObject
. - Fix Python client's internal namespace name being illegal
calcasa-api
->calcasa.api
.
- Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for
PATCH /v1/waarderingen/{id}
.
- Fixed response type for
GET /v1/geldverstrekkers/{productType}
endpoint.
- Added
GET /v1/geldverstrekkers/{productType}
endpoint. - Restored all
ProblemDetails
models.
- Added
isErfpacht
toWaarderingInputParameters
. - Cleaned up serialization of null values, they should no longer appear in the output.
- Added extra clarification to the documentation pertaining to the
WaarderingInputParameters
and which fields are required for the different input parameter combinations.
- Fixed
GET /api/v1/bodem/{id}
endpoint path parameter description, query parameter was never meant to be there.
- Clarified the documentation pertaining to the
WaarderingInputParameters
and which fields are required for the different product types.
- Dates are now serialized in the ISO date-only format
yyyy-MM-dd
to stop any confusion around timezones and are all assumed to be in UTC.peildatum
inWaarderingsInputParameters
datum_bestemmingplan
inBestemmingsdata
datum_laatste_onderzoek
inBodemdata
verkoopdatum
inReferentieobject
verkoopdatum
inVorigeVerkoop
waardebepalingsdatum
inModeldata
- Reintroduced the
WaarderingWebhookPayload
model that was omitted.
- Patching the status of a
Waardering
object will now immediatly reflect its new status in the response object.
- Initial release of
v1
based onv0.0.6
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
Authentication is done via OAuth2 and the client credentials grant type.
- API version
v0
was removed from service.
- Mark
v0
as officially deprecated. No further versions will be released. Every implementation should move tov1
- Added extra field
peildatum
to theWaarderingInputParameters
model.
- Updated all reported OAuth2 scopes and reduced the superflous scope information on each endpoint.
- Added per square meter developments to the
WaarderingOntwikkeling
object (fields with thePerVierkantemeter
suffix).
- Added callback update and read endpoints and models.
- Updated documentation.
- Renamed /fundering endpoint to /funderingen to be more in line with other endpoints
- Renamed
HerstelType
toFunderingHerstelType
. - Added
FunderingType
values.
- Adjusted OpenAPI Spec generation to fix some issues with certain generators. This also means that the nullable nature of certain fields is now correctly represented. Please refer to the Generation article for more information, the config files were updated aswell.
- Added
Status
andTaxatiedatum
toTaxatiedata
model.
- Renamed
id
field inAdresInfo
model tobagNummeraanduidingId
. - Added
GET /v0/fundering/{id}
endpoint with corresponding models. - Changed HTTP response code for the
BusinessRulesProblemDetails
error return type ofPOST /v0/waardering
from422 Unprocessable Entity
to406 Not Acceptable
to fix a duplicate.
- Added
taxatie
field toWaardering
model. - Added
Taxatiedata
model containing thetaxatieorganisatie
field for desktop valuations.
- Added
aangemaakt
timestamp field toWaardering
model. - Added
WaarderingZoekParameters
model to replaceWaarderingInputParameters
in thePOST /v0/waarderingen/zoeken
endpoint. - Split
Omgevingsdata
model into a set of separateGebiedsdata
models that also contain extra statistics. - Added
bijzonderheden
field toVorigeVerkoop
model. - Renamed
ReferentieBijzonderheden
model toVerkoopBijzonderheden
.
- Initial release of
v0
For more information, please visit https://www.calcasa.nl/contact.
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/calcasa/api/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
$config = Calcasa\Api\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth
$config = Calcasa\Api\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Calcasa\Api\Api\AdressenApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$bagNummeraanduidingId = 56; // int | Een BAG Nummeraanduiding ID om een adres te specificeren.
try {
$result = $apiInstance->getAdres($bagNummeraanduidingId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdressenApi->getAdres: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.calcasa.nl
Class | Method | HTTP request | Description |
---|---|---|---|
AdressenApi | getAdres | GET /api/v1/adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id. |
AdressenApi | searchAdres | POST /api/v1/adressen/zoeken | Zoek adres info op basis van het gegeven adres. |
BestemmingsplannenApi | getBestemmingById | GET /api/v1/bestemmingsplannen/{bagNummeraanduidingId} | Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID). |
BodemApi | getBodemById | GET /api/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). |
BuurtApi | getBuurt | GET /api/v1/buurt/{buurtCode} | Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is. |
CallbacksApi | addOrUpdateCallbackSubscription | POST /api/v1/callbacks/inschrijvingen | Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres. |
CallbacksApi | deleteNotificationSubscription | DELETE /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker. |
CallbacksApi | getNotificationSubscription | GET /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker. |
CallbacksApi | getNotificationSubscriptions | GET /api/v1/callbacks/inschrijvingen | Haal de callback inschrijvingen binnen voor deze client. |
ConfiguratieApi | getCallbacks | GET /api/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. |
ConfiguratieApi | updateCallbacks | POST /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. |
FacturenApi | getFactuur | GET /api/v1/facturen/{id} | Factuur op basis van een waardering Id. |
FotosApi | getFoto | GET /api/v1/fotos/{id} | Foto op basis van een foto Id. |
FunderingenApi | getFunderingById | GET /api/v1/funderingen/{bagNummeraanduidingId} | Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID). |
GeldverstrekkersApi | getGeldverstrekkers | GET /api/v1/geldverstrekkers/{productType} | Alle geldverstrekkers die te gebruiken zijn voor aanvragen. |
RapportenApi | getRapport | GET /api/v1/rapporten/{id} | Rapport op basis van waardering Id. |
WaarderingenApi | createWaardering | POST /api/v1/waarderingen | Creërt een waardering. |
WaarderingenApi | getWaardering | GET /api/v1/waarderingen/{id} | Waardering op basis van Id. |
WaarderingenApi | getWaarderingOntwikkeling | GET /api/v1/waarderingen/{id}/ontwikkeling | Waardering ontwikkeling op basis van waardering Id. |
WaarderingenApi | patchWaarderingen | PATCH /api/v1/waarderingen/{id} | Patcht een waardering. |
WaarderingenApi | searchWaarderingen | POST /api/v1/waarderingen/zoeken | Zoek waardering op basis van input parameters. |
- Aanvraagdoel
- Adres
- AdresInfo
- Bestemmingsdata
- BodemStatusType
- Bodemdata
- BusinessRulesCode
- BusinessRulesProblemDetails
- Callback
- CallbackInschrijving
- CbsIndeling
- DeelWaarderingWebhookPayload
- Energielabel
- EnergielabelData
- Factuur
- Foto
- FunderingDataBron
- FunderingHerstelType
- FunderingRisico
- FunderingRisicoLabel
- FunderingSoortBron
- FunderingType
- FunderingTypering
- Funderingdata
- Gebiedsdata
- Geldverstrekker
- InvalidArgumentProblemDetails
- JsonPatchDocument
- KlantwaardeType
- Kwartaal
- Modeldata
- NotFoundProblemDetails
- Notitie
- Notities
- Objectdata
- Omgevingsdata
- Operation
- OperationType
- PermissionsDeniedProblemDetails
- ProblemDetails
- ProductType
- Rapport
- Referentieobject
- ResourceExhaustedProblemDetails
- Taxatiedata
- Taxatiestatus
- ValidationProblemDetails
- VerkoopBijzonderheden
- VorigeVerkoop
- Waardering
- WaarderingInputParameters
- WaarderingOntwikkeling
- WaarderingOntwikkelingKwartaal
- WaarderingStatus
- WaarderingWebhookPayload
- WaarderingZoekParameters
- WoningType
- Type:
OAuth
- Flow:
application
- Authorization URL: ``
- Scopes:
- all: Full permissions for all areas.
- api:all: Full permissions for all areas of the public API.
- api:bestemmingsplannen:all: Full permissions for the bestemmingsplannen area of the public API.
- api:bodem:all: Full permissions for the bodem area of the public API.
- api:buurt:all: Full permissions for the buurt area of the public API.
- api:configuratie:all: Full permissions for the configuratie area of the public API.
- api:callback:all: Full permissions for the callback area of the public API.
- api:facturen:all: Full permissions for the facturen area of the public API.
- api:fotos:all: Full permissions for the fotos area of the public API.
- api:funderingen:all: Full permissions for the funderingen area of the public API.
- api:rapporten:all: Full permissions for the rapporten area of the public API.
- api:waarderingen:all: Full permissions for the waarderingen area of the public API.
- api:adressen:read: Read permissions for the adressen area of the public API.
- api:bestemmingsplannen:read: Read permissions for the bestemmingsplannen area of the public API.
- api:bodem:read: Read permissions for the bodem area of the public API.
- api:buurt:read: Read permissions for the buurt area of the public API.
- api:configuratie:read: Read permissions for the configuratie area of the public API.
- api:configuratie:write: Write permissions for the configuratie area of the public API.
- api:callback:read: Read permissions for the callback area of the public API.
- api:callback:write: Write permissions for the callback area of the public API.
- api:facturen:read: Read permissions for the facturen area of the public API.
- api:fotos:read: Read permissions for the fotos area of the public API.
- api:funderingen:read: Read permissions for the funderingen area of the public API.
- api:geldverstrekkers:read: Read permissions for the geldverstrekkers area of the public API.
- api:rapporten:read: Read permissions for the rapporten area of the public API.
- api:waarderingen:create: Create permissions for the waarderingen area of the public API.
- api:waarderingen:patch: Patch permissions for the waarderingen area of the public API.
- api:waarderingen:read: Read permissions for the waarderingen area of the public API.
- api:waarderingen:ontwikkeling: Read permissions for the ontwikkelingen endpoint in the waarderingen area of the public API.
- Type:
OAuth
- Flow:
accessCode
- Authorization URL:
https://authentication.01.staging.calcasa.nl/oauth2/v2.0/authorize
- Scopes:
- all: Full permissions for all areas.
- api:all: Full permissions for all areas of the public API.
- api:bestemmingsplannen:all: Full permissions for the bestemmingsplannen area of the public API.
- api:bodem:all: Full permissions for the bodem area of the public API.
- api:buurt:all: Full permissions for the buurt area of the public API.
- api:configuratie:all: Full permissions for the configuratie area of the public API.
- api:callback:all: Full permissions for the callback area of the public API.
- api:facturen:all: Full permissions for the facturen area of the public API.
- api:fotos:all: Full permissions for the fotos area of the public API.
- api:funderingen:all: Full permissions for the funderingen area of the public API.
- api:rapporten:all: Full permissions for the rapporten area of the public API.
- api:waarderingen:all: Full permissions for the waarderingen area of the public API.
- api:adressen:read: Read permissions for the adressen area of the public API.
- api:bestemmingsplannen:read: Read permissions for the bestemmingsplannen area of the public API.
- api:bodem:read: Read permissions for the bodem area of the public API.
- api:buurt:read: Read permissions for the buurt area of the public API.
- api:configuratie:read: Read permissions for the configuratie area of the public API.
- api:configuratie:write: Write permissions for the configuratie area of the public API.
- api:callback:read: Read permissions for the callback area of the public API.
- api:callback:write: Write permissions for the callback area of the public API.
- api:facturen:read: Read permissions for the facturen area of the public API.
- api:fotos:read: Read permissions for the fotos area of the public API.
- api:funderingen:read: Read permissions for the funderingen area of the public API.
- api:geldverstrekkers:read: Read permissions for the geldverstrekkers area of the public API.
- api:rapporten:read: Read permissions for the rapporten area of the public API.
- api:waarderingen:create: Create permissions for the waarderingen area of the public API.
- api:waarderingen:patch: Patch permissions for the waarderingen area of the public API.
- api:waarderingen:read: Read permissions for the waarderingen area of the public API.
- api:waarderingen:ontwikkeling: Read permissions for the ontwikkelingen endpoint in the waarderingen area of the public API.
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.3.1
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen