- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
消息母板批量查询接口
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/open/mini/template/templatelib/query
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/open/mini/template/templatelib/query' \
--header 'authorization: ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign' \
--header 'alipay-request-id: $requestid' \
--header 'Content-Type: application/json' \
--data-raw '{
"industry_code":"XS1001",
"industry_scenario":"ISC5e562b19c5a24116888e45d2d53130b9",
"scene_rule":"long_term_subscribe",
"has_push":true,
"page_num":1,
"page_size":5
}'
响应示例响应示例
200 - 成功示例
{
"template_lib_list": [
{
"code": "TMd3ff322d73a74018839c9240911dfa51",
"name": "集卡活动开始通知",
"industry_code": "XS1001",
"industry_scenario": "ISC5e562b19c5a24116888e45d2d53130b9",
"keyword_desc": "参与方式,开赛时间,比赛描述",
"has_push": true,
"scene_rule": "long_term_subscribe",
"status": "STARTED",
"delivery_settings": "follower",
"selectable": true,
"not_selectable_reason": {
"reason_text": "小程序整改原因xxxx",
"action_url": "服务不可选具体说明链接"
},
"fatigue": {
"unit": "day",
"total": "10",
"value": "1"
}
}
],
"total_count": 15,
"page_num": 1,
"page_size": 1
}
请求参数
Header 参数
authorization
string
必需
示例值:
ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign
alipay-request-id
string
必需
示例值:
$requestid
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
industry_code
string
必需
industry_scenario
string
可选
scene_rule
string
必需
has_push
boolean
可选
page_num
integer
必需
page_size
integer
必需
示例
返回响应
🟢200成功
application/json
Body
template_lib_list
array [object {12}]
消息母板列表
code
string
消息母板code
name
string
消息母板名称
industry_code
string
行业编码
industry_scenario
string
行业场景
keyword_desc
string
关键词描述
has_push
boolean
是否带push
scene_rule
string
必需
status
string
母板状态
delivery_settings
string
可选
selectable
boolean
必需
not_selectable_reason
object
可选
fatigue
object
消息疲劳度
total_count
integer
查询结果总数
page_num
integer
分页页码
page_size
integer
必需
🟠400请求有误