Skip to content

This api will allow you to fetch the users information who got merged.

This API call allows you to obtain some critical info about the users merged based on the same emailid. Things like user’s email, advertising ID, username, referrer code, etc. could be warranted at various points inside the app during a user’s active experience. This API offers you just that.

POSTapi.appvirality.com/v2_0/findmergedusersapplication/json

Input i.e. Request

{
"apikey":"7b808b1f969048db8463a4c60091c49b",
"privatekey":"09726325ed71465191eda4ec006d601b",
"EmailId":"test@test.com",
"userkey":"",
"UserIdInstore":""
}

Input Params

Input ParamsDescription
apikeyAPI Key of the App
Get it from Dashboard › App Details
privatekeyPrivate key for API requests
Get it from: Dashboard › App Details › Click App Settings › Scroll down to Advanced Settings
userkey
User Key for the an App user (helps you filter the users which were merged with the user)
EmailId
Email of the User (helps you filter the users which were merged with the user)
UserIdInstore
(conditional)
Store Id of the App user, updated to AppVirality - a unique identifier of the user in your App

you should provide either Userkey or Emailid.

Response:

{
"users": [
{
"userkey": "a5208a5aca6f4050918f2f2b14d2867b",
"mergekey": "aafeb4f718d643f5aeada6250066131d",
"deviceId": "00test000test066b2aa5fabfbd513",
"EmailId": "test@test.com",
"DeviceAdvertisingId": null,
"AppUserName": "MYT",
"FriendReferralCode": null,
"ReferralCode": "2eyp",
"UserIdInstore": "1367",
"updatedemails": [
{
"emailid": "test@test.com",
"updateddate": "9-Dec-2016 7:30:17"
}
]
},
{
"userkey": "ddf79caa9b2d4637be9a724748c61383",
"mergekey": "aafeb4f718d643f5aeada6250066131d",
"deviceId": "00test000test05aed9248ede58ae3",
"EmailId": "test@test.com",
"DeviceAdvertisingId": null,
"AppUserName": "MYT",
"FriendReferralCode": "2f37",
"ReferralCode": "2f5z",
"UserIdInstore": "1367",
"updatedemails": [
{
"emailid": "test@test.com",
"updateddate": "9-Dec-2016 7:30:17"
}
]
}
],
"success": true,
"statuscode": 1,
"message": "Success"
}

NOTE

~ preceding a parameter e.g. ~ updateddate, implies the param is a nested/subset of the most recent non-tilde param, i.e. in this case updateddate is a sub/nested param under updatedemails

Response Params

Output ParamsDescription
userkeyUser Key for the an App user, assigned by AppVirality - a unique identifier for every App User recorded
MergekeyKey to identify the merged users
deviceIdUnique ID assigned to a device
EmailIdEmail of the User
DeviceAdvertisingIdAdvertising ID assigned to Device by Google/Apple
AppUserNameName of the User
FriendReferralCodeFriend’s Referral Code i.e. the Referral code punched in by the user during his signup process
ReferralCodeUser’s Referral Code
UserIdInstoreID of the user in your App
(helps to identify users on dashboard as you do in your app)
successCall Success Response (true/false)
messageInformation regarding API call (if relevant)
status codecode based on status of the API call
updatedemailsList of merged emails
~ EmailIdMerged Email
~ updateddateDate of Email first update to AppVirality

Status codes which you will see while using Find Merged Users API

Status codes and description for API responses

Status CodeDescription
0No data found for the search criteria
1Success
2Invalid User Key
5Invalid StoreID or EmailID