API
库存变化事件
更新时间: 2021-06-29 17:57:44 访问次数:712

库存变化事件

请求方法POST

示例

Token: 89435277FA3BA272DE795559998E-

Client_secret:ODQ4YWY0ZWETMZLLZC00MJFJLTG3NWUTYTMWNGIYMJFINJFJODK4OTMZNZY1NDA3MJE3MA==

Winit推送的报文

解密前报文示例

E164B042328EA66E3A78F3C253B24B6EDCAF5DAC6F6DE1E6FE75E55396DFB7B507515BE9BF9E2AC11D0425F2F354684A7C84583338E292792A66DBA4009AB1B8C70BEB6AE7319FC988AF04BAA252E81288EA880A0C64462D64ED9BF55E72F8F29081837986B853337D04971B3C09E4EE1DADCF44F63C3B0886BAA9C68FE8E0CDB82DB766DB4ACA7C74A37D8D5938AA74B6F778114B7624A4A86963D607A1D951F01322B4DD189BA2DAC31351BC60E1AD51D52B48CD26DD5CF42015ED56C638EAC942AB62D8D6B517C58F863A7C4AA0C00C92674B41C2C0323E071963FFA2583CA76A09400D46EB8DBBD68F5A139A7981046487E36AF266EDF801EF6A8330BD496510A4EDB56A5A603EA53E1DC5C7C6359DA7B719DC2BFA892F97B26D0316E400B4A2D21D90447FA8547C1BB4144B18FC3B3981002CD07350F3B5B5780ED4BF9F3F5ACC26642160F1F68EB4F622F4741B8DA52A3000DA3A142B4643A890F5D01A

解密后报文示例

[{

         "customerCode": "1000019",

         "docDate": 1624331458650,

         "docType": "OUTBOUND",

         "inventoryType": "USABLE",

         "merchandiseCode": "MB0044",

         "merchandiseGrade": "GOOD",

         "merchandiseSerno": "M010000000001912345",

         "operationType": "SUBMIT_ORDER",

         "orderNo": "WO4912345678",

         "qty": -1,

         "serviceType": "2C",

         "specification": "",

         "uuid": "10101213",

         "warehouseCode": "US0001"

}, {

         "customerCode": "1000019",

         "docDate": 1624331458650,

         "docType": "OUTBOUND",

         "inventoryType": "OUTFROZEN",

         "merchandiseCode": "MB0044",

         "merchandiseGrade": "GOOD",

         "merchandiseSerno": " M010000000001912345",

         "operationType": "SUBMIT_ORDER",

         "orderNo": " WO4912345678",

         "qty": 1,

         "serviceType": "2C",

         "specification": "",

         "uuid": "10101212",

         "warehouseCode": "US0001"

}]

 

开发者返回的示例

fail

字段说明

请求

字段名

类型

字段

说明

customerCode

String(20)

Winit客户编码

Winit客户编码

docDate

Date

变更时间

时间戳

docType

String(30)

单据类型

INBOUND标准入库

INBOUND_RETURN退货入库

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搬仓

inventoryType

 

库存类型

USABLE可用

INSTOCK在库

OUTFROZEN出库冻结

LOSEFROZEN丢失冻结

MANAULFROZEN禁止出库冻结

ONORDER在途

merchandiseCode

String100)

商品编码

Winit商品编码/SKU

merchandiseSerno

String(20)

 

商品条码

merchandiseGrade

String(30)

商品等级

Winit商品等级
GOOD-良品
DEFECTIVE:不良品

originalMerchandiseSerno

String(20)

商品条码

Winit商品条码
当merchandiseSerno为RM条码时,这里是关联的M条码

operationType

String(30)

库存操作类型

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

取消

orderNo

String(30)

订单号

Winit订单号

qyt

int

数量

描述:库存变更数量,正数是加,负数是减

serviceType

String(30)

库存服务类型

2C
2B

specification

String100)

 

商品规格

uuid

String(20)

ID

记录唯一ID

warehouseCode

String(20)

仓库编码

winit仓库编码

返回

字段

类型

字段

说明

success

String(7)

接收成功

消息接收成功

PS:接收成功/接收失败 二选一推送

fail

String(4)

接收失败

消息接收失败

PS:接收成功/接收失败 二选一推送

 

关键词