增加计次
请求地址(POST)
https://openapi.1card1.cn/OpenApi/Count_Add?openId=[OpenId]&signature=[Signature]×tamp=[TimeStamp]
字段 | 说明 |
---|---|
OpenId | 登陆开放平台生成的OpenId |
Signature | 签名=md5(OpenId+Secret+Timestamp+data),格式:32位md5大写加密 |
TimeStamp | 发起请求的时间戳,查看标准timestamp |
请求说明
data={"cardId": "123","passWord":"888888","userAccount": "10000","totalMoney": "12","totalPaid": "12","paidMoney":"12","paidPoint":"0","paidValue":"0","paidCard":"0","paidOther":"0","operateTime":"","meno":"备注","cardMeno":"6225874363474","otherMeno":"","countAddList":[{"goodsItemGuid":"5FD3BDE1-D2FD-E411-AB93-902B34BC625F","count":"2","itemMoney":"4.8","itemPoint":"4.8","durationTime":"","meno":""},{"goodsItemGuid":"5FD3BDE1-D2FD-E411-AB93-902B34BC625F","count":"3","itemMoney":"7.2","itemPoint":"7.2","durationTime":"","meno":""}] }
字段 | 是否必须 | 说明 |
---|---|---|
cardId | 是 | 卡号 |
passWord | 否 | 会员密码(会员系统中设置储值消费或者积分消费需要密码时,此项必须) |
userAccount | 是 | 工号 |
totalMoney | 是 | 应付金额 |
totalPaid | 是 | 实付金额 |
paidMoney | 是 | 现金支付 |
paidPoint | 是 | 积分支付 |
paidValue | 是 | 储值支付 |
paidCard | 是 | 银联支付 |
paidOther | 是 | 其他支付 |
operateTime | 否 | 提交时间(补录单据时使用) |
meno | 否 | 单据备注 |
cardMeno | 否 | 银联支付备注 |
otherMeno | 否 | 其他支付备注 |
countAddList | 是 | Json字符串(goodsItemGuid:商品Guid (通过接口“获取商品列表”获得“Guid”字段) ;count:增加次数;itemMoney:该明细总应付金额; itemPoint:该明细赠送总积分;durationTime:有效期;meno:此明细的备注) |
返回说明
成功时返回:
{"status":0,"billnumber":"JC20150526000002","message":"增加计次成功!"}
失败时返回:
{"status":-1,"message":"增加计次失败!"}
字段 | 是否必须 | 说明 |
---|---|---|
status | 是 | 状态(0,成功;-1,失败) |
billnumber | 否 | 增加计次成功之后的单据号 |
message | 是 | 是否成功及提示 |