POST
api/v1/customer/profile-update
This API method will allow you to update profile using the following parameters.
Note: The response will return in the same format as seen in api/v1/customer/details
Request Parameters
| username | STRING | false |
| password | STRING | false |
| date_of_birth | DATE (YYYY-MM-DD) | false |
| customer_sex | STRING (Male/Female) | false |
| customer_description | STRING | false |
| address_line_1 | STRING | false |
| address_line_2 | STRING | false |
| city | STRING | false |
| state | STRING | false |
| zip | STRING | false |
| phone | STRING | false |
| can_text | INTEGER | false |
| can_email | INTEGER | false |
| can_mail | INTEGER | false |
| can_call | INTEGER | false |
| linked_avatar_id | STRING | false |
| file_data | FILE | false |
| country_code | STRING | false |
Sample Response
{
"status": true,
"item": {
"id": "LZWBJx0PmYkEwjGdr2vO",
"scan_id": "",
"first_name": "John",
"last_name": "Smith",
"date_of_birth": "2017-01-13",
"address_line_1": "-",
"address_line_2": "-",
"city": "-",
"state": "-",
"zip": "-",
"customer_description": "Test Description",
"can_text": 0,
"can_email": 0,
"can_mail": 0,
"can_call": 0,
"phone": "111-111-1111",
"stores_count": 1,
"balance": 217700,
"avatar": "http:\/\/controlcenter.ftx\/customer\/images\/default-avatars\/6?v=1530815283",
"campaigns_total": 2,
"campaigns_registered": 1,
"androidPermissionConsent": false,
"iosPermissionConsent": false,
"iosDataConsent": true,
"androidDataConsent": true,
"privacyConsent": true,
"termsConsent": true,
"isDobVerified": true,
"isDlVerified": true
}
}{
"status": false,
"errorCode": "VALIDATION_EXCEPTION",
"message": "Invalid Linked Avatar ID"
}{
"status": false,
"message": "You must have at least one parameter to update"
}