Set a User's QR code

setQR(p_companyID, p_wsAltUserId)

 

You can use this endpoint to generate a new QR code for one user from our software. The QR code is always a 32 char lenght random string, consisting of the following characters: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

Parameters

Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_wsAltUserId string Yes The wsAltUserId of the user from the EasySecure database

Return values

ERROR_UNKNOWN_SECURITY_HASH – no company found based on the security hash used as parameter

ERROR_NO_SECURITY_HASH – no security hash has been provided when the call was made

NO_WS_ALT_USER_ID_INFOFIELD_SET - the company doens't have the wsAltUserId infofield set on which we can check if the user exists.

NO_ID_RECEIVED - in case no p_wsAltUserId is provided.

NO_INFO_FOUND_WITH_WSALTUSERID - there is no info data in EasySecure which correspondes to the p_wsAltUserId supplied

NO_USER_FOUND_WITH_WSALTUSERID - there is no User which identifies with the supplied p_wsAltUserId

In case of success, the newly generated QR code of the user is returned, as a string. This must be used to create the QR image.

Sample

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uen="uen:esws">
<soapenv:Header/>
<soapenv:Body>
<uen:Esws.setQR soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aKWqVu0</p_companyID>
<p_wsAltUserId xsi:type="xsd:string">1</p_wsAltUserId>
</uen:Esws.setQR>
</soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:Esws.setQRResponse xmlns:ns1="uen:esws">
<return xsi:type="xsd:string">cVRLYpk9uq5g6WZbzHrC2Kx7Sd3nXiQy</return>
</ns1:Esws.setQRResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>