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