更新顾客信息
PUT /openapi/2021-08/customers/{id}
权限:write_customers
REST参数
参数名 | 说明 | 必填 | 类型 | 值可能性 | 限制 | 示例 |
id | 顾客ID | 是 | [string] | 1 |
Body参数
参数名 | 说明 | 必填 | 类型 | 值可能性 | 限制 | 示例 |
last_name | 姓 | 否 | [string] | W | ||
first_name | 名 | 否 | [string] | See | ||
phone | 联系电话 | 否 | [string] | MaxLength:20 | 210 2345 5555 | |
subscribed | 是否订阅 | 否 | [string] | 1 / 0 | 1 |
示例响应内容
{
"ID": 177,
"user_login": "test@test.com",
"user_nickname": "See",
"user_email": "test@test.com",
"user_registered": "2021-08-13 20:29:37",
"user_status": 2,
"display_name": "See W",
"first_name": "See",
"last_name": "W",
"phone": "210 2345 6789",
"type": "unregistered",
"country": "CN",
"subscribed": false,
"address_book": [
{
"first_name": "See",
"last_name": "W",
"city": "City",
"address_1": "Back Street",
"address_2": "No.123",
"country": "CN",
"state": "State",
"postcode": "350000",
"phone": "210 2345 6789",
"state_name": "State Name",
"default": true,
"id": "611b580559d22"
}
],
"billing_address": {
"country": "CN",
"first_name": "See",
"last_name": "W",
"city": "City",
"address_1": "Back Street",
"address_2": "No.123",
"state": "State",
"postcode": "350000",
"phone": "210 2345 6789",
"state_name": "State Name"
},
"shipping_address": {
"first_name": "See",
"last_name": "W",
"city": "City",
"address_1": "Back Street",
"address_2": "No.123",
"country": "CN",
"state": "State",
"postcode": "350000",
"phone": "210 2345 6789",
"state_name": "State Name"
},
"order_count": "4",
"order_total": "769.51",
"billing_country": null
}
Last updated