会员积分调整 Member Bonus Adj


公共参数名称 公共参数值
method fzapi.crm.MemberBonusAdj
content 请求参数集合,详见下面请求参数说明

请求参数说明

参数 类型 是否必填 最大长度 描述 示例值
store_code String 20 商场号 80004
member_code String 20 会员号
telephone String 20 手机号
docno String 20 积分调整单号
bonus_type String 20 积分调整类型
bonus_adj String 10 积分值(正数为加,负数为减)
reason_code String 30 调整原因
lastmodifier String 30 最后修改人
datasoure String 20 来源

响应数据说明

参数 类型 是否必填 最大长度 描述 示例值
success bool 返回成功 true
code String 返回代码 1000
msg String 返回描述 Success
data String 返回信息 会员号member_code会员名称member_surname,会员等级grade,会员积分current_bonus

请求数据示例:

string strurl = "http://localhost:32052/fzapi.ashx?timestamp=2013-01-01 08:08:08&method=fzapi.crm.MemberBonusAdj&app_id=FZ2020170011&charset=utf-8&sign_type=md5&sign=udf4+clgqi8qx9nugdzs0r3wpiq=&version=1.0.0&format=json&content={0}";

        string str = "{\"member_code\":\"800000000003\",\"bonus_type\":\"11\",\"bonus\":\"10\",\"remark\":\"测试0324\"}";

        strurl = string.Format(strurl, HttpUtility.UrlEncode(str));

        HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(strurl);

        Encoding encoding = Encoding.UTF8;

        httpWebRequest.ContentType = "application/json";

        httpWebRequest.Method = "GET";

        HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();

        StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());

        string responseContent = streamReader.ReadToEnd();

        httpWebResponse.Close();

        streamReader.Close();
响应数据示例:

{

"success":true,

"code":"1000",

"msg":"Success",

"data":{
     "member_code":"8801010181522",
     "member_surname":"haha",
     "grade":"C1",
     "current_bonus":"12"
     }
}

results matching ""

    No results matching ""