海外仓库存更新事件
更新时间: 2024-10-22 12:24:23 访问次数:4392
事件名称:EVENT_IMS_SKUINVENTORYUPDATE_V1
事件说明:库存增减变化信息,推送给事件订阅的开发者
字段说明
请求
名称 | 类型 | 必填 | 字段 | 说明 |
---|---|---|---|---|
customerCode | String(20) | Y | 客户编码 | Winit客户编码 |
docDate | Date | Y | 变更时间 | 变更时间戳,eg: 1622638202000 |
docType | String(30) | Y | 单据类型 | INBOUND标准入库 INBOUND_RETURN退货入库 INBOUND_DOMESTIC国内验入库 INBOUND_OVERSEAS海外直发入库 INBOUND_ALLOCATION调拨入库 OUTBOUND标准出库 OUTBOUND_TAKE_THEIR自提出库 OUTBOUND_DESTRUCTION销毁出库 OUTBOUND_ALLOCATION调拨出库 INVENTORY_FROZEN库存冻结 INVENTORY_UNFROZEN 库存解冻 INVENTORY_ADJUSTMENT库存调整 INV_TYPE_ADJ库存分类调整 ABNORMAL_PICKING拣选异常 ABNORMAL_PICKING_SECOND二次分拣异常 ABNORMAL_PACKING打包异常 ABNORMAL_STOCKTAKING 盘点异常 ABNORMAL_MOVEDOWN库内下架异常 RETURN_INVENTORY回退库存(退货) TRANSFER_WHAREHOUSE搬仓 |
orderNo | String(128) | Y | 订单号 | |
merchandiseCode | String100) | Y | 商品编码 | Winit商品编码/SKU |
specification | String100) | N | 商品规格 | |
merchandiseSerno | String(20) | Y | 商品条码 | WINIT商品唯一标识 |
originalMerchandiseSerno | String(20) | N | 商品条码 | 当merchandiseSerno为RM条码时,这里是关联的M条码 |
merchandiseGrade | String(30) | Y | 商品等级 | Winit商品等级 GOOD-良品 DEFECTIVE:不良品 |
warehouseCode | String(30) | Y | 仓库编码 | |
mainWarehouseCode | String(20) | Y | 主仓库编码 | |
operationType | String(30) | Y | 库存操作类型 | INSPECTION 验货 SHELVES上架 SHELVES_SUPPLY补上架 SUBMIT_ORDER提交订单 CANCEL_ORDER取消订单 SHIPMENTS发货 INVENTORY_PROFIT盘盈 INVENTORY_LOSS盘亏 FROZEN冻结 UNFROZEN解冻 LOST_CONFIRMING丢失确认中 LOST已丢失 RESHELVES重新上架 ALLOCATION_INBOUND调拨入库 RETURN_INVENTORY回退库存(退货用) INBOUND_LOST入库丢失 TRANSFER_WHAREHOUSE_IN搬仓搬入 TRANSFER_WHAREHOUSE_OUT搬仓搬出 TRANSFORM转换 ADJUST调整库存 CANCEL取消 |
serviceType | String(30) | Y | 库存服务类型 | Winit库存类型, 2B 2C |
inventoryType | String() | Y | 库存类型 | USABLE可用 INSTOCK在库 OUTFROZEN出库冻结 LOSEFROZEN丢失冻结 ONORDER在途 PROHIBITFROZEN 禁止出库冻结 MANAULFROZEN非出库冻结 |
qty | int | Y | 库存变更数量 | 正数是加,负数是减 |
uuid | String(30) | Y | ID | 记录唯一ID |
返回
注:返回success即可,无需加引号逗号等其他信息
名称 | 类型 | 字段 | 说明 |
---|---|---|---|
success | String(7) | 接收成功 | 消息接收成功 |
fail | String(4) | 接收失败 | 消息接收失败 |
示例
解密后报文示例
[{
"customerCode": "1000019",
"docDate": 1622625054158,
"docType": "OUTBOUND",
"inventoryType": "USABLE",
"merchandiseCode": "216401",
"merchandiseGrade": "GOOD",
"merchandiseSerno": "M010000000000498047",
"operationType": "CANCEL_ORDER",
"orderNo": "WO0000000146",
"qty": 1,
"serviceType": "2C",
"specification": "",
"uuid": "6280417",
"warehouseCode": "USWC2",
"mainwarehouseCode": "US0001"
}, {
"customerCode": "1000019",
"docDate": 1622625054158,
"docType": "OUTBOUND",
"inventoryType": "OUTFROZEN",
"merchandiseCode": "216401",
"merchandiseGrade": "GOOD",
"merchandiseSerno": "M010000000000498047",
"operationType": "CANCEL_ORDER",
"orderNo": "WO0000000146",
"qty": -1,
"serviceType": "2C",
"specification": "",
"uuid": "6280417",
"warehouseCode": "USWC2",
"mainwarehouseCode": "US0001"
}]
开发者返回的示例
success
#