Create a coupon
Dxplaination of Interface Call Request
When creating the coupon, status = 1, note that all the time fields below are timestamps in seconds!
Example of request parameters
Examples of back-up
Dxplaination of request parameters
parameter | type | Is it compulsory? | Introductions |
type | number | yes | Types of coupons |
Name | string | yes | Coupon Name |
discount_info.discount_condition.product_CNT | number | no | The amount of discounted merchandise vouchers |
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 prices, full coupons need to be filled in |
discount_info.discount_fee | number | no | The amount reduced is in units. Direct reductions and full reductions are required |
discount_info.discount_num | number | no | Number of items discounted, full discount vouchers need to be filled in, conversion rules, 5000 = 5 discount, 7000 = 7 discount, range is 1000 - 10000, must be an integer of 100 |
ext_info.invalid_Time | number | yes | Coupon expiration timestamp |
ext_info.jump_product_id | number | no | The product id of the jump after the product discount coupon is received |
ext_info.notes | string | no | Note information |
ext_info.valid_Time | number | yes | Coupon Expiration Date |
promote_info.customize_channel | string | yes | User-Defined Promotion Channel |
promote_info.promote_type | number | yes | Types of promotion |
receive_info.end_Time | number | yes | Coupon Acceptance End Time Stamp |
receive_info.limit_num_one_person | number | yes | Limit on number of tickets per person |
receive_info.start_Time | number | yes | Coupon Acceptance Begins Date |
receive_info.total_num | number | yes | Total number of coupons received |
valid_info.end_Time | number | no | Voucher expiration date, if start is required |
valid_info.start_Time | number | no | Coupon valid start time, and valid_day_Num Choose One |
valid_info.valid_day_num | number | yes | Number of days the coupon is valid, and start_Time to choose one |
valid_info.valid_type | number | yes | Type of coupon validity |
Dxplaination of callback parameters
parameter | type | Introductions |
Error code | number | Error code |
errmsg | string | Error message |
data.coupon_id | number | Coupon ID |
Enumeration - coupon _type
The enumeration value | describe |
1 | Goods conditions coupon, discount_condition.product_ids, discount_condition.product_CNT, discount_info.discount_num Required to fill in |
2 | Commodities are sold off full coupons, discount_condition.product_ids, discount_condition.product_price, discount_info.discount_fee Required to fill in |
3 | Uniform discount coupons for goods, discount_condition.product_ids, discount_info.discount_Num required |
4 | Direct coupons for commodities, A reminder if it is less than the minimum price in the item available(More than 50w reminder when no item is available), discount_condition.product_ids, discount_fee Required to fill in |
101 | Shop conditions Discount vouchers, discount_condition.product_CNT, discount_info.discount_Num required |
102 | Stores are full of coupons, discount_condition.product_price, discount_info.discount_fee Required to fill in |
103 | Stores have unified discount coupons, discount_info.discount_num Required to fill in |
104 | Shops cut coupons directly, A reminder if it is less than the minimum price in the item available(More than 50w reminder when no item is available), discount_fee Required to fill in |
Enumeration - valid _type
The enumeration value | describe |
1 | The specified time frame takes effect |
2 | Number of days in effect |
Return code
Return code | Error Type |
-1 | System exceptions |
-2 | Token too long |
9401020 | The parameter is incorrect. |