Every major change on a document is recorded as an event (hendelse). For monitoring a portfolio of document, events will give you a good way to handle post processing.
Note that in order to get all statuses for pantedokument sent to broker, you must ugrade to version 6 of Hendelse API.
List events
«listHendelser» returns a list of events from the given eventid (fraHendelsesId). The service takes a list of parameter to limit the result.
...
«listHendelserMedStatus» returns a list of events from the given eventID (fraHendelsesId). Attached to each event is the status of the document, as delivered in getStatus.
Migrating from version 5 to 6 of Hendelse
The only change from version 5 to 6 is that all values defined as enum
in version 5 is changed to type String
in version 6. This allows us to add additional code/status values as the standardization process continues to add new integration possibilities between the banks and the brokers. To make a resilient integration with the Hendelse API, you should not fail if you receive a new value, but rather log it and add support for it as you need.