会员资料更新 Update Member Info


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

请求参数说明

参数 类型 是否必填 最大长度 描述 示例值
telephone String 20 手机号
member_code String 20 会员号
member_surname String 20 姓名
sex String 1 性别(F=女,M=男) M
dob String 10 出生年月
member_givenname String 20 昵称
certificate_type String 2 证件类型,1=身份证,2=士官证,3=台胞证,4=驾驶证,5=护照,6=港澳同胞来往大陆通行证,7=其他 1
id_no String 20 证件号码
province String 10 省代码
city String 10 市代码
zone String 10 区代码
address String 128 地址
weixin_id String 20 微信ID
other String 128 其他
postal String 10 邮政编码
email String 20 邮件
lastmodifier String 20 最后修改人
grade String 2 等级编号
other_info Array 500 所有其他信息 [{"key": "interest", "value": ["01","02"]},{"key": "constellation","value": ["01"]},{"key": "maritalstatus ","value": ["0"]}]
license_plate Array 200 车牌信息 [{"car_no": "粤001"},{"car_no": "粤002"}]

响应数据说明

参数 类型 是否必填 最大长度 描述 示例值
success bool 返回成功 true
code String 返回代码 1000
msg String 返回描述 Success
data String 返回信息 会员号member_code,开卡商场mall_id

请求数据示例:

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

        string str =
                "{\"member_name_chn\":\"小童\",\"id_no\":\"441522199009\",\"telephone\":\"15912340000\",\"sex\":\"M\",
                \"register_channel\":\"2\",\"carlicense\":\"粤A 88888\",\"studentId\":\"S20211103\",
                \"classId\":\"C03\",\"userImg\":null,\"parentId\":null,\"email\":null,\"dob\":\"1999-12-01\",
                \"address\":null,\"IC_cardno\":\"20171218\",\"hardMAC_address\":null}";


        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":"80000000181",
        "mall_id":"80004",

    }
}

results matching ""

    No results matching ""