有赞新零售社区

发帖
API使用问题»创建优惠券活动-operatorType不能为null

[API调用-会员/营销] 创建优惠券活动-operatorType不能为null

e05e48f636ab 2022-12-22 764 浏览 3 评论 | 只看楼主 [打印]
一、接口连接  https://doc.youzanyun.com/detail/API/0/793二、传参
{"threshold_type":1,"is_forbid_public_take":false,"valid_time_generate_type":1,"app_name":"三亚海旅免税会员购","title":"满10减1优惠券测试(勿用)","applicable_online_goods_range_type":1,"budget_use_total_qty":1,"budget_send_total_qty":1,"threshold_amount":100,"value":1,"operator_type":2,"verify_channel_range_type":0,"verify_channels":["4"],"preferential_mode":1,"voucher_value_generate_type":1,"description":"活动描述-测试券勿用测试券勿用测试券勿用测试券勿用","user_take_num_limit":1,"absolute_valid_start_time":"2022-12-21 00:00:00","absolute_valid_end_time":"2022-12-23 00:00:00","expire_notice_days":3,"is_forbid_overlay_preferential":true}
三、响应
{"trace_id":"yz7-0ae85be8-1671613070695-972223","code":161201012,"success":false,"message":"operatorType不能为null"}

用手机打开
收藏 ··· 回复
    e05e48f636ab 青铜   2022-12-22 | 只看该作者
    不能提工单,微信群又没有技术支持,真的是麻烦。

    e05e48f636ab 青铜   2022-12-22 | 只看该作者
    求回复
    • 冬日暖阳 2022-12-23
      您好,operator_id 必须传,报错还是比较清晰的
    • e05e48f636ab 回复 冬日暖阳 2022-12-23
      {"threshold_type":1,"is_forbid_public_take":false,"valid_time_generate_type":1,"app_name":"三亚海旅免税会员购","title":"满10减1优惠券测试(勿用)","applicable_online_goods_range_type":1,"budget_use_total_qty":1000,"budget_send_total_qty":1000,"threshold_amount":100,"value":1,"operator_type":1,"operator_id":10001531,"verify_channel_range_type":0,"verify_channels":["offline_pos"],"preferential_mode":1,"voucher_value_generate_type":1,"description":"活动描述-测试券勿用测试券勿用测试券勿用测试券勿用","user_take_num_limit":1,"absolute_valid_start_time":"2022-12-21 00:00:00","absolute_valid_end_time":"2022-12-23 00:00:00","expire_notice_days":3,"is_forbid_overlay_preferential":true}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      以下报错:
      {"trace_id":"yz7-0a35001c-1671702353780-761289","code":161201012,"success":false,"message":"operatorId不能为null"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      {"trace_id":"yz7-0ae85be6-1671702463458-950628","code":161201012,"success":false,"message":"title不能为null"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      {"trace_id":"yz7-0a350a44-1671702514127-134752","code":161201012,"success":false,"message":"operatorType不能为null"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      {"trace_id":"yz7-0a350a43-1671702563829-106133","code":161201012,"success":false,"message":"预算核销总量不能为空"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      {"trace_id":"yz7-0a350a43-1671702563829-106133","code":161201012,"success":false,"message":"预算核销总量不能为空"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      {"trace_id":"yz7-0ae85be8-1671612131522-744824","code":161201012,"success":false,"message":"预算放总量不能为空"}
    • e05e48f636ab 回复 e05e48f636ab 2022-12-23
      上面的几个报错,麻烦回复。脑瓜疼,我们是微商城单店,只有一个账号,还有一下疑问:(1) operator_type  这个字段选啥?(2) verify_channels  这个字段选择?我们抓单后根据是否用 优惠券自己记录核销。(3)preferential_mode  优惠券活动是不是选择 代金券?
    加载更多

    e05e48f636ab 青铜   2022-12-23 | 只看该作者
    有人回复吗?
    • 冬日暖阳 2022-12-26
      您好,1.operator_type这个按照您的自己需求填写
      2.verify_channels  也是按照您的需求填
      3.preferential_mode 这些接口文档里面都有描述的,具体是什么券类型选什么值
      上面的报错
      operator_id需要填写:创建活动操作人(总店创建活动可不传,当分店创建活动时,操作人id必填,填写有赞员工的userId)
      title参数必填,不能为空

    1跳至
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    复制链接
    新浪微博
    QQ空间
    微信扫码
    • 回复

    • 评分

    客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

    复制成功