- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
模板订阅关系查询
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/open/app/messagetemplate/subscribe/query
alipay.open.app.messagetemplate.subscribe
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/open/app/messagetemplate/subscribe/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"open_id": "074a1CcTG1LelxKe4xQC0zgNdId0nxi95b5lsNpazWYoCo5",
"user_id": "2088202882050410",
"template_id_list": "[\"6511999536b14ba5830e3a0289ea69a\",\"0b1fcca882aa435382ae98641e14d37\",\"a3b396be6fd345579221af5dea35028\"]"
}'
响应示例响应示例
200 - 示例 1
{
"show_component": true,
"subscribe_relations": [
{
"keep_state": "0",
"show": true,
"subscribe_state": "0",
"subscribe_type": "longterm",
"template_id": "7c866fab64464afaa956223c74ce6cbc"
}
]
}
请求参数
Body 参数application/json
open_id
string
可选
示例值:
074a1CcTG1LelxKe4xQC0zgNdId0nxi95b5lsNpazWYoCo5
user_id
string
可选
示例值:
2088202882050410
template_id_list
array[string]
可选
示例值:
["6511999536b14ba5830e3a0289ea69a","0b1fcca882aa435382ae98641e14d37","a3b396be6fd345579221af5dea35028"]
示例
返回响应
🟢200common response
application/json
Body
show_component
boolean
可选
示例值:
true
subscribe_relations
array[object (SubscribeRelation) {5}]
可选
keep_state
string
可选
示例值:
0
show
boolean
可选
示例值:
true
subscribe_state
string
可选
示例值:
0
subscribe_type
string
可选
示例值:
longterm
template_id
string
消息模板id
示例值:
7c866fab64464afaa956223c74ce6cbc
🔴500请求失败