API Reference
English

优惠券

数据类型:Coupon

字段类型含义建议备注
coupon_idString优惠券 ID必须
coupon_nameString优惠券名称必须
coupon_countInteger优惠券数量必须
begin_timeLong开始时间必须时间戳(毫秒),UTC, Jan 1, 1970
expire_timeLong结束时间必须时间戳(毫秒),UTC, Jan 1, 1970
coupon_typeString优惠券类型强烈建议枚举值:
fixed_discount:满减
discount:折扣
threshold:门槛
other:其它
coupon_rateDouble优惠券折扣率强烈建议范围为 0 - 1.00 ,9 折即为 0.9 ,95 折即为 0.95 ,以此类推
coupon_thresholdString优惠券门槛强烈建议
cash_back_amountAmount返还金额强烈建议
{
    "coupon_id": "NOHF08938",
    "coupon_name": "双十一限时购",
    "coupon_count": 1,
    "begin_time": 1596358039000,
    "expire_time": 1616358039000,
    "coupon_type": "discount",
    "coupon_rate": 0.85,
    "coupon_threshold": "10",
    "cash_back_amount": {
        "currency": "CNY",
        "amount_local": 68,
        "amount_usd": 10,
        "amount_cny": 6.8
    }
}