1.1 Description

 
pathhttp://www.your_website_domain.com/FeiEditor/api_v1/shop/customers/update
methodPOST
illustrateAccording to the user ID, modify some attributes of the user. The user name cannot be modified, but the user mailbox can be modified.
  

1.2 parameters

 
namemusttypedescribe
idyesintUser ID needs to be changed
first_namenostringuser's first name
last_namenostringuser last name
emailnostringnew user email
passwordnostringPassword, if not filled, the password will be randomly generated
  

1.3 return result

 
correct result
Return format: JSON
{
  "customer":
    {
      "id": 1,
      "created_at": "2017-10-10T18:00:00Z",
      "email": "demo@api.com",
      "first_name": "Demo",
      "last_name ": "User",
      "username": "demouser01",
      "last_order_id": 123,
      "last_order_date": "2017-10-10T18:00:00Z",
      "orders_count": 10,
      "total_spent": "1034.58",
      "avatar_url": "",
      "billing_address": {
        "first_name": "",
        "last_name": "",
        "company": "",
        "address_1": "",
        "address_2": "",
        "city": "",
        "state": "",
        "postcode": "",
        "country": "",
        "email": "",
        "phone": ""
      },
      "shipping_address": {
        "first_name": "",
        "last_name": "",
        "company " : "",
        "address_1": "",
        "address_2": "",
        "city": "",
        "state": "",
        "postcode": "",
        "country": ""
      } }
    }