地址表单schema查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_address_localization_form_query | AddressLocalizationFormQuery | 必须 | 地址表单查询参数对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
forms | AddressCountryFormDTO [] | 表单 | |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaTradeAddressSchemaQueryRequest req = new AlibabaTradeAddressSchemaQueryRequest(); AlibabaTradeAddressSchemaQueryRequest.AddressLocalizationFormQuery obj1 = new AlibabaTradeAddressSchemaQueryRequest.AddressLocalizationFormQuery(); obj1.setDestCountryCode( "US" ); obj1.setLanguage( "en_US" ); req.setParamAddressLocalizationFormQuery(obj1); AlibabaTradeAddressSchemaQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
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 | < alibaba_trade_address_schema_query_response > < forms > < address_country_form_d_t_o > < country_code >US</ country_code > < disabled >false</ disabled > < enable_association >false</ enable_association > < enable_multi_lang_input >false</ enable_multi_lang_input > < enable_post_code_search >false</ enable_post_code_search > < enable_smart_fill >fasle</ enable_smart_fill > < form_fields > < local_form_field_d_t_o > < field_hint >hello</ field_hint > < field_hover_tip >hello</ field_hover_tip > < field_key >contact.mobileNo</ field_key > < field_label >Phone number</ field_label > < field_placeholder >null</ field_placeholder > < fill_type >input</ fill_type > < order >30</ order > < rule > < check_reg_exp >true</ check_reg_exp > < reg_exps > < local_form_field_rule_reg_exp_d_t_o > < check_failed_tips_text >You need to provide your phone number so that you can be contacted for delivery updates</ check_failed_tips_text > < reg_exp >^.+$</ reg_exp > < reg_key >contact.mobileNo.nullable</ reg_key > </ local_form_field_rule_reg_exp_d_t_o > </ reg_exps > < require_not_null >true</ require_not_null > </ rule > </ local_form_field_d_t_o > </ form_fields > < form_fill_mode >normal</ form_fill_mode > </ address_country_form_d_t_o > </ forms > </ alibaba_trade_address_schema_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|