客户API / 查询客户
客户API / 查询客户
发布日期:2017-10-27
浏览次数:1232
1.1 说明
| 路径 | http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers |
| 方法 | GET/POST |
| 说明 | 根据查询条件,获得商品列表。 |
1.2 参数
| 名称 | 必须 | 类型 | 描述 |
| filter[] | No | array | 过滤器。使用方法请点这里。 |
| filter[limit] | No | int | 一次查询返回的商品数量,默认是10。有效范围是1到1000。 |
| page | No | int | 当前查询的页数,和filter[limit]配合使用。用来实现分页查询。 |
1.3 返回结果
| 正确结果 |
| 返回格式:JSON |
| { "customers": [ { "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": "" } } ] } |
