地址: http://test.birdsystem.co.uk/client/client
用途: 获取当前客户(公司) 在我公司登记的相关信息 (注意是客户,而不是用户)
使用方法: 通过在header中添加company_id和api_key, 直接向该URL发送 GET请求即可. 例如:
curl -X GET \
http://test.birdsystem.co.uk/client/client/ \
-H 'api_key: 827ccb0eea8a706c4c34a16891f84e7b' \
-H 'company_id: 2' \
-H 'content-type: application/json'
返回结果示例:
{ "total": 1, "data": [ { "client_group_id": 2, "check_percentage": null, "id": 1, "client_level_id": 1, "parent_client_id": null, "name": "Test Client 1", "contact": null, "email": "test1@test.com", "qq": "123456", "telephone": "3235235", "customer_service_company_user_id": 1, "address_line1": "Address Line 1", "address_line2": "Address Line 2", "address_line3": "Address Line 3", "city": "ShenZhen", "county": "GuangDong", "post_code": "519000", "country_iso": "CN", "create_time": "2016-01-18 08:32:03", "last_login_time": null, "next_charging_date": null, "client_support_expire_time": null, "note": null, "bulk_order_reference_field": "ID", "is_receive_notification_sms": "1", "is_receive_notification_email": "1", "is_receive_notification_qq_group": "1", "is_spontaneous": "0", "is_skip_product_check": "0", "is_ecpp_enabled": "0", "sea_container_sku_maximum": "10", "air_container_sku_maximum": "15", "express_container_sku_maximum": "15", "express_line_container_sku_maximum": "15", "status": "ACTIVE", "primary_keys": [ "id" ], "client_company-status": "ACTIVE" } ], "success": true, "moduleName": "client" } |
---|
返回字段说明
id | 系统ID | INT(10) |
client_group_id | 客户组ID | INT(10) |
check_percentage | 产品查验率 | (此字段暂未使用) |
client_level_id | 客户级别 | INT(10) |
parent_client_id | 父帐号 | (此字段暂未使用) |
name | 客户名称,一般是公司名 | VARCHAR(50) |
contact | 联系人 | VARCHAR(50) |
邮箱 | VARCHAR(40) | |
QQ号码 | VARCHAR(50) | |
telephone | 电话 | VARCHAR(50) |
address_line1 | 客户的地址1 | VARCHAR(100) |
address_line2 | 客户的地址2 | VARCHAR(100) |
address_line3 | 客户的地址3 | VARCHAR(100) |
city | 客户所在城市 | |
county | 省/郡 | |
post_code | 邮编 | |
country_iso | 国家iso编码 | |
create_time | 创建时间 | |
last_login_time | 最后一次使用时间 | (此字段暂未使用) |
next_charging_date | 下次结算时间 | (此字段暂未使用) |
status | 状态 | ENUM('INACTIVE','ACTIVE') |