Versions Compared

Key

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


地址:   httphttps://test.birdsystem.co.ukcom/client/client

 


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

获取当前客户信息

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

Code Block
curl -X GET \

...


https://test.birdsystem.

...

com/client/client/ \

...


-H 'api_key:

...

 248ccb90dff2b99465b54c113765360c' \

...


-H 'company_id:

...

 36' \

...


-H 'content-type: application/json'


返回结果示例:


Code Block
languagejs
themeConfluence
{
    "total":
1,
    "data":
[
        {
            "client_group_id":
2
535,
            "check_percentage":
null,
            "id":
1
47,
            "client_level_id":
1
null,
            "parent_client_id":
null,
            "name":
"
Test Client 1
飞鸟test",
            "contact":
null,
            "email":"Berry@birdsystem.co.uk",
       
"test1@test.com
     "finance_email":"Berry@birdsystem.co.uk",
            "qq":
"
123456
1234",
            "telephone":
"
3235235
110",
            "customer_service_company_user_id":
1
null,
            "address_line1":
"
Address Line 1
adrres1",
            "address_line2":
"
Address Line 2
adrres2",
            "address_line3":
"Address Line 3"
null,
            "city":"shen zhen"
ShenZhen"
,
            "county":
"GuangDong"
null,
            "post_code":
"
519000
08023",
            "country_iso":
"CN",
            "create_time":
"
2016
2011-
01
06-
18
30 
08
07:
32
00:
03
00",
            "last_login_time":
null
"2019-04-09 22:29:57",
            "next_charging_date":
null
"2016-11-01",
            "client_support_expire_time":
null,
            "note":
null
"广洲站:在2017.2月之前有固定透支额度100人民币,但无到期日,经2017.2.16号KITTY跟李总在深圳公司现场确认后,到期日确认为2017.2.25号0点,若客户还有透支额度的需要,需再找李总沟通。----KITTY2017.2.16<br /><b>C3组别更改到A1组别-- Jim  2017/3/20 </b><br />",
            "bulk_order_reference_field":
"ID",
            "is_receive_notification_sms":
"1",
            "is_receive_notification_email":
"1",
            "is_receive_notification_qq_group":
"1",
            "is_spontaneous":
"
0
1",
            "is_skip_product_check":
"0",
            "is_ecpp_enabled":
"0
"0",
            "dynamic_warehouse_auto_transfer_product":"1",
            "sea_container_sku_maximum":
"10",
            "air_container_sku_maximum":
"15",
            "express_container_sku_maximum":
"15",
            "express_line_container_sku_maximum":"15",
"15
            "client_dispatch_charge_from_des_warehouse":"0",
            "client_type":"UNKNOWN",
            "status":
"ACTIVE",
            "primary_keys":
[
                "id"
            ],
            "client_company-status":"ACTIVE",
            "client_group-name":"D2类别-定制仓面积占500㎡(所有服务可下)",
            "kpi_client_group_id":null,
"ACTIVE"
            "kpi_client_group-name":null
        }
    ],
    "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')