积分记录查询Member Bonus Record
公共参数名称 | 公共参数值 |
---|---|
method | fzapi.crm.MemberBonusRecord |
content | 请求参数集合,详见下面请求参数说明 |
请求参数说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
member_code | String | 否 | 20 | 会员号 | |
telephone | String | 否 | 20 | 手机号 | |
id_no | String | 否 | 20 | 证件号 | |
bonus_type | String | 否 | 2 | 积分类型 | |
start_date | String | 否 | 10 | 开始时间 | |
end_date | String | 否 | 10 | 结束时间 | |
int_start | int | 否 | 4 | 从第几页开始 | |
int_limit | int | 否 | 4 | 每页几条数据 |
响应数据说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
success | bool | 返回成功 | true | ||
code | String | 返回代码 | 1000 | ||
msg | String | 返回描述 | Success | ||
data | String | 返回信息 | 总行数total_rn,行号rn,会员账号account_no,交易日期bonus_date,交易时间bonus_time,交易店铺store_code,交易店铺名称store_name,交易单号doc_no,交易金额sales_amount,积分bonus,积分类型bonus_type,积分类型名称type_name,备注remark |
请求数据示例:
string str = "{"member_code":"GZ01020018832","int_start":"1","int_limit":"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":[
{
"total_rn":"23",
"rn":"1",
"member_code":"80004020000359",
"account_no":"80004020000359",
"bonus_date":"2020-03-23",
"bonus_time":"2020-03-23 10:28:18",
"store_code":"80004L170027",
"store_name":"C.P.U",
"doc_no":"123",
"sales_amount":"123",
"bonus":"0",
"bonus_type":"E",
"type_name":"销售录入",
"remark":null
}
]
}