Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
2 stars 3 forks source link

Create a new endpoint for contact information of an organisation in SblBridge #442

Closed SandGrainOne closed 8 months ago

SandGrainOne commented 9 months ago

Description

The official contact information for an organisation is currently maintained and kept in Altinn 2. To access the data from Altinn 3 we need to create a new lookup endpoint in SblBridge.

The endpoint needs to use data from Register. Specifically the KoFuVi services. It should be possible to retrieve the information for multiple organisations at the time.

Tasks

General tasks

Testing

POST /register/api/organizations/contactpoints

{
"organisationNumbers":["123456", "123456"]
}

Acceptance criteria

SandGrainOne commented 8 months ago

Tested in at22. Looks like there is a bug in mapping. Instead of returning the full email address it's only returning the username part of the address.

{
    "contactPointsList": [
        {
            "organisationNumber": "312508729",
            "emailList": [
                "terje.holene"
            ],
            "mobileNumberList": []
        }
    ]
}
SandGrainOne commented 8 months ago

Tested ok