会员注册 Member Registration
公共参数名称 | 公共参数值 |
---|---|
method | fzapi.crm.MemberRegistration |
content | 请求参数集合,详见下面请求参数说明 |
请求参数说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
mall_id | String | 是 | 10 | 开卡商场 | |
telephone | String | 是 | 128 | 手机号 | |
String | 否 | 20 | 邮箱 | ||
sex | String | 否 | 1 | 性别(F=女,M=男) | M |
grade | String | 否 | 2 | 等级编号 | |
dob | String | 否 | 10 | 出生年月日 | |
member_surname | String | 否 | 20 | 姓名 | |
member_givenname | String | 否 | 20 | 昵称 | |
certificatetype | String | 否 | 2 | 证件类型,1=身份证,2=士官证,3=台胞证,4=驾驶证,5=护照,6=港澳同胞来往大陆通行证,7=其他 | 1 |
certificateid | String | 否 | 20 | 证件信息 | |
adress | String | 否 | 128 | 地址 | |
provice | String | 否 | 30 | 省代码 | |
city | String | 否 | 30 | 市代码 | |
zone | String | 否 | 30 | 区代码 | |
postal | String | 否 | 20 | 邮址 | |
vipcardno | String | 否 | 20 | 会员卡号 | |
datasoure | String | 否 | 20 | 数据来源(API=接口,WX=微信,CRM=CRM客服中心,ALI=支付宝) | API |
orgvipcode | String | 否 | 20 | 原卡号 | |
length | int | 否 | 20 | 长度 | 现在已不使用 |
lastmodifier | String | 否 | 20 | 修改人 | |
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.MemberRegistration&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"
}
}