微信核销 Wechat write off
公共参数名称 | 公共参数值 |
---|---|
method | fzapi.crm.Wechatwriteoff |
content | 请求参数集合,详见下面请求参数说明 |
请求参数说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
used_member_code | String | 否(组别:usercode) | 20 | 用券会员号 | YX10800001 |
used_member_telephone | String | 否(组别:usercode) | 20 | 用券会员手机号 | 1521817890 |
trade_date | date | 是 | 20 | 单据时间(yyyy-MM-dd) | 2019-10-01 |
trade_docno | String | 是 | 20 | 单据号 | YX10800001 |
trade_amount | decimal | 是 | 20 | 单据金额 | 100 |
giftcert_code | String | 是 | 20 | 核销券号 | hx10800001 |
store_code | String | 是 | 20 | 店铺号 | gz01 |
*PS:是否必填-同组别字段不能全为空
响应数据说明
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
success | bool | 返回成功 | true | ||
code | String | 返回代码 | 1000 | ||
msg | String | 返回描述 | Success | ||
data | String | 返回信息 | '' |
请求数据示例:
string str = "{"member_code":"GZ01020018831","giftcert_code":"81121150741462","store_code":"G04BL180024"}";
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":null
}