文档中心 > 消息类目 > 零售通POS开放平台消息

alibaba_lst_CashierSync (收银快照同步消息)

消息产生条件

零售通POS向零售通云端同步收银快照,包括订单和商品快照(离线收银,在线收银)后,零售通即会向接入商消息推送。
收银快照同步消息(LST不主动推送库存同步消息,LST维护自己库存,ISV根据订单中商品快照数量,维护ISV端对应商品库存)。
离线收银(联网后分批次消息推送),在线收银(准实时消息推送)。

消息属性

名称 类型 是否必须 示例值 描述
data_json String 可选 { "isvTradeFlowNum": "tradeFlowNum150", "tradeFlowNum": "tradeFlowNum150", "userId": 1, "payType": "alipay", "payStatus": "paySuccess", "totalPrice": 200, "totalActualPrice": 199, "gmtGreate": 123456, "gmtModified": 123456, "appKey": "23669885", "source": "sixun", "cashierGoodsDetailDTOList": [ { "goodsActualPrice": 100, "goodsCostPrice": 60, "count": 2, "barCode": "barcode", "goodsId": 1, "isvGoodsId": "1", "goodsName": "goods_name", "goodsOriginPrice": 120 } ], "originalTradeFlowNum": "", "orderType": 0, "deviceType": 0, "hardwareId": "123456789", "brand": "思讯", "model": "POS桌面端", "cashierPayDetailDTOList": [ { "payFlowNum": "payFlowNum1", "descInfo": "descInfo1", "bizType": 0, "payType": "alipay", "payAmount": 7000, "gmtCreate": 1519441981775, "payAccount": "payAccount1", "payStatus": "paySuccess" } ] } 收银快照同步消息消息体内容JSON串
msg_biz_id String 可选 alibaba_lst_CashierSync|1|tradeFlowNum150 消息业务Id

消息示例

{
	"msg_biz_id":"alibaba_lst_CashierSync|1|tradeFlowNum150",
	"data_json":"{   \"isvTradeFlowNum\": \"tradeFlowNum150\",   \"tradeFlowNum\": \"tradeFlowNum150\",   \"userId\": 1,   \"payType\": \"alipay\",   \"payStatus\": \"paySuccess\",   \"totalPrice\": 200,   \"totalActualPrice\": 199,   \"gmtGreate\": 123456,   \"gmtModified\": 123456,   \"appKey\": \"23669885\",   \"source\": \"sixun\",   \"cashierGoodsDetailDTOList\": [     {       \"goodsActualPrice\": 100,       \"goodsCostPrice\": 60,       \"count\": 2,       \"barCode\": \"barcode\",       \"goodsId\": 1,       \"isvGoodsId\": \"1\",       \"goodsName\": \"goods_name\",       \"goodsOriginPrice\": 120     }   ],   \"originalTradeFlowNum\": \"\",   \"orderType\": 0,   \"deviceType\": 0,   \"hardwareId\": \"123456789\",   \"brand\": \"思讯\",   \"model\": \"POS桌面端\",   \"cashierPayDetailDTOList\": [       {         \"payFlowNum\": \"payFlowNum1\",         \"descInfo\": \"descInfo1\",         \"bizType\": 0,         \"payType\": \"alipay\",         \"payAmount\": 7000,         \"gmtCreate\": 1519441981775,         \"payAccount\": \"payAccount1\",         \"payStatus\": \"paySuccess\"       }     ] }"
}

消息工具

如何获得此消息

返回
顶部