客户API / 获取某个客户详细信息
客户API / 获取某个客户详细信息
发布日期:2017-10-27
浏览次数:1015
1.1 说明
| 路径 | http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers/{id} |
| 方法 | GET/POST |
| 说明 | 根据客户的ID,获得客户的详细信息。包含用户系统的自定义字段以及订单信息。 |
1.2 参数
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": "" } }
} |
