新版「开放接口」现已发布,新增消息事件推送功能,更新人人商城至V5.32.0体验!
curl --location --request POST '/renxinyun/work-discount/add-activity' \
--form 'title="测试"' \
--form 'client_type="20,21"' \
--form 'start_time="2025-05-01 00:00:00"' \
--form 'end_time="2025-05-06 00:00:00"' \
--form 'rules="{\"chat\":[\"wrFTzZCgAANECLE8giE5FCHSQm2wWuiA\"],\"chat_name\":[\"人人商城社区团购|聊一聊\"],\"department_id\":\"\",\"friend\":[],\"friend_name\":[],\"is_commission\":\"0\",\"limit_type\":\"0\",\"member_type\":\"0\",\"member_level_id\":[],\"member_group_id\":[],\"image\":\"\"}"' \
--form 'goods_info[0][goods_id]="1"' \
--form 'goods_info[0][has_option]="1"' \
--form 'goods_info[0][rules][0][id]="1"' \
--form 'goods_info[0][rules][0][activity_stock]="1"' \
--form 'goods_info[0][rules][0][activity_price]="10.23"' \
--form 'goods_info[0][rules][0][activity_sales]="0"' \
--form 'goods_info[0][rules][0][activity_virtual_sales]="0"' \
--form 'goods_info[0][rules][0][is_join]="1"' \
--form 'goods_info[0][rules][0][stock]="10"' \
--form 'goods_info[0][rules][0][price]="103.2"' \
--form 'goods_info[0][rules][0][title]="测试"' \
--form 'goods_info[0][rules][0][weight]="13.3"' \
--form 'goods_info[0][rules][0][option_id]="1"' \
--form 'inner_type="0"'
{
"error": 0
}
扫码加入 开放接口 微信交流群
在这里,获得 开放接口 使用上的任何帮助,快速上手让你的研测效率得到大幅提升