Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

地址:   http://test.birdsystem.co.uk/client/client

 


 用途: 获取当前客户(公司) 在我公司登记的相关信息 (注意是客户,而不是用户)

获取当前客户信息

使用方法: 通过在header中添加company_id和api_key, 直接向该URL发送 GET请求即可. 例如:

...


Code Block
languagejs
themeConfluence
{
    "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) 

email

邮箱

VARCHAR(40)

qq

QQ号码

VARCHAR(50)

telephone

电话

VARCHAR(50)

address_line1

客户的地址1

VARCHAR(100)

address_line2

客户的地址2

VARCHAR(100)

address_line3

客户的地址3

VARCHAR(100)

city客户所在城市VARCHAR(50)
county省/郡VARCHAR(50)
post_code邮编VARCHAR(10)
country_iso国家iso编码VARCHAR(2)
create_time创建时间DATETIME
last_login_time最后一次使用时间(此字段未使用)
next_charging_date下次结算时间(此字段未使用)
client_support_expire_time客户扶持期限(此字段未使用)
note备注TEXT
bulk_order_reference_field批量订单中产品所使用的字段ENUM('ID','CLIENT_REF','COMPANY_REF') 
is_receive_notification_sms是否接收系统的短信通知TINYINT(1)
is_receive_notification_email是否接收系统的邮件通知TINYINT(1)
is_receive_notification_qq_group是否接收系统的QQ群通知TINYINT(1)
is_spontaneous是否使用自发头程TINYINT(1)
is_skip_product_check是否跳过产品查验TINYINT(1)
is_ecpp_enabled是否使用ECPPTINYINT(1)
sea_container_sku_maximum海运每箱允许的SKU种类数量INT(10)
air_container_sku_maximum空运每箱允许的SKU种类数量INT(10)
express_container_sku_maximum快递每箱允许的SKU种类数量INT(10)
express_line_container_sku_maximum专线每箱允许的SKU种类数量INT(10)
client_company-status客户帐号在当前站点状态ENUM('INACTIVE','ACTIVE')

status

状态

ENUM('INACTIVE','ACTIVE')