需要 read_selling_plan_group 权限点。
更多权限点使用信息,请参考:
GET https://{handle}.myshopline.com/admin/openapi/v20250601/selling_plan_group/selling_plan_group.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
分页查询销售计划组列表
查询参数
  • create_at_max string
    创建时间在XXX前(格式见IOS8601)
    Example: 2022-01-07T14:38:25.734+08:00
  • create_at_min string
    创建时间从XXX起(格式见IOS8601)
    Example: 2022-01-07T14:38:25.734+08:00
  • limit integer
    查询数量限制,默认50,不能超过250
    Example: 50
  • name string
    销售计划组名称,模糊查询
    Example: 折扣
  • page_info string
    调用方不需要使用和关注此字段,由Shopline自动封装
    Example: eyJzaW5jZUlkIjoiMTQwNTYyMDAyNDU4NDQzNzI0NDExMDAwMDkiLCJkaXJlY3Rpb24iOiJuZXh0In0=
  • since_id string
    从指定销售计划组ID开始查询
    Example: 14056200245844372441100009
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • link
    上下页链接
  • traceId
    traceId
响应体
  • selling_plan_group_listobject[]
    销售计划组列表
  • app_id string
    销售渠道ID
    Example: c41ac9e6736785502d2333d1b1153aca795075c4
  • description string
    描述
    Example: This is a description
  • id string
    销售计划组ID
    Example: 14056200245844372441100009
  • merchant_code string
    展示给卖家看的名称
    Example: Subscription plan group default name
  • name string
    销售计划组名称
    Example: Subscription plan group default name
  • options array
    销售计划组选项列表
    Example: ["delivery every 1 months", "delivery every 2 months", "delivery every 3 months"]
  • position integer
    展示位置
    Example: 1
  • product_count integer
    关联的商品数量
    Example: 10
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required
query
query
query
query
query
query

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/selling_plan_group/selling_plan_group.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
指定PageInfo
Response
{
"selling_plan_group_list": [
{
"app_id": "111afe2f9baceb93004af92b1276582619f1db26",
"description": "This is a description",
"id": "14060881274779635621973144",
"merchant_code": "Subscription plan group default name",
"name": "Subscription plan group default name 3",
"options": [
"delivery every 1 months"
],
"position": 1,
"product_count": 1
},
{
"app_id": "111afe2f9baceb93004af92b1276582619f1db26",
"description": "This is a description",
"id": "14060881275356100764933144",
"merchant_code": "Subscription plan group default name",
"name": "Subscription plan group default name 4",
"options": [
"delivery every 1 months"
],
"position": 1,
"product_count": 1
}
]
}
这篇文章对你有帮助吗?