开放平台

该页面用于说明系统Post到第三方的数据,如需配置推送URL,请联系业务经理!

1:消费收银

data={"BusinessType":"Consume","BusinessAccount":"baibao","CardId":"001", "BillNumber":"XF20190123000001", "OperateTime":"2019-01-23 16:50:50","UserAccout":"10000", "ChainStoreName":"总店","ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142", "PayWays":{"PaidMoney":100.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000,"PaidValue":0.0000,"PaidThirdpay":0.0000}, "ConsumeItems":[{"BarCode":"091827","Name":"哑铃","Number":1.0000,"PaidSum":100.0000, "PointGet":100.0000}]}

字段 说明
BusinessType 业务类型,在该Post为Consume
BusinessAccount 商家账号
CardId 会员卡号,为空则为散客
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
ChainStoreGuid 操作店面Guid
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)
ConsumeItems 消费明细,1:BarCode(消费项目编码)、2:Name(消费项目名称)、3:Number(消费数量)、 4:PaidSum(明细支付金额)、5:PointGet(消费获得积分)

2:快速消费

data={"BusinessType":"FastConsumption","BusinessAccount":"baibao","CardId":"001", "BillNumber":"XF20181228000002","OperateTime":"2018-12-28 16:18:14","UserAccout":"10000", "ChainStoreName":"总店","ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142","PayWays": {"PaidMoney":100.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000,"PaidValue":0.0000, "PaidThirdpay":0.0000},"ConsumeItems":null}

字段 说明
BusinessType 业务类型,在该Post为FastConsumption
BusinessAccount 商家账号
CardId 会员卡号,为空则为散客
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
ChainStoreGuid 操作店面Guid
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)
ConsumeItems 暂时为null

3:储值变更

data={"BusinessType":"ValueUpdate","CardId":"001","BillNumber":"CZ20190123000001", "OperateTime":"2019-01-23 17:35:50","UserAccout":"10000","ChainStoreName":"总店", "Value":100.0000,"ValueBalance":4317.8789,"PayWays":{"PaidMoney":100.0000, "PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000, "PaidPoint":0.0000,"PaidValue":0.0000,"PaidThirdpay":0.0000}}

字段 说明
BusinessType 业务类型,在该Post为ValueUpdate
CardId 会员卡号
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
Value 储值变更值,正数为增加负数为扣除
ValueBalance 当前可用储值
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)

4:积分变更

data={"BusinessType":"PointUpdate","CardId":"001","ConsumeMoney":0,"BillNumber":"JF20190123000001", "OperateTime":"2019-01-23 17:40:34","UserAccout":"10000","ChainStoreName":"总店","Way":-3, "Point":10.0000,"PointBalance":991344.5000}

字段 说明
BusinessType 业务类型,在该Post为PointUpdate
CardId 会员卡号
ConsumeMoney 消费金额
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
Way 积分方式
Point 积分变更值,正数为增加负数为扣除
PointBalance 当前可用积分

5:优惠券发送、核销

data={"BusinessType":"Coupon","OperateType":"CouponSend","CouponGuid":"9e4fadf5-1ef5-11e9-9b0d-20040fed9860","Title":"10元代金券", "SendNoteGuid":"9e4fadf5-1ef5-11e9-9b0d-20040fed9860","SendCount":1,"BillNumber":"","CardId":"001", "MemberGuid":"217e20ef-43d6-e711-b56c-0010186c9142"}

字段 说明
BusinessType 业务类型,在该Post为Coupon
OperateType 操作类型,1:优惠券发送CouponSend、2:优惠券核销CouponUse
SendNoteGuid 优惠券发送记录标识
CouponGuid 优惠券标识
Title 优惠券标题
SendCount 发送张数
BillNumber 单据号
CardId 会员卡号
MemberGuid 会员Guid

6:会员注册

data={"BusinessType":"AddMember","CardId":"2019-1-23001","CaRecommendMemberCardIdrdId":"001", "TrueName":"小王","Mobile": "13512344321","MemberGroupName":"默认级别","UserAccount":"10000","ChainStoreName":"总店","RegisterTime":"2019-01-23 18:05:33"}

字段 说明
BusinessType 业务类型,在该Post为AddMember
CardId 会员卡号
CaRecommendMemberCardIdrdId 推荐人卡号
TrueName 姓名
Mobile 手机
MemberGroupName 会员级别
UserAccount 登记工号
ChainStoreName 登记店面
RegisterTime 登记时间

7:充值退单

data={"BusinessType":"RevokeBill","BusinessAccount":"baibao","OperateType":"ValueRevoke", "BillNumber":"CZ20190123000001"}

字段 说明
BusinessType 业务类型,在该Post为RevokeBill
BusinessAccount 商家账号
OperateType 在该Post为ValueRevoke
BillNumber 单据号

8:快速消费整单退单

data={"BusinessType":"RevokeBill","BusinessAccount":"baibao","OperateType":"ConsumeRevoke","CardId":"001","BillNumber": "XF20190107000001","PayWays":{"PaidMoney":20.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000, "PaidValue":0.0000,"PaidThirdpay":0.0000},"ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142","ThirdpayTradeNo":""}

字段 说明
BusinessType 业务类型,在该Post为RevokeBill
BusinessAccount 商家账号
OperateType 在该Post为ConsumeRevoke
CardId 会员卡号,为空则为散客
BillNumber 单据号
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)
ChainStoreGuid 操作店面Guid
ThirdpayTradeNo 第三方支付交易号

9:消费收银整单退货

data={"BusinessType":"ReturnConsumeNote","BusinessAccount":"baibao","CardId":"001","BillNumber":"TH20190124000004","OperateTime": "2019-01-24 09:56:32","UserAccout":"10000","ChainStoreName":"总店","ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142", "PayWays":{"PaidMoney":-108.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000,"PaidValue":0.0000, "PaidThirdpay":0.0000}}

字段 说明
BusinessType 业务类型,在该Post为ReturnConsumeNote
BusinessAccount 商家账号
CardId 会员卡号,为空则为散客
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
ChainStoreGuid 操作店面Guid
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)

10:增加计次(含退单)

data={"BusinessType":"AddCount","BusinessAccount":"baibao","CardId":"001", "BillNumber":"JC20190124000001","OperateTime":"2019-01-24 09:09:11","UserAccout":"10000", "ChainStoreName":"总店","ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142","PayWays": {"PaidMoney":10.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000,"PaidValue":0.0000,"PaidThirdpay":0.0000}}

字段 说明
BusinessType 业务类型,在该Post为AddCount
BusinessAccount 商家账号
CardId 会员卡号
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
ChainStoreGuid 操作店面Guid
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)[退单时支付组合的值都为负数]

11:礼品兑换(含退单)

data={"BusinessType":"GiftExchange","BusinessAccount":"baibao","BillNumber":"DH20190124000001", "ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142","Point":100.0000}

字段 说明
BusinessType 业务类型,在该Post为GiftExchange
BusinessAccount 商家账号
BillNumber 单据号
ChainStoreGuid 操作店面Guid
Point 兑换积分[退单时值为负数]

12:消费收银或快速消费部分退单

data={"BusinessType":"PartReturnNote","BusinessAccount":"baibao","CardId":"001","BillNumber":"TH20190124000002", "OperateTime":"2019-01-24 09:28:27","UserAccout":"10000","ChainStoreName":"总店","ChainStoreGuid":"808e9f6b-923f-e711-b841-0010186c9142","PayWays": {"PaidMoney":-10.0000,"PaidOther":0.0000,"PaidCoupon":0.0000,"PaidCard":0.0000,"PaidPoint":0.0000,"PaidValue":0.0000,"PaidThirdpay":0.0000}}

字段 说明
BusinessType 业务类型,在该Post为PartReturnNote
BusinessAccount 商家账号
CardId 会员卡号,为空则为散客
BillNumber 单据号
OperateTime 操作时间
UserAccout 操作工号
ChainStoreName 操作店面名称
ChainStoreGuid 操作店面Guid
PayWays 支付组合,1:PaidMoney(现金支付)、2:PaidOther(其他支付)、3:PaidCoupon(优惠券支付)、 4:PaidCard(银行卡支付)、5:PaidPoint(积分支付)、6:PaidValue(储值支付)、 7:PaidThirdpay(第三方支付)