开放平台

增加计次

请求地址(POST)

https://openapi.1card1.cn/OpenApi/Count_Add?openId=[OpenId]&signature=[Signature]&timestamp=[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 是否成功及提示

增加计次 调试