Renewal coupons
Interface call request specification
Status = 1 when creating a coupon
Request Parameter Sample
Return Package Example
Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
type | number | yes | Coupon Type |
name | string | yes | Coupon Name |
discount_info.discount_condition.product_cnt | number | no | Discount Amount of Merchandise Coupon |
discount_info.discount_condition.product_ids | number | no | Product id, product discount coupon need to fill in |
discount_info.discount_condition.product_price | number | no | Product price, full discount coupon need to fill in |
discount_info.discount_fee | number | yes | Full reduction |
discount_info.discount_A | number | no | Quantity of discount goods, full discount coupon need to fill out |
ext_info.invalid_time | number | yes | Coupon Expiration Time Stamp |
ext_info.jump_product_id | number | no | Product id after receiving discount coupon |
ext_info.notes | string | no | Remarks information |
ext_info.valid_time | number | yes | Coupon Valid Time Stamp |
promote_info.customize_channel | string | yes | User-defined promotion channels |
promote_info.promote_type | number | yes | Type of promotion |
receive_info.end_time | number | yes | Coupon End Time Stamp |
receive_info.limit_A_one_person | number | yes | Single Limited Tickets |
receive_info.start_time | number | yes | Coupon Collection Start Time Stamp |
receive_info.total_A | number | yes | Total number of coupons received |
valid_info.end_time | number | no | Coupon end time, if you fill out start |
valid_info.start_time | number | no | Coupon Validity Start Time, and Valid_day_Num choose two |
valid_info.valid_day_A | number | yes | Coupon Validity Number of Days, and Start_Time Choice Two |
valid_info.valid_type | number | yes | Coupon Validity Type |
Return parameter specification
parameter | type | Introductions |
Errcode | number | Error code |
errmsg | string | Error message |
data.coupon_id | number | Coupon ID |
Enumerate - coupon _type
Enumeration value | describe |
1 | Commodity conditions coupon, discount_condition.product_ids, discount_condition.product_cnt, discount_info.discount_A Required |
2 | Commodities full discount coupon, discount_condition.product_ids, discount_condition.product_price, discount_info.discount_fee Required |
3 | Product unified discount coupon, discount_condition.product_ids, discount_info.discount_Num Required |
4 | Commodities Direct Discount Coupon, If less than the minimum price of the available item will alert(No goods when more than 50w reminder), discount_condition.product_ids, discount_fee Required |
101 | Store Condition Discount Coupon, discount_condition.product_cnt, discount_info.discount_Num Required |
102 | Shop full discount coupons, discount_condition.product_price, discount_info.discount_fee Required |
103 | Shop unified discount coupon, discount_info.discount_A Required |
104 | Shop direct discount coupons, If less than the minimum price of the available item will alert(No goods when more than 50w reminder), discount_fee Required |
Enumerations-valid_type
Enumeration value | describe |
0 | Specified timeframe takes effect |
1 | Days of entry into force |
Return code
Return code | Type of error |
-1 | System exception |
-2 | Token is too long |
9401020 | Wrong parameter |