5.16获取会员卡交易流水

优质
小牛编辑
130浏览
2023-12-01
此协议用于门店获取会员卡交易流水(只返回最近20条数据)

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称mb_getmctransstring
getGET参数组,本组参数需要参与签名object
└id会员卡id(id、mbno二选其中之一)9388974number
└mbno会员卡mbno(id、mbno二选其中之一)18862302470number
└getallgetall=1,获取全部门店流水,0或无此参数默认获取本店的流水1number
└type获取储值流水/积分流水。MC=储值,PT=积分,默认不填为储值流水ptstring

请求示例

{
	"action": {
		"action": "mb_getmctrans"
	},
	"get": {
                "id": "9388974",
		"mbno": "18862302470",
                "getall": "1",
               "type": "pt"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
listlist
└id积分流水号27336761number
└accid会员卡id8415902number
└cardno会员卡号18662823792number
└name会员名称测试string
└date日期20190827number
└time交易时间2019-08-27 13:49:26string
└msid0number
└msname交易门店后台string
└subject摘要会员权益充值string
└amt金额0.01number
└bonusamt赠送金额0.00number
└debit1number
└balance余额10061.01number
└refno交易关联业务单号0number
└isbonus0number
└memo备注会员消费string
└op操作员string
msid24667number

响应示例

{
  "status": "1",
  "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"
}