查询赚积分活动
GET/openapi/2026-01/loyalty/earn-campaigns
查询会员可参与的赚取积分活动列表
请求
Query参数
活动状态:active 或 inactive;不传返回全部
翻页游标
每页条数,默认 50,最大 200
按会员 ID 筛选;不传返回全部活动
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
- Array [
- ]
错误码
错误信息
data object
items object[]
活动列表
活动唯一 ID
活动名称
活动类型:become_member、successful_order、enter_birthday、enter_phone_number 或 share_link
活动是否开启
execution_schedule object
活动有效期规则(对应 vo.ExecutionScheduleRule),强类型映射
周期类型:time_range / weekly / monthly / cycle
开始时间,RFC3339,空表示无开始约束
结束时间,RFC3339,空表示长期有效
指定月份,type=monthly 时生效,数值字符串(1-12)
指定天:weekly 时 0-6 表示周日-周六;monthly 时 1-31 表示月内日期
指定日期(如 yyyy-MM-dd)
member_condition object
适用会员范围;强类型,与 RedemptionCampaign 同口径
类型:scope 或 expression
type 为 scope 时的范围参数
type 为 expression 时的表达式参数
完成活动后获得的奖励积分数
point_expire_config object
本活动发放积分的有效期配置;未配置时为 null
积分是否过期
过期方式:after_x_months / on_specific_date / ...
过期规则的天
过期规则的月
是否开启过期保护
保护天数
是否使用店铺全局配置
完整活动规则透传(对应 vo.CampaignRule);Struct 透传
执行优先级:0=可叠加,>0=不可叠加。optional 保证零值也返回
是否可叠加(execution_priority==0)。optional 保证 false 也返回
创建时间,RFC3339 字符串
下一页游标
是否还有下一页
本次返回的每页条数
{
"code": "string",
"message": "string",
"data": {
"items": [
{
"campaign_id": "string",
"name": "string",
"event_type": "string",
"active": true,
"execution_schedule": {
"type": "string",
"effective_started_at": "string",
"effective_ended_at": "string",
"months": [
"string"
],
"days": [
"string"
],
"date": "string"
},
"member_condition": {
"type": "string",
"scope": {},
"expression": {}
},
"reward_points": 0,
"point_expire_config": {
"is_expired": true,
"expired_method": "string",
"day": 0,
"month": 0,
"protect_enabled": true,
"protect_days": 0,
"use_global_config": true
},
"campaign_rule": {},
"execution_priority": 0,
"is_cumulative": true,
"created_at": "string"
}
],
"next_cursor": "string",
"has_more": true,
"limit": 0
}
}