maykinmedia / open-klant

Registratiecomponent voor de opslag en ontsluiting van klantgegevens volgens de Klantinteracties API-specificatie.
Other
2 stars 3 forks source link

Expand DigitaalAdres for klanten contacten and betrokkenen #212

Open hsiliev opened 3 months ago

hsiliev commented 3 months ago

Thema / Theme

Klantinteracties API

Omschrijving / Description

We need only a few details of the data such as DigitaalAdres. To get email and phone, however we have to do multiple requests to the OpenKlant 2.1 API as this is not expand-ed neither in klanten contacten nor in betrokkenen

Toegevoegde waarde / Added value

Less requests to OpenKlant Usage of already established mechanism with expand

Aanvullende opmerkingen / Additional context

We do have BSN or vestigingsnummer and want to enrich our data with information from OpenKlant. So we do query for nummer and want to get the phone and email of the entity.

hsiliev commented 3 months ago

This can be worked around using expand for Partij with betrokkenen,betrokkenen.hadKlantcontact,digitaleAdressen

The above feature request does not make much sense if primary search parameters (as in ZAC) are BSN and Vestigingsnummer

joeribekker commented 1 month ago

@hsiliev I don't see the use case to expand partij all the way to betrokkene? DigitaleAdressen seems only relevant when expanding Partij or Betrokkene. However, for a Betrokkene, you can not search on BSN as these are non-authentic records.

hsiliev commented 1 month ago

We resorted to expanding Partij in our research to get to the email&phone data of the initiator. We need to scan all Betrokkene records, find the initiator and get its phone & email.