查询自动折扣活动
GET https://{handle}.myshopline.com/admin/openapi/v20250601/sales/discount/automatic
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。open api 查询自动优惠活动
查询参数
- ends_at string结束时间Example:
2022-11-11T11:33:00+08:00
- page_num integer页码Example:
1
- page_size integer分页大小Example:
20
- starts_at string开始时间Example:
2022-10-11T11:33:00+08:00
- value_type string优惠类型(fixed_amount-满减,percentage-满折,nth_items_discount_benefit-第n件折扣)Example:
percentage
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
automatic_discountobject[]
自动优惠activity_desc string活动描述Example:This is description of the discount
banner_pic_url stringbanner图链接-PC端Example:www.shopline.com/pc/1.png
banner_pic_url_mobile stringbanner图链接-移动端Example:www.shopline.com/mobile/1.png
customer_getsobject[]
优惠内容prerequisite_quantity_rangeobject
数量条件greater_than long大于greater_than_or_equal_to long大于等于Example:3
less_than long小于less_than_or_equal_to long小于等于prerequisite_subtotal_rangeobject
价格条件greater_than long大于greater_than_or_equal_to long大于等于Example:5
less_than long小于less_than_or_equal_to long小于等于value long优惠值Example:-2
desc_url string活动落地页链接Example:https://manong.myshopline.com/activity/this-is-title-of-auto-discount-free-shipping
ends_at string结束时间Example:2022-11-11T11:23:00+08:00
seo arrayseoExample:the seo for search of the discount
starts_at string开始时间Example:2022-10-11T11:23:00+08:00
title string标题Example:This is title for discount
value_type string优惠类型Example:percentage
page_infoobject
分页信息page_num integer页码Example:1
page_size integer分页大小Example:10
total integer总数Example:100
API Explorer
调试台
示例代码
这篇文章对你有帮助吗?