Query Users Data

The API provides the function of query user information who under the integrator account.

Source Code Sample

JSONObject jsonData = new JSONObject();
JSONObject user1 = new JSONObject();

user1.put("apiadduser1@yopmail.com", email);
jsonData.put("q", user1);
	      
data = Hex.encodeHexString(Utils.aesEcbPkcs5PaddingEncrypt(jsonData.toString(),apiSecret));

mac = Utils.calculateMac(data,apiSecret);

Request Body Creation

{
"q":{
    	"email": "apiadduser1@yopmail.com"
     }
}

Example of Request

https://<domain>/signserver/v1/account/queryusers?accesstoken=2bb0417a-a409-4c80-8d9b-3b138e04f8&data=1dc5c5d3b8d22178acf393334400325c5ec5a6a4f21352ef5dbb5eadd96ae1d1e4872&mac=97081bf511393cad45b0bebde8543e3d189a0ff219fe2ad9c0f42667723301f5

Expected Response

{
    "users": {
        "apiadduser1@yopmail.com": {
            "ekycverified": false,
            "phonesn": "+60112233445",
            "roletype": 0,
            "state": -1,
            "email": "apiadduser1@yopmail.com",
            "name": "apiuser"},
    }
}

How can we help?