外部对接生成leads
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
auth | AppAuthDTO | 必须 | 账号信息 | ||||||||
|
|||||||||||
operator | String | 必须 | xiaoman | 操作人 | |||||||
leads_form_info_dto | LeadsFormInfoDTO | 必须 | leads信息 | ||||||||
|
|||||||||||
add_leads | Boolean | 可选 | true | 是否创建leads,true为创建,false为不创建 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
message | String | 系统异常等信息 | 错误结果 |
msg_code | Number | 0 | 错误码 |
is_success | Boolean | ture | 是否调用成功 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCrmHelicarrierDataServiceAddLeadsRequest req = new AlibabaCrmHelicarrierDataServiceAddLeadsRequest(); AlibabaCrmHelicarrierDataServiceAddLeadsRequest.AppAuthDTO obj1 = new AlibabaCrmHelicarrierDataServiceAddLeadsRequest.AppAuthDTO(); obj1.setAuthkey( "111" ); obj1.setCode( "2333" ); req.setAuth(obj1); req.setOperator( "xiaoman" ); AlibabaCrmHelicarrierDataServiceAddLeadsRequest.LeadsFormInfoDTO obj2 = new AlibabaCrmHelicarrierDataServiceAddLeadsRequest.LeadsFormInfoDTO(); obj2.setCountry( "中国" ); obj2.setCode( "fff" ); obj2.setCity( "杭州" ); obj2.setBizCode( "other" ); obj2.setOrigin( "212" ); obj2.setCompanyName( "阿里巴巴公司" ); obj2.setIndustry( "服装" ); obj2.setSocialCreditCode( "112dfefe" ); obj2.setDeviceId( "222" ); obj2.setObjectType( "-" ); obj2.setIndustryCode( "23" ); obj2.setAliId( "2222" ); obj2.setExtMap( "{\"aa\":\"220140789\"}" ); obj2.setProvince( "浙江省" ); obj2.setMbrId( "cn33ff" ); obj2.setStreet( "网商路699号" ); obj2.setContact( "-" ); obj2.setInviter( "zyz.ss" ); obj2.setEmail( "aaa@163.com" ); obj2.setCnCountry( "122" ); obj2.setLeadsFromType( "CGS" ); obj2.setGlobalId( "2222" ); obj2.setBizScene( "ohter" ); obj2.setCnCity( "333" ); obj2.setCnStreet( "44" ); obj2.setMobilePhone( "1301232345" ); obj2.setCnProvince( "555" ); obj2.setDistrict( "无常街道" ); obj2.setDetailAddress( "网商路699号" ); obj2.setCnDistrict( "菜鸟code" ); req.setLeadsFormInfoDto(obj2); req.setAddLeads( true ); AlibabaCrmHelicarrierDataServiceAddLeadsResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < alibaba_crm_helicarrier_data_service_add_leads_response > < message >系统异常等信息</ message > < msg_code >0</ msg_code > < is_success >ture</ is_success > </ alibaba_crm_helicarrier_data_service_add_leads_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|