客户API / 编辑客户

发布日期:2017-10-27
浏览次数:831

1.1 说明

路径http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers/update
方法POST
说明根据用户ID,修改用户的一些属性,用户名不可以修改,但用户邮箱可以修改。

1.2 参数

名称必须类型描述
idyesint需要修改用户的ID
first_nameNostring用户的名字
last_nameNostring用户姓氏
emailNostring新的用户邮箱
passwordNostring密码,如果不填则随机生成密码

1.3 返回结果

正确结果
返回格式: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": ""
}
}
}

1.4 相关API

登录后即可发表评论,立即登录.

API相关文档