api/v1/customer/profile-update

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

usernameSTRINGfalse
passwordSTRINGfalse
date_of_birthDATE (YYYY-MM-DD)false
customer_sexSTRING (Male/Female)false
customer_descriptionSTRINGfalse
address_line_1STRINGfalse
address_line_2STRINGfalse
citySTRINGfalse
stateSTRINGfalse
zipSTRINGfalse
phoneSTRINGfalse
can_textINTEGERfalse
can_emailINTEGERfalse
can_mailINTEGERfalse
can_callINTEGERfalse
linked_avatar_idSTRINGfalse
file_dataFILEfalse
country_codeSTRINGfalse

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"
}