获取礼品资料 Get Gift Info


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

请求参数说明

参数 类型 是否必填 最大长度 描述 示例值
mall_id String 20 商场号
IsCheckQoh String 10 检查是否有库存礼品资料(true,false) true
IsCheckEffect String 10 是否有效(true,false) true
int_start int 4 从第几页开始
int_limit int 4 每页几条数据

响应数据说明

参数 类型 是否必填 最大长度 描述 示例值
success bool 返回成功 true
code String 返回代码 1000
msg String 返回描述 Success
data String 返回信息 总行数total_rn,行号rn,礼品编号item_no,礼品名称item_name,礼品所需积分bonus_exchange,礼品库存qoh,礼品允许最大兑换数redeemqty,礼品生效日期effect_date,礼品失效日期cutoff_date

请求数据示例:

string strurl = "http://localhost:32052/fzapi.ashx?timestamp=2018-12-05 16:43:06&method=fzapi.crm.EnqGiftInfo&app_id=FZ2020170011&apiSecret=fz7msj3cin&charset=utf-8&sign_type=md5&version=1.0.0&sign=a8a130d722e4cf3704f1329c7b5a1c65&content={0}";

        string str = "{"mall_id":"GZ01"}";

        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":"79",
            "rn":"1",
            "item_no":"8000418001",
            "item_name":"玻璃杯",
            "bonus_exchange":"1000",
            "qoh":"-7",
            "redeemqty":"999",
            "effect_date":"2018-06-01T00:00:00",
            "cutoff_date":"2018-12-31T00:00:00"
            ]}

}

results matching ""

    No results matching ""