maykinmedia / open-klant

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

Fetch all klantcontacten for a BSN / vestigingsnummer #215

Closed hsiliev closed 1 month ago

hsiliev commented 1 month ago

Thema / Theme

Klantinteracties API

Omschrijving / Description

We want to be able to easily get all klantcontacten for a BSN / vestigingsnummer. At the moment it seems the way to do that is to:

  1. list all Betrokkenen for a Partij nummer
  2. list all klantcontacten for a betrokken UUID

The problem with this approach is that both requests above return paginated responses that has to be streamed or just loaded in memory. In turn this means a lot of requests and increased complexity for the client.

What we think can help here is a query parameter to klantcontacten endpoint that can do queries on Partij (not sure about the namiing but perhaps: hadBetrokkenen.wasPartij__nummer)

Toegevoegde waarde / Added value

Reduced

Aanvullende opmerkingen / Additional context

We're trying to list all interactions for a person/organization and display this in paginated dashboard. In general we're looking for contactmomenten API replacement in the current 2.1 klantinteracties API

hsiliev commented 1 month ago

This is possible using recomendations in https://github.com/maykinmedia/open-klant/issues/138

Thanks to @sytskevanhasselt for pointing this out!