{
"coupon_name": "满100减20",
"coupon_type": 1,
"discount_value": 20,
"min_spend": 100,
"start_time": "2024-01-01 00:00:00",
"end_time": "2024-12-31 23:59:59",
"total_stock": 1000,
"limit_per_user": 1,
"claim_type": 1,
"points_required": 0,
"sort": 255
}
curl --location --request POST '/storeapi/tbl-store/coupon' \
--header 'access-token: {{access-token}}' \
--header 'refresh-token: {{refresh-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"coupon_name": "满100减20",
"coupon_type": 1,
"discount_value": 20,
"min_spend": 100,
"start_time": "2024-01-01 00:00:00",
"end_time": "2024-12-31 23:59:59",
"total_stock": 1000,
"limit_per_user": 1,
"claim_type": 1,
"points_required": 0,
"sort": 255
}'
{
"code": 200,
"msg": "操作成功",
"data": {}
}