Update Profile
URL:
Method: POST
https://saasapi.igainapp.in/v1/updateprofile.php/updateprofile
Request Parameters
| Parameter | Type | Position | # | Description |
|---|---|---|---|---|
| Authorization | string |
Header |
Required |
Authorization is the Enrypted Company API KEY |
| membershipid | string |
Body |
Required |
Membership ID |
| fname | string |
Body |
Optional |
First Name |
| lname | string |
Body |
Optional |
Last Name |
string |
Body |
Required |
Email Address | |
| phoneno | integer |
Body |
Required |
Phone number without country code |
| dob | date |
Body |
Optional |
Date of Birth |
| anniversarydate | date |
Body |
Optional |
Anniversary Date |
| sex | string |
Body |
Optional |
Gender |
| married | string |
Body |
Optional |
Marital Status |
| address1 | string |
Body |
Optional |
Address Line 1 |
| address2 | string |
Body |
Optional |
Address Line 2 |
| address3 | string |
Body |
Optional |
Address Line 3 |
| address4 | string |
Body |
Optional |
Address Line 4 |
| city | integer |
Body |
Optional |
City ID |
| state | integer |
Body |
Optional |
State ID |
| country | integer |
Body |
Optional |
Country ID |
| pincode | integer |
Body |
Optional |
Pincode |
Sample Request Body
{
"membershipid": "2019000000190",
"profile_data":{
"fname":"Test",
"lname":"Member",
"email": "test@example.com",
"phoneno": "1234567890",
"dob":"2021-08-20",
"sex":"Male",
"married":"Single",
"anniversarydate":"2021-08-20"
},
"address_data":{
"address1": "address1",
"address2": "address2",
"address3":"address3",
"address4":"address4",
"city":"12",
"state":"13",
"country":"14",
"pincode":"100001"
}
}
Sample Request Response
{
"errorcode": 1001,
"message": "Ok"
}
Error Codes
| Error Code | Description |
|---|---|
| 2003 | Unable to locate membership id |
| 2030 | Email address already exist |
| 3117 | Unable to process at this time. Please try again |
| 3121 | Required field(s) is missing or empty |
| 3123 | Phone number is not valid |
| 1001 | OK |