API Reference
中文

Coupon

Data Type: Coupon

ParameterTypeDescriptionRequired/OptionalNotes
coupon_idStringCoupon IDrequired
coupon_nameStringCoupon Namerequired
coupon_countIntegerCoupon Countrequired
begin_timeLongBegin Timerequiredtimestamp (milliseconds), UTC, Jan 1, 1970
expire_timeLongExpire Timerequiredtimestamp (milliseconds), UTC, Jan 1, 1970
coupon_typeStringCoupon Typeoptional (strongly recommended)enumeration:
fixed_discount
discount
threshold
other
coupon_rateDoubleCoupon Discount Rateoptional (strongly recommended)Range: 0 - 1.00, example: 90% off: 0.9
coupon_thresholdStringCoupon Thresholdoptional (strongly recommended)
cash_back_amountAmountCash_back Amountoptional (strongly recommended)
{
    "coupon_id": "NOHF08938",
    "coupon_name": "Limited Time Discount Coupon",
    "coupon_count": 1,
    "begin_time": 1596358039000,
    "expire_time": 1616358039000,
    "coupon_type": "discount",
    "coupon_rate": 0.85,
    "coupon_threshold": "10",
    "cash_back_amount": {
        "currency": "USD",
        "amount_local": 68,
        "amount_usd": 10,
        "amount_cny": 6.8
    }
}