需要 read_customers 权限点。
更多权限点使用信息,请参考:
GET https://{handle}.myshopline.com/admin/openapi/v20250601/customers/subscribe.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
批量查询用户订阅信息
查询参数
  • customer_ids string
    客户id,多个以逗号分开
    Example: 4201799145
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • traceId
    traceId
响应体
  • user_subscribe_info_listobject[]
    用户订阅信息明细
  • customer_id string
    用户id
    Example: 4201799145
  • status integer
    订阅状态【0 停用 1 启用】
    Example: 1
  • subscribe_account string
    订阅账号
    Example: 08860651123@qq.com
  • subscribe_account_type integer
    订阅账号类型【0 邮箱 1 手机 2 line 3 messenger】
  • subscribe_channel integer
    订阅渠道【0 页脚 1 个人中心 2 订单 3 OPEN_API 4 营销弹窗 5 邮件订阅 6 注册订阅 7 导入订阅】
  • subscribe_time string
    订阅时间
    Example: 2022-11-28T14:15:45+08:00
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required
query

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/customers/subscribe.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
批量查询用户订阅信息
Response
{
"user_subscribe_info_list": [
{
"customer_id": "4201799145",
"status": 1,
"subscribe_account": "008615802673981",
"subscribe_account_type": 1,
"subscribe_channel": 0,
"subscribe_time": "2022-11-28T14:15:45+08:00"
},
{
"customer_id": "4201799145",
"status": 1,
"subscribe_account": "08860651123@qq.com",
"subscribe_account_type": 0,
"subscribe_channel": 0,
"subscribe_time": "2022-11-28T14:15:45+08:00"
}
]
}
这篇文章对你有帮助吗?

Error loading component.

Error loading component.