有赞新零售社区

发帖
API使用问题»调用加积分接口返回 141500101

[API调用-会员/营销] 调用加积分接口返回 141500101

5e2dc2217eb4 04-02 180 浏览 6 评论 | 只看楼主 [打印]  关闭
https://doc.youzanyun.com/detail/API/0/872
调用加积分接口返回:
{
"trace_id": "yz7-0a350a43-1711976706973-54791",
"code": 141500101,
"success": false,
"message": "user user不能为空; reason reason不能为空"
}


参数格式:
$method = 'youzan.crm.customer.points.increase';
$apiVersion = '4.0.0';
$params =[  "params" => "["reason"=>"测试积分","biz_value"=>"yz150XXXX7970","is_do_ext_point"=>false,"check_customer"=>false,"source_kdt_id"=>"139XXXXXX","channel_type"=>0,"user"=>["account_type"=>2,"account_id"=>"150XXXX7970"],"points"=>10]"]
用手机打开
收藏 ··· 回复
    您好,参数格式错误了,params是一个object,您传的String
    "body": "{\"params\":\"[\\\"reason\\\"=>\\\"\\u6d4b\\u8bd5\\u589e\\u52a0\\u79ef\\u5206\\\",\\\"biz_value\\\"=>\\\"IN202409220100131111\\\",\\\"is_do_ext_point\\\"=>false,\\\"check_customer\\\"=>false,\\\"source_kdt_id\\\"=>\\\"139142514\\\",\\\"channel_type\\\"=>0,\\\"user\\\"=>[\\\"account_type\\\"=>2,\\\"account_id\\\"=>\\\"15011447970\\\"],\\\"points\\\"=>10]\"}",

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

    本版积分规则

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

    • 评分

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

    复制成功