文档
测试

2.根据模板id获取模板消息

GET
http://localhost:8088/api/web/2pdd/get_template.json

接口描述

商品复制状态请求

请求参数

参数名
类型
描述
必填
merchant_id
int
商户的ID
必填
template_id
int
模板id
必填

响应参数

参数名
类型
描述
必填
data
Object
数据对象
必填
status
int
1.获取成功,2.获取失败
必填
template
Object
当status为1时,商品信息对象存储商品信息
必填
id
String
模板ID
必填
is_default_set
int
是否是商户的默认设置,1是,2不是
必填
name
String
搬家配置名称
必填
onsale_now
int
复制后是否上架:1放入代售,2发放入草稿箱,3立即上架
必填
is_auto_match_cat
int
自动匹配类目:1自动,0非自动
必填
is_autonot_match_skip
int
//如果没有自动匹配,1自动跳过,2指定类目
必填
is_autonot_match_cat_id
int
自动匹配没匹配到后指定的的类目ID
必填
is_handle_select_cat_id
int
手动匹配类目的类目ID
必填
is_auto_comple_good_attr
String
是否自动补全商品属性
必填
auto_comple_null_set
String
自动补全为空时:0其他,1保持为空,2随机一项,3第一项
必填
goods_type
int
商品类型:1-国内普通商品,2-进口,3-直供(保税),4-直邮 ,5-流量 ,6-话费 ,7-优惠券 ,8-QQ充值 ,9-加油卡,15-商家卡券,19-平台卡券
必填
event_type
int
活动类型:1未参加活动,2优惠活动
必填
is_refundable
int
是否7天无理由退换货,1-支持,2-不支持
必填
is_folt
int
是否支持假一赔十,1-不支持,2-支持
必填
customer_num
int
团购人数,默认是2
必填
is_pre_sale
int
是否预售,1-预售商品,2-非预售商品
必填
pre_sale_time
int
预售商品时生效,预售时间yyyy-mm-dd 24h-MM-ss 预售时间,is_pre_sale为true时必传,UNIX时间戳,只能为某一天的23:59:59
必填
shipment_limit_second
int
//承诺发货时间( 秒),普通、进口商品可选48小时或24小时;直邮、直供商品只能入参120小时;is_pre_sale为true时不必传
必填
buy_limit
int
限购次数
必填
order_limit
int
单次限购
必填
weight
int
商品重量,单位为g
必填
second_hand
int
是否二手商品,1 -二手商品 ,2全新商品
必填
price_group_set
String
团购价设置公式,其中货源价格source_price,批发价pfj_price,例如#{pfj_price}*100%+5
必填
price_group_contain_cost
int
团购费用包含源商品的快递费:1包含,2不包含
必填
price_group_set_suffix
int
尾数金额手动处理,单位是分-1表示不处理
必填
price_group_set_auto_suffix
int
尾数金额自动处理,1与来源一致,2去掉分角,3去掉分
必填
price_single_set
String
单买价格设置,例如:#{price_group_set}*100%+3
必填
price_single_set_suffix
String
尾数金额手动处理,单位是分-1表示不处理
必填
price_single_set_auto_suffix
int
尾数金额自动处理,1与来源一致,2去掉分角,3去掉分
必填
price_market_set
String
市场价设置公式,其中货源价格source_price,批发价pfj_price,例如#{pfj_price}*100%+5
必填
price_market_set_suffix
int
尾数金额手动处理,单位是分-1表示不处理
必填
price_market_set_auto_suffix
int
尾位数金额自动处理,1与来源一致,2去掉分角,3去掉分
必填
title_set_prefix
String
商品标题前缀
必填
title_set_suffix
String
商品标题后缀
必填
title_set_replace
Object
商品标题替换 该字段是json数组:如[{"src":"淘宝","dest":"拼多多"}]
必填
src
String
源字段 比如说把 你好
必填
dest
String
目标字段 替换为 我好
必填
title_set_delete
String
标题删除的关键字,按照逗号区分比如 :推荐,傻子,asdf,等等
必填
title_set_filter_sn
int
是否过滤商家编码:1过滤,2不过滤
必填
title_set_filter_brand
int
是否过滤品牌:1过滤,2不过滤
必填
brand_set
int
品牌设置:1.自动设置,2.手动设置,3.清空品牌
必填
brand_set_hand
String
品牌设置为手动时生效,指定品牌名称
必填
goods_desc_prefix
String
商品描述设置前缀
必填
goods_desc_suffix
String
商品描述设置后缀
必填
goods_desc_replace
Object
商品描述替换,该字段是json数组:如[{"src":"淘宝","dest":"拼多多"}]
必填
src
String
源字段
必填
dest
String
目标字段
必填
violate_dict
int
是否做违禁词过滤,1是,2否
必填
pic_main_del_front
int
删除主图前多少张
必填
pic_main_del_back
int
删除主图后多少张
必填
pic_main_del_hand
String
删除主图指定的第多少张,按逗号进行区分: 1,2,3,4
必填
pic_main_watermarking
String
图片水印,默认是空,如果此处为图片水印的地址
必填
pic_main_set
String
设置主图,地址
必填
pic_desc_add_prefix
String
详情图前添加的图,按逗号进行分割
必填
pic_desc_add_suffix
String
详情图末尾要添加的图,按逗号进行分割
必填
out_goods_sn_type_other
int
商家编号:1,来源商家编码有则用,否则:留空;2,来源商家编码有则用,否则用:{来源ID},3、来源商家编码有则用,否则用:{平台首字母}#{来源ID}
必填
out_goods_sn_prefix
String
商家编号的前缀
必填
out_sku_sn_rule
int
1,商品ID+规格1+规格2; 2,商品ID+规格1流水号+规格2流水号;3,商家编码+规格1+规格2
必填
logistics_template_id
String
物流运费模板ID 用户手动选择
必填
remark
String
备注
必填