5.6获取会员卡储值流水

优质
小牛编辑
128浏览
2023-12-01
此协议用于门店获取微信卡储值交易流水。

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称mb_getmcfoliostring
getGET参数组,本组参数需要参与签名object
└date查询日期20190827number
└getallgetall=1,获取全部门店流水,0或无此参数默认获取本店的流水1number
└type获取储值流水/积分流水。MC=储值,PT=积分,默认不填为储值流水string

请求示例

{
	"action": {
		"action": "mb_getmcfolio"
	},
	"get": {
		"date": "20190827",
		"getall": "1",
		"type": ""
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
type类型MCstring
listlist
└id交易流水id27336761number
└accid会员卡id8415902number
└cardno会员卡号18662823792number
└name会员卡姓名测试string
└date日期20190827number
└time交易时间2019-08-27 13:49:26string
└msid交易门店编号(0表示是线上平台的交易)0number
└msname门店名称后台string
└subject备注会员权益充值string
└amt交易金额0.01number
└bonusamt赠送金额0.00number
└debit1:充值交易,-1:扣款交易1number
└balance交易后的余额10061.01number
└refno交易关联业务单号0number
└isbonus1:赠送金额,0:正常充值,扣款交易都为00number
└memo备注会员权益充值string
└op操作员string
msid接口调用门店编号24667number

响应示例

{
  "status": "1",
  "type": "MC",
  "list": [
    
    {
      "id": "27336761",
      "accid": "8415902",
      "cardno": "18662823792",
      "name": "测试",
      "date": "20190827",
      "time": "2019-08-27 13:49:26",
      "msid": "0",
      "msname": "后台",
      "subject": "会员权益充值",
      "amt": "0.01",
      "bonusamt": "0.00",
      "debit": "1",
      "balance": "10061.01",
      "refno": "0",
      "isbonus": "0",
      "memo": "会员权益充值",
      "op": ""
    }
  ],
  "server_timestamp": 1566888644,
  "server_time": "2019-08-27 14:50:44",
  "server_name": "api-98.hz",
  "msid": "24667"
}