Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SBL bdrige endpoint parties/byssnorgnumber doesn't include first or middle name #312

Open
SandGrainOne opened this issue Sep 25, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@SandGrainOne
Copy link
Member

SandGrainOne commented Sep 25, 2024

Description of the bug

During testing of the new partyComponentOption parameter on the nameslookup endpoint we were unable to find any cases where first name were included. The only name component being populated is the last name.

Analysing it a bit further show us that the issue is probably originating in SBL. The first and middle name components aren't being populated.

Steps To Reproduce

Tested i AT22:
POST https://platform.at22.altinn.cloud/register/api/v1/parties/nameslookup?partyComponentOption=person-name

 {
    "parties": [
        {
            "ssn": "01885298520"
        },
        {
            "ssn": "07855499058"
        }
    ]
}

Response:

{
    "partyNames": [
        {
            "ssn": "01885298520",
            "name": "BAKTANKE VÅKEN",
            "personName": {
                "lastName": "BAKTANKE"
            }
        },
        {
            "ssn": "07855499058",
            "name": "SVIGERSØNN OBSERVANT",
            "personName": {
                "lastName": "SVIGERSØNN"
            }
        }
    ]
}

Additional Information

Testing a bit further in and recreating the SBLBridge request:
POST https://at22.altinn.cloud/sblbridge/register/api/parties/byssnorgnumber

Request:

[
    "01885298520"
]

Response:

[
    {
        "PartyTypeName": 1,
        "SSN": "01885298520",
        "OrgNumber": "",
        "Person": {
            "SSN": "01885298520",
            "Name": "BAKTANKE VÅKEN",
            "FirstName": null,
            "MiddleName": null,
            "LastName": "BAKTANKE",
            "TelephoneNumber": null,
            "MobileNumber": null,
            "MailingAddress": "",
            "MailingPostalCode": null,
            "MailingPostalCity": null,
            "AddressMunicipalNumber": null,
            "AddressMunicipalName": null,
            "AddressStreetName": null,
            "AddressHouseNumber": null,
            "AddressHouseLetter": null,
            "AddressPostalCode": null,
            "AddressCity": null,
            "DateOfDeath": null
        },
        "Organization": null,
        "PartyId": 51133823,
        "PartyUUID": "0f461d5b-0bcb-4807-a0b3-d17c6a847250",
        "UnitType": null,
        "LastChangedInAltinn": "2022-03-18T14:26:35.07+01:00",
        "LastChangedInExternalRegister": null,
        "Name": "BAKTANKE VÅKEN",
        "IsDeleted": false,
        "OnlyHierarchyElementWithNoAccess": false,
        "ChildParties": null
    }
]
@SandGrainOne SandGrainOne added the kind/bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant