API
海外仓库存更新事件
更新时间: 2021-06-29 17:57:44 访问次数:3689

事件名称:EVENT_IMS_SKUINVENTORYUPDATE_V1

示例

请求方法POST

Token: 89435277FA3BA272DE795559998E-

Client_secret:ODQ4YWY0ZWETMZLLZC00MJFJLTG3NWUTYTMWNGIYMJFINJFJODK4OTMZNZY1NDA3MJE3MA==

解密前报文示例

B47CEAC30C095E3673FA177A4E767B8E5F9A755878AD05AC8A8DB180F349C2513E030E53A5641A982376532AADCDEE3876ABD6F0514ECD2CFC6E505990BC1CDFB5D6C5FA31C7430C5524C4147E3C51DB5819976370B9B2C913ECD1D31C2F2E345C18DE4776B0F0ACF80453519DA8E7F2FB5B6A3E270D2AED8982B9C5FE9F9BCB47437E17BB176820849E57282250B88DD5FFF7C995A1BE47A18E7DC372935C3DF2AE36602F93DE23FD73534D3EBDB1FD3C7D4321E69C55FABEC2830FEBFE511CD5F7E8E0D7CD43009CF97E2AC27A80953C1A5B97DACAFB4F01B1F54DCFE118DF94879FAC2449A9380213F26FDC7D6D92B04E6D2767F38429D9C1282569312EAB0311CF86D88D0711B3B1FB1ECC3BFC133A337536CE75FF2FABE50099B91436D25F8F37C58421C76AB0ACA683965297A3EF90A71E4DE04D40F7F87B7E6C9CF5BF8EE8FF3A71E0FCA80EB9EAC5267AE75AC70B7BD44CADA163FBC64C4BB271F436402062564DB9DCE60BC2B5189D3BA81389949BEA1F5832BE1A3650212B2C54FB7BA84F139170FEC836444892D77BCDB9076724969833898496D202F6B9290B181E29129ADAFE6B820397A2CAD4B99902154141F483C01FCA349C46CD27B3702D8C0E3A5FB4291AD813D6F4F045EC526804945594172A9381FB0CF776CE0BE2B9CCAD8C5370681041F7130CF409238F17E4DB7A4074794CF1E14CB140D49F79195A38CF0364A9C85F22C35F076C728020A90C79ADF3A03E9F3ED0C669351C452600904AC8E2BB1737F4C0849E610985E5CDB5382949C0F0191F205C765C94342C3484A01CCBBD63715AA68CFA1429375A564D33C94D9F3ECE57B6A98B6CF3361081E4015336EE657A2C6F53020C49D8343E82C1B43A1A66055E074FBC5D6F503154355B4A612DF62A85FF2560F0DDBCE8DD47EF8A1F0C4BBBE035440F33248A853C227B6D2510C5C27234B39000A9FB04

解密后报文示例

[{
    "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"
}]

 

开发者返回的示例

fail

字段说明

请求

名称

类型

字段

必填

说明

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

merchandiseSernoRM条码时,这里是关联的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非出库冻结

qyt

int

库存变更数量

Y

正数是加,负数是减

uuid

String(30)

ID

Y

记录唯一ID


返回

名称

类型

字段

说明

success

String(7)

接收成功

消息接收成功

fail

String(4)

接收失败

消息接收失败

 

关键词