公共模版查询接口
查询已经通过审核的公共短信模版.
一、请求参数
请求URL:
公共参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| appid | String | 是 | 合作伙伴AppId | |
| timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
| seller_nick | String | 是 | oms38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
| sign | String | 是 |
业务参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| size | Int64 | 否 | 10 | 每页数据大小 |
| page | Int64 | 否 | 0 | 第几页,从0开始 |
| template_id | String | 否 | ST_90251 | 模版id |
二、请求示例代码
Java
@Test public void DDSmsPublicTemplateRequest() 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("page", 0); data.put("size", 100); data.put("sign", Sign(data,Config.AppSecret)); // 调用服务API String resp = doHttpRequest(Config.DDSmsPublicTemplateRequestURL, data); System.out.println(resp); }三、返回结果
三(一)、成功返回
{ "code": 0, "message": "ok", "data": { "public_template_list": [ { "channel_type": "CN_NTC", "template_content": "您购买的商品已发出,${name}快递运单号:${number},请及时关注尽快接受哦!", "template_id": "SPT_1824e866", "template_name": "商品发出模板" }, { "channel_type": "CN_NTC", "template_content": "报告${name}大人,您的退款已乘快马启程,将在一炷香的时间内回到大人账号,记得查收~伦家还是很期望您再次光临哒。", "template_id": "SPT_110f9876", "template_name": "公共模板-物流通知-完成售后" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},您的退款已经处理成功,登录抖音查看进展。非常抱歉没有给你带来良好的体验,期待下次给亲更好的体验。", "template_id": "SPT_110f95b6", "template_name": "公共模板-物流通知-完成售后" }, { "channel_type": "CN_OTP", "template_content": "已同意亲的退货申请,退货时包裹中写上自己的订单号和退货原因,我们收到后可以第一时间确认并办理退款手续", "template_id": "SPT_110f9316", "template_name": "公共模板-物流通知-同意售后" }, { "channel_type": "CN_NTC", "template_content": "已同意亲的退款,请您尽快进入抖音订单后台查看售后进展。期待您的下次光临。", "template_id": "SPT_110f8e76", "template_name": "公共模板-物流通知-同意售后" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},我们已同意亲的退货申请,麻烦到退货页面填写退回的快递单号,这样才能及时给亲办理后续的退款。", "template_id": "SPT_110f8756", "template_name": "公共模板-物流通知-同意售后" }, { "channel_type": "CN_NTC", "template_content": "您申请的退款类型是不支持的,请您上线联系在线的售后客服给您处理退款事宜,感谢您的配合。", "template_id": "SPT_110f84e6", "template_name": "公共模板-物流通知-拒绝售后" }, { "channel_type": "CN_NTC", "template_content": "通知:亲的退款申请被拒绝。亲检查下退款类型是否填写错误,建议联系客服同学重新提交申请", "template_id": "SPT_110f7fa6", "template_name": "公共模板-物流通知-拒绝售后" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},已收到你的退款/退货申请。我们将以最快的速度帮亲处理,有问题可随时联系售后同学", "template_id": "SPT_110f7d06", "template_name": "公共模板-物流通知-申请售后" }, { "channel_type": "CN_NTC", "template_content": "无论是什么原因,很抱歉让你退款/退货了,我们提供了一系列完善的售后服务;期待再次与亲相遇", "template_id": "SPT_110f7ae6", "template_name": "公共模板-物流通知-申请售后" }, { "channel_type": "CN_NTC", "template_content": "已收到您的退货申请,很抱歉没让您满意!我们将以最快的速度进行处理,有问题可随时联系客服,期待下次相遇。", "template_id": "SPT_110f77c6", "template_name": "公共模板-物流通知-申请售后" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},你的宝贝已经达到您所在的城市,请保持手机畅通,方便快递联系您!如果有什么问题,请不要给差评,一定要再平台上咨询客服,我们为您处理售后服务", "template_id": "SPT_110f6f86", "template_name": "公共模板-物流通知-快递到达" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},你的宝贝已经达到您所在的城市,收到宝贝以后有什么问题可以第一时间咨询我们的在线客服,谢谢啦", "template_id": "SPT_110f6ca6", "template_name": "公共模板-物流通知-快递到达" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},你的宝贝已经达到您所在的城市,请保持手机畅通,方便快递联系您!及时确认收货、祝您生活愉快。", "template_id": "SPT_110f6a46", "template_name": "公共模板-物流通知-快递到达" }, { "channel_type": "CN_NTC", "template_content": "亲,您购买的宝贝较为特殊,可能无法及时发货,还望耐心等待,发货后立即短信通知您", "template_id": "SPT_110f67e6", "template_name": "公共模板-物流通知-延迟发货" }, { "channel_type": "CN_NTC", "template_content": "${name}您好,因库房搬迁,发货时间会有延迟,对此我们感到万分抱歉,会尽快为您发出货物,请您耐心等待", "template_id": "SPT_110f6596", "template_name": "公共模板-物流通知-延迟发货" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},由于快递合作原因导致发货速度延迟,小店深感抱歉。现已恢复正常,将在3天内为您安排发货", "template_id": "SPT_110f62f6", "template_name": "公共模板-物流通知-延迟发货" }, { "channel_type": "CN_NTC", "template_content": "${name}大人,有此殊荣能被您宠幸,真是小店莫大的荣耀。小的定尽快催促工厂出货。请大人多多等待,到货立刻给亲安排", "template_id": "SPT_110f5fa6", "template_name": "公共模板-物流通知-延迟发货" }, { "channel_type": "CN_NTC", "template_content": "您好,${name}非常抱歉的通知您,由于订单激增,您所订商品可能延缓,我们正在24小时加班处理,望见谅,谢谢!", "template_id": "SPT_110f5d16", "template_name": "公共模板-物流通知-延迟发货" }, { "channel_type": "CN_NTC", "template_content": "您在抖音购买的宝贝已经发货,签收前先检查包装哟,有破损或者有问题请拒收哦", "template_id": "SPT_110f5a36", "template_name": "公共模板-物流通知-发货提醒" }, { "channel_type": "CN_NTC", "template_content": "主公,您钦点的宝贝已委托镖局${logistics_name}快马加鞭送出,镖号${waybill_no},烦请查验无误再签收!", "template_id": "SPT_110f5786", "template_name": "公共模板-物流通知-发货提醒" }, { "channel_type": "CN_NTC", "template_content": "亲~您购买的宝贝已由${logistics_name}送出,单号${waybill_no}以火箭般的速度冲刺中!", "template_id": "SPT_110f54f6", "template_name": "公共模板-物流通知-发货提醒" }, { "channel_type": "CN_NTC", "template_content": "亲,您在本店拍下的商品,我们会及时为您发货,感谢您的理解与支持,万分谢谢!小掌柜敬上!", "template_id": "SPT_110f5276", "template_name": "公共模板-物流通知-付款关怀" }, { "channel_type": "CN_NTC", "template_content": "抖店同品万千选择,有此殊荣被您宠幸,真是莫大的荣耀。小的定尽快催促工厂加班加点出货。请多多等待~", "template_id": "SPT_110f4fd6", "template_name": "公共模板-物流通知-付款关怀" }, { "channel_type": "CN_MKT", "template_content": "亲爱买家${name},感谢购买我们的商品!订单将会尽快安排寄出,若有疑虑请洽客服将有专员为您处理!谢谢您的订购与支持", "template_id": "SPT_110f4cb6", "template_name": "公共模板-物流通知-付款关怀" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},您在我们店铺购买的宝贝还未付款哦,请尽快付款我们将以最快的速度发货呢", "template_id": "SPT_110f41c6", "template_name": "公共模板-物流通知-催付提醒" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},您在我们店铺购买的宝贝还未付款哦,请尽快付款我们将以最快的速度发货呢", "template_id": "SPT_110f3896", "template_name": "公共模板-测试" }, { "channel_type": "CN_MKT", "template_content": "亲爱的${name}我们家收到飞鸽传书,得知您的宝贝已经安全抵达。有任何疑问欢迎咨询我们。喜欢请记得5分好评,一路相知,伴随左右~回T退订。", "template_id": "SPT_110f30d6", "template_name": "公共模版-国内营销-好评关怀7" }, { "channel_type": "CN_MKT", "template_content": "非常荣幸您能购买我们家的宝贝,我们一直严格把控商品质量,至诚为顾客服务。如果您觉得满意,请为我们点亮三行5颗星星(联系客服有好礼哦)您的满意是我们前进的动力,谢谢您!回T退订。", "template_id": "SPT_110f2da6", "template_name": "公共模版-国内营销-好评关怀6" }, { "channel_type": "CN_MKT", "template_content": "亲,您拍下的宝贝已经发出,如果有什么不满意的地方请联系小店在线客服,收货后麻烦您动动手给个五星评价,可凭借截图获得优惠好礼,您的鼓励就是我们的动力!祝您生活愉快!回T退订。", "template_id": "SPT_110f2a56", "template_name": "公共模版-国内营销-好评关怀5" }, { "channel_type": "CN_MKT", "template_content": "您好,您的快递显示已签收,如遇问题联系在线客服,我们一定竭尽全力解决,如您满意请5分好评支持,您的信任是我们前进的动力。回T退订。", "template_id": "SPT_110f2736", "template_name": "公共模版-国内营销-好评关怀4" }, { "channel_type": "CN_MKT", "template_content": "亲,您在小店购买的订单显示已签收,看亲还未评价,满意的话请您给小店一个五星好评,操作方法:抖音下方“我”点开,右上角三杠-我的订单-待评价-找到订单-好评+满星评论发布,您的支持对我很重要呢。回T退订。", "template_id": "SPT_110f22c6", "template_name": "公共模版-国内营销-好评关怀3" }, { "channel_type": "CN_MKT", "template_content": "亲爱的${name}感谢您在小店购买产品,满意的话,恳请您评价点亮5颗小星星,感谢您的支持!回T退订。", "template_id": "SPT_110f1db6", "template_name": "公共模版-国内营销-好评关怀2" }, { "channel_type": "CN_MKT", "template_content": "${name}在我们小店购买产品,满意记得好评写下真实感受哦,您的评价对其他客户有很重要的参考意义呢。回T退订。", "template_id": "SPT_110f1a76", "template_name": "公共模版-国内营销-好评关怀1" }, { "channel_type": "CN_MKT", "template_content": "亲爱的${name}感谢您的购买,您的订单已经签收,麻烦您确认收货!及时确认收货、感谢您对我们的信任与支持。回T退订。", "template_id": "SPT_110f1426", "template_name": "公共模版-国内营销-签收提醒2" }, { "channel_type": "CN_MKT", "template_content": "亲爱的${name}您的订单已经签收,麻烦您确认收货!及时确认收货、感谢您对我们的信任与支持,方便的话给我们一个好评。回T退订。", "template_id": "SPT_110f0e96", "template_name": "公共模版-国内营销-签收提醒1" }, { "channel_type": "CN_NTC", "template_content": "亲爱的,您的宝贝已由${logistics_name}发出,单号${waybill_no},正八百里加急向您奔来,盼亲五星评价哦~有问题请联系客服", "template_id": "SPT_10cc3ac6", "template_name": "公共模板—国内通知—快递发货" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name},你的宝贝已经达到您所在的城市,请保持手机畅通,方便快递联系您!及时确认收货、祝您生活愉快。", "template_id": "SPT_10cc3906", "template_name": "公共模板—国内通知—快递到达" }, { "channel_type": "CN_NTC", "template_content": "亲爱的${name}您的订单已经签收,麻烦您确认收货!及时确认收货、感谢您对我们的信任与支持。", "template_id": "SPT_10cc36a6", "template_name": "公共模板—国内通知—订单签收" }, { "channel_type": "CN_OTP", "template_content": "your verify code is ${code}", "template_id": "SPT_099f51c6", "template_name": "英文模版" }, { "channel_type": "CN_MKT", "template_content": "你好,欢迎来到小店。", "template_id": "SPT_09533706", "template_name": "公共模版2" }, { "channel_type": "CN_OTP", "template_content": "你好,你的验证码是${code}。", "template_id": "SPT_09532b06", "template_name": "公共模版1" } ], "total": 42 }}四、返回字段说明
| 参数名称 | 参数类型 | 示例值 | 参数描述 |
|---|---|---|---|
| total | Int64 | 100 | 数据总量 |
| - public_template_list | List | - | 列表页数据 |
| template_id | String | ST_0000 | 模版id |
| template_name | String | 验证码 | 模版名称 |
| template_content | String | 你的验证码是${code},3分钟内有效 | 模版内容 |
| channel_type | String | CN_OTP | 模版类型 |
说明: code为0表示成功,非0为失败,message会包含失败原因。