查询商品发布规则
根据店铺ID、类目等查询商品发布规则,如查询支持发货模式、发货时效、尺码模板配置规则、商品主图3:4配置规则等
请求URL:
POST https://kf.fw199.com/gateway/dd/product/getproductupdaterule
公共参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
appid | String | 是 | 合作伙伴AppId | |
timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
seller_nick | String | 是 | 38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
sign | String | 是 |
业务参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
category_id | Number | 是 | 20219 | 类目id |
senses | List | 否 | 1001 | 闪购定制参数,普通发品忽略 |
standard_brand_id | Number | 否 | 20319 | 品牌id |
spu_id | Number | 否 | 23291 | spu_id |
2. 请求示例代码(Java)
请求示例代码
@Test
public void DDProductGetProductUpdateRule() throws Exception {
Map<String, Object> data = new HashMap<String, Object>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", Config.DDSellerNick);
data.put("category_id", 20219);
// data.put("senses", 1001);
// data.put("standard_brand_id", 20319);
// data.put("spu_id", 23291);
data.put("sign", Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.DDProductGetProductUpdateRule, data);
System.out.println(resp);
}
3. 返回结果如下:
{
"code": 0,
"message": "ok",
"data": {
"after_sale_rule": {
"allergy_return_v2_rule": {
"enable": "false",
"must_select": "false",
"options": []
},
"large_product_rule": {
"enable": false,
"must_select": false,
"options": []
},
"supply_day_return_rule": {
"enable": true,
"options": [{
"name": "15天无理由退货",
"value": "15-1"
}]
},
"three_guarantees": {
"enable": true,
"must_select": false,
"options": [{
"name": "延长售后服务有效期",
"options": [{
"name": "30天",
"value": "30"
}],
"value": "2"
}]
}
},
"component_template_rule": {
"is_show": true,
"must_input": true,
"support_template_sub_type": "clothing"
},
"extra_rule": {
"c2b_customize_rule": {
"app_list": [],
"enable": false,
"supply_day_return_selector": []
}
},
"fulfillment_rule": {
"normal_rule": {
"delay_options": [9999, 1, 2],
"delay_rule": {
"config_type": 0,
"config_value": 0,
"end_time": 0,
"start_time": 0
},
"is_special_delay_option": false,
"support": true
},
"product_presell_rule": {
"delivery_after_pay_config": {
"max_delivery_days": 0,
"max_presell_end_days": 0,
"min_delivery_days": 0,
"need_audit": false
},
"delivery_after_presell_config": {
"max_delivery_days": 0,
"max_presell_end_days": 0,
"min_delivery_days": 0,
"need_audit": false
},
"min_presell_price": 2000,
"support": false
},
"sku_presell_rule": {
"min_presell_price": 0,
"support": false
},
"step_rule": {
"delay_options": [],
"delay_rule": {
"config_type": 0,
"config_value": 0,
"end_time": 0,
"start_time": 0
},
"is_special_delay_option": false,
"step_max_delay": 0,
"step_min_delay": 0,
"support": false
},
"time_sku_presell_with_normal_rule": {
"min_presell_price": 0,
"support": false,
"time_sku_spec_detial": [{
"is_presell_spec": false,
"spec_code": "product_time_spec_same_day",
"spec_value": "当日发/次日发"
}],
"time_sku_spec_name": "发货时效"
},
"time_sku_pure_presell_rule": {
"min_presell_price": 0,
"support": false,
"time_sku_spec_detial": [],
"time_sku_spec_name": ""
}
},
"main_image_three_to_four_rule": {
"is_show": true,
"must_input": false
},
"product_spec_rule": {
"max_spec_num_limit": 3,
"required_spec_details": [{
"is_required": true,
"measure_templates": [],
"navigation_properties": [{
"property_id": 4471,
"property_name": "色系"
}, {
"property_id": 2752,
"property_name": "颜色分类"
}],
"need_paging_query_value": false,
"property_default_display": true,
"property_values": [{
"sell_property_value_id": 35497,
"sell_property_value_name": "白色",
"value_pic": {
"pic_type": "rgb",
"pic_value": "#FFFFFF"
}
}],
"sell_property_id": 2752,
"sell_property_name": "颜色分类",
"support_diy": true,
"support_remark": true,
"value_display_style": "cascader_multi_select"
}, {
"is_required": true,
"measure_templates": [],
"navigation_properties": [{
"property_id": 4705,
"property_name": "尺码类型"
}, {
"property_id": 4704,
"property_name": "尺码大小"
}],
"need_paging_query_value": false,
"property_default_display": true,
"property_values": [{
"sell_property_value_id": 238951,
"sell_property_value_name": "XXXS"
}],
"sell_property_id": 4704,
"sell_property_name": "尺码大小",
"support_diy": false,
"support_remark": true,
"value_display_style": "cascader_multi_select"
}],
"spec_combination_limit": 450,
"spec_rule_code": "",
"spec_single_limit": 200,
"support_property_diy": false,
"support_property_sequence_variable": true
},
"recommend_name_rule": {
"prefix_brand_unauth_can_sel": false,
"prefix_prop_has_brand": false,
"property_ids": [],
"satisfy_prefix": false,
"title_limit_rule": {
"max_length": "60",
"min_length": "15"
}
},
"reference_price_rule": {
"certificate_types": {
"1": "厂商建议零售价",
"2": "吊牌价",
"4": "官网零售价"
},
"is_required": false,
"is_support": true,
"lower_sku_price_times": 10
},
"sku_rule": {
"sku_classification_rule": {
"enable": false,
"must_select": false,
"options": []
}
},
"spu_control_rule": {
"control_type": 0,
"no_need_audit_spu": false,
"support_create_spu": false,
"support_rectify_spu": false,
"support_report_spu": false,
"support_spu_product": false
},
"trade_rule": {
"support_auto_charge_rule": {
"disabled": false,
"value": false
}
}
}
}
说明: code为0表示成功,非0为失败,message会包含失败原因。返回字段说明见文档
https://op.jinritemai.com/docs/api-docs/14/1614
文档更新时间: 2024-12-11 20:15 作者:JSL