Serviceaftager angiver RequestUserMetadata.RequestUserTypeIdentifier = 1 (Citizen) og RequestUserMetadata.UserIdentifier skal være borgerens CPR ved SelfBooked = true for CreateBooking. Fejl: ¤XX1 - "When SelfBooked is true, UserIdentifier has to be citizen's CPR and UserType has to be 1 - Citizen".
For en booking med metadata:
<headers>
<ActiveOrganisationHeaderType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<OrganisationTypeIdentifier xmlns="http://rep.oio.dk/ams.dk/xml/schemas/2005/09/01/">2</OrganisationTypeIdentifier>
<OrganisationCode xmlns="http://rep.oio.dk/ams.dk/xml/schemas/2005/09/01/">81</OrganisationCode>
</ActiveOrganisationHeaderType>
<RequestUserMetadataType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RequestUserStructure xmlns="http://service.bm.dk/pjaktass/2015/01/21/RequestUserStructure/">
<UserFullName>Kim Jørgensen</UserFullName>
<RequestUserTypeIdentifier xmlns="http://service.bm.dk/pjaktass/2015/01/21/RequestUserTypeIdentifierCodeList/">
<CodeListItemIdentifier xmlns="http://service.bm.dk/pjaktass/2013/06/07/CodeListBase/">1</CodeListItemIdentifier>
</RequestUserTypeIdentifier>
<UserIdentifier>1111112222</UserIdentifier>
</RequestUserStructure>
<RequestOrganisationStructure xmlns="http://service.bm.dk/pjaktass/2015/01/21/RequestOrganisationStructure/">
<OrganisationTypeIdentifier>
<CodeListItemIdentifier xmlns="http://service.bm.dk/pjaktass/2013/06/07/CodeListBase/">2</CodeListItemIdentifier>
</OrganisationTypeIdentifier>
<OrganisationCode>81</OrganisationCode>
</RequestOrganisationStructure>
<RegistrationDateTime xmlns="http://service.bm.dk/RequestUserMetadata/2015/01/21/">2019-04-30T15:06:58.9218786+02:00</RegistrationDateTime>
</RequestUserMetadataType>
</headers>
- vil vi i databasen kunne se række 2 nedenfor:
CPR | SupervisorGivenName | SupervisorSurname | SupervisorIdentifier | IsSelfBooked | AuthorityTypeId | AuthorityCode | ActiveAuthorityTypeId | ActiveAuthorityCode | RequestUserID | RequestUserTypeID | RequestUserFullname | RequestUserEmail |
---|---|---|---|---|---|---|---|---|---|---|---|---|
101540022 | Visma - Kim Jørgensen | Visma - Kim Jørgensen | CVR:55568510-RID:9100000000173 | 0 | 2 | 81 | 2 | 81 | CVR:55568510-RID:9100000000173 | 2 | Visma - Kim Jørgensen | NULL |
101540022 | Visma - Kim Jørgensen | Visma - Kim Jørgensen | CVR:55568510-RID:9100000000173 | 1 | 2 | 81 | 2 | 81 | 1111112222 | 1 | Kim Jørgensen | NULL |