Update User
Allows you to update User details like: Name, Email, User Account Id, Stripe Customer Id, Country, etc.
We all appreciate the importance of having up to date info about Product users, especially if your use case requires their whereabouts.
Use this API to resolve & update changes to a particular User’s details.
Base URL https://api.appvirality.com
POST /saas/v1_0/updateuser
Content-Type application/json
Input i.e. Request
{ "apikey":"176502556c624614b913a62400ab4d7e", "privatekey":"8b05ee42d9c941698bbba44c00cc32d1", "userkey": "176502556c624614b913a62400ab4d7e", "email": "user@mail.com", "name": "user name", "phone":"918927266283", "useraccountid":"34", "profileimage":"http://mywebsite.com/images/profile.png", "city":"Hyderabad", "state":"Telangana", "country":"India", "stripecustomerid":"cus_AKNihkTMVas01Urc", "existinguser":false, "usertimezone":"UTC+5:30", "extrainfo":"Extra Info" }
Input Params | Description |
---|---|
apikey | API Key of the Product Get it from Dashboard >> App Details |
privatekey | Private key for API requests Get it from: Dashboard >> App Details >> Click App Settings >> Advanced |
userkey | User Key of the Product user, assigned by AppVirality – a unique identifier for every Product user recorded |
email (optional) |
Email of the user |
name (optional) |
Name of the Product user (is required to personalize the referral messages) If the name consists of special characters, then send the content in URI encoded format. |
phone (optional) |
User phone number (Digits only) |
useraccountid (optional) |
ID of the user in your Account(helps to identify users on dashboard as you do in your product) |
profileimage (optional) |
User profile picture URL (required to personalize the referral messages) |
city (optional) |
City of the User Location |
state (optional) |
State of the User Location |
country (optional) |
Country of the User Location |
stripecustomerid (optional) |
User's Stripe Customer ID |
isexistinguser (optional) |
Set this as True, if you identify the user as existing user (this is useful if you don't want to reward existing users) |
usertimezone (optional) |
Time Zone of the user |
extrainfo (optional) |
Extra information for user |
Response
{ "success": true, "message": null }
Output Params | Description |
---|---|
success | returns true on successful update |
message | Information regarding API call (if relevant) |