礼品兑换、退换Gift Exchange
公共参数名称 | 公共参数值 |
---|---|
method | fzapi.crm.GiftExchange |
content | 请求参数集合,详见下面请求参数说明 |
请求参数说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
member_code | String | 否 | 20 | 会员号 | |
telephone | String | 否 | 20 | 手机号 | |
mall_id | String | 是 | 20 | 商场编号 | |
item_no | String | 是 | 20 | 礼品编号 | |
qty | String | 是 | 2 | 兑换数量 | |
remark | String | 是 | 100 | 备注 | |
oradoc_no | String | 否 | 20 | 退货原单号 | |
datasoure | String | 否 | 20 | 来源 | |
lastmodifier | String | 否 | 20 | 修改人 |
响应数据说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
success | bool | 返回成功 | true | ||
code | String | 返回代码 | 1000 | ||
msg | String | 返回描述 | Success | ||
data | String | 返回信息 | 会员号member_code,会员姓名member_surname,手机号telephone, 性别sex,现有积分current_bonus,其他商场积分bonus_list |
请求数据示例:
string str = "{"member_code":"GZ01010018826","mall_id":"GZ01","item_no":"GZ0118003","qty":"2","remark":"【礼券】*2"}";
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":"80004020000359",
"member_surname":"陈兴平",
"telephone":"15922528401",
"sex":"F",
"current_bonus":"163",
"bonus_list":null
}
}