API
海外仓库存更新事件
更新时间: 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) 接收失败 消息接收失败

示例

解密后报文示例

  1. [{
  2. "customerCode": "1000019",
  3. "docDate": 1622625054158,
  4. "docType": "OUTBOUND",
  5. "inventoryType": "USABLE",
  6. "merchandiseCode": "216401",
  7. "merchandiseGrade": "GOOD",
  8. "merchandiseSerno": "M010000000000498047",
  9. "operationType": "CANCEL_ORDER",
  10. "orderNo": "WO0000000146",
  11. "qty": 1,
  12. "serviceType": "2C",
  13. "specification": "",
  14. "uuid": "6280417",
  15. "warehouseCode": "USWC2",
  16. "mainwarehouseCode": "US0001"
  17. }, {
  18. "customerCode": "1000019",
  19. "docDate": 1622625054158,
  20. "docType": "OUTBOUND",
  21. "inventoryType": "OUTFROZEN",
  22. "merchandiseCode": "216401",
  23. "merchandiseGrade": "GOOD",
  24. "merchandiseSerno": "M010000000000498047",
  25. "operationType": "CANCEL_ORDER",
  26. "orderNo": "WO0000000146",
  27. "qty": -1,
  28. "serviceType": "2C",
  29. "specification": "",
  30. "uuid": "6280417",
  31. "warehouseCode": "USWC2",
  32. "mainwarehouseCode": "US0001"
  33. }]

开发者返回的示例

  1. success

#

关键词