HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

User Credit Rule

idStringUser Credit Rule ID
會員購物金條件 ID
5e8445bcca53240021eab706
rule_typeStringRule Type
條件類型
-
pos_apply_credit: POS 購物金折抵
auto_reward: 滿額送購物金
apply_partial_credit: 允許顧客自行設定折抵金額
welcome_credit: 新加入會員購物金
birthday_credit: 生日購物金
max_amount_per_order: 網店購物金折抵上限,折抵固定金額(即將棄用)
max_percentage_per_order: 網店購物金折抵,折抵百分比(即將棄用)
apply_user_credit: 網店購物金折抵(新版)
accumulated_typeStringAccumulated type
購物金類型
-
credit: 固定金額
percentage: 百分比
is_accumulatedBooleanAuto accumulated
自動累計
statusStringRule status
條件狀態
-
active: 上架
inactive: 下架
removed: 刪除
active
credit_valueIntCredit Value
購物金
credit_thresholdIntCredit threshold
生效條件
credit_valid_periodIntCredit Valid Period
購物金有效時間
apply_thresholdIntApply threshold
生效條件
{
    "_id": "5e9d5313e38809715f74f6eb",
    "created_at": "2020-04-20T07:45:24.005Z",
    "updated_at": "2020-07-17T09:12:19.420Z",
    "status": "active",
    "rule_type": "auto_reward",
    "credit_value": 10,
    "credit_valid_period": -1,
    "credit_threshold": 500,
    "is_accumulated": false,
    "accumulated_type": "credit",
    "apply_threshold": null,
    "membership_tier_id": null
}