文档
测试

会员信息-保存会员消费记录

POST
http://crm.houcaller.com/htest/openapi/v1/recordMemberCons

接口描述

保存会员消费记录

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填

请求参数

参数名
类型
描述
必填
channel
string
渠道名
必填
timestamp
string
时间戳
必填
param
object
参数(对json字符串进行DES加密)
必填
consAmt
string
积豪币金额
必填
amount
string
订单金额
必填
cuser
string
操作人员
可选
bizDate
string
业务日期
必填
orgCode
string
餐厅编码
可选
srcId
string
订单ID
必填
scoreAmt
string
实付金额
必填
remark
string
备注信息
必填
serialCode
string
唯一业务号
必填
memberId
string
会员ID
必填

响应参数

参数名
类型
描述
必填
msg
string
响应说明
必填
code
number
响应code
必填
data
object
响应结果
必填
scoRate
int
示例:1
必填
srcObj
string
示例:hkl-test
必填
cuser
string
示例:xxiao
必填
checktime
string
示例:2022-02-15 15:30:10
必填
bizDate
string
示例:2022-02-15 00:00:00
必填
incHbbal
int
示例:10
必填
posScore
int
示例:10
必填
remark
string
示例:测试
必填
cardNo
string
示例:9018046355443
必填
mmbId
string
示例:K4H9095FA0008
必填
score
int
示例:0
必填
encryption
string
示例:7343F151E4C91F7554E9F90E7B6DC2F0EFD37DDCD7675AAC119B36E28631B9350355DEF1D3B345BC6B3D5D9C2F8FDAF22BF3DF07B36D0B3DAEB0175C7E6C97DA90A151D23270097711E75D7646D2F96A5291E7072C282C7FBD28B2E373BFB0CB
必填
expScore
int
示例:0
必填
orgCode
string
示例:1
必填
srcId
string
示例:1234567890123
必填
ctime
string
示例:2022-02-15 15:30:10
必填
scoType
int
示例:1
必填
scoreAmt
int
示例:20
必填
id
string
示例:620b5682d806f71fc46e4d72
必填
consAmt
int
示例:10
必填
amount
int
示例:30
必填
gradeId
string
示例:5
必填
realRate
int
示例:1
必填
hbsBusiType
string
示例:-5
必填
incScore
int
示例:0
必填
ordertime
string
示例:2022-02-15 15:30:10
必填
bizDateStr
string
示例:2022-02-15
必填
payAmt
int
示例:0
必填
oriId
string
示例:1234567890123456
必填
ectnum
int
示例:0
必填
expHbbal
int
示例:0
必填
status
int
示例:1
必填

说明 / 示例

param明文示例: ``` { "consAmt": "10", "amount": "30", "cuser": "xxiao", "bizDate": "2022-02-15", "orgCode": "1", "srcId": "1234567890123", "scoreAmt": "20", "remark": "测试", "serialCode": "1234567890123456", "memberId": "K4H9095FA0008" } ``` 响应示例: ``` { "msg": "操作成功", "code": 0, "data": { "scoRate": 1.00, "srcObj": "hkl-test", "cuser": "xxiao", "checktime": "2022-02-15 15:30:10", "bizDate": "2022-02-15 00:00:00", "incHbbal": 10, "posScore": 10, "remark": "测试", "cardNo": "9018046355443", "mmbId": "K4H9095FA0008", "score": 0.00, "encryption": "7343F151E4C91F7554E9F90E7B6DC2F0EFD37DDCD7675AAC119B36E28631B9350355DEF1D3B345BC6B3D5D9C2F8FDAF22BF3DF07B36D0B3DAEB0175C7E6C97DA90A151D23270097711E75D7646D2F96A5291E7072C282C7FBD28B2E373BFB0CB", "expScore": 0.00, "orgCode": "1", "srcId": "1234567890123", "ctime": "2022-02-15 15:30:10", "scoType": 1, "scoreAmt": 20.00, "id": "620b5682d806f71fc46e4d72", "consAmt": 10.00, "amount": 30, "gradeId": "5", "realRate": 1, "hbsBusiType": "-5", "incScore": 0.00, "ordertime": "2022-02-15 15:30:10", "bizDateStr": "2022-02-15", "payAmt": 0, "oriId": "1234567890123456", "ectnum": 0, "expHbbal": 0, "status": 1 } } ```