可以根据客户创建时间,以及客户id范围,批量查询客户通客户
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| customer_id_begin | String | 必须 | 666 | 本次导入的第N次查询,客户id起始值 | |
| last_sync_end_time | Date | 必须 | 2020-10-02 10:00:00 | 本次导入的其实查询时间 | |
| page_size | Number | 可选 | 100 |
|
一页大小 |
| start_time | Date | 可选 | 2020-10-02 10:00:00 | 建档开始时间 | |
| end_time | Date | 可选 | 2020-10-02 10:00:00 | 建档结束时间 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| data_list | CustomerOpenDto [] | 客户列表 | 客户列表 |
|
|||
| total | Number | 1000 | 总个数 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSellerCustomerBatchGetRequest req = new AlibabaSellerCustomerBatchGetRequest();
req.setCustomerIdBegin("666");
req.setLastSyncEndTime(StringUtils.parseDateTime("2020-10-02 10:00:00"));
req.setPageSize(100L);
req.setStartTime(StringUtils.parseDateTime("2020-10-02 10:00:00"));
req.setEndTime(StringUtils.parseDateTime("2020-10-02 10:00:00"));
AlibabaSellerCustomerBatchGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<alibaba_seller_customer_batch_get_response>
<data_list>
<customer_open_dto>
<address>
<city>杭州</city>
<country>中国</country>
<district>滨江区</district>
<province>浙江</province>
<street>西兴</street>
</address>
<annual_procurement>BETWEEN_1K_AND_5K</annual_procurement>
<basic_info_allowable>n</basic_info_allowable>
<business_type_list>
<string></string>
</business_type_list>
<company_name>阿里巴巴</company_name>
<contact_info_allowable>y</contact_info_allowable>
<contact_open_co_list>
<contact_open_co>
<avatar_url>http://sc01.alicdn.com/kf/HTB1.uclJpXXXXXUXVXXq6xXFXXXL.jpg</avatar_url>
<email_list>
<string>123@qq.com</string>
</email_list>
<encrypt_reference_id>MC1IDX1f7BwyKZpzFVl0Ns9hTFuY-BQKjop80UForamCwSvDHyJlHCLiFrNDChu3x4pcAdb</encrypt_reference_id>
<first_name>Jack</first_name>
<gender>M</gender>
<id>33333</id>
<im_list>
<ims_co>
<social_type>facebook</social_type>
<social_value>xiaobei</social_value>
</ims_co>
</im_list>
<is_main>y</is_main>
<last_name>Green</last_name>
<memo>随时联系</memo>
<mobile_list>
<mobile_co>
<mobile_country_code>086</mobile_country_code>
<mobile_phone_num>13876541234</mobile_phone_num>
</mobile_co>
</mobile_list>
<phone_number_list>
<phone_co>
<area_code>0571</area_code>
<country_code>086</country_code>
<ext>1</ext>
<number>6788876</number>
</phone_co>
</phone_number_list>
<position>经理</position>
<reference_id>123</reference_id>
<sec_token>xxx</sec_token>
</contact_open_co>
</contact_open_co_list>
<customer_id>89898989</customer_id>
<customer_phase>ENQUIRY_GROUP</customer_phase>
<fax>
<area_code>0571</area_code>
<country_code>086</country_code>
<ext>1</ext>
<number>88888</number>
</fax>
<gmt_create>2020-10-10 00:00:00</gmt_create>
<importance_level>TWO_STAR</importance_level>
<owner_email>567@123.com</owner_email>
<owner_id_member_seq>323232</owner_id_member_seq>
<purchase_category_list>
<string>[self_002134]</string>
</purchase_category_list>
<remark>备注</remark>
<source_list>
<string>[inquiry]</string>
</source_list>
<website>www.alibaba.com</website>
<alicrm_customer_detail_url>https://alicrm.alibaba.com/#customer-detail?customerId=1234</alicrm_customer_detail_url>
<in_protecting>false</in_protecting>
<growth_level>L1+</growth_level>
</customer_open_dto>
</data_list>
<total>1000</total>
</alibaba_seller_customer_batch_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|