API
海外仓实时库存订阅事件
更新时间: 0000-00-00 00:00:00 访问次数:2056

事件名称:EVENT_IMS_INVENTORYUSABLE_UPDATE_V1

事件说明:

  • 商品剩余的可用库存数量,有变更即推送
  • 使用此订阅事件, 需配合使用分类库存查询接口,以此确保查询和推送库存内容一致


示例

请求方法POST

Token: 89435277FA3BA272DE795559998E-
Client_secret:ODQ4YWY0ZWETMZLLZC00MJFJLTG3NWUTYTMWNGIYMJFINJFJODK4OTMZNZY1NDA3MJE3MA==


解密前报文示例

B47CEAC30C095E3673FA177A4E767B8E5F9A755878AD05AC8A8DB180F349C2518B6993285A1599D6B83763B87A4164DA806026E48C50B46BD74D644E5E954C8F021A78A470852CE051E58F303F5E503C7D4A104D86E65C3CF2763654E2C22985F34D169B0429ED39C9E466D80750E4C169C31E71271AA9C24D3AB2533BA366E045DAA1219D9C3153EB703B0725C97B6FC96E6E1962204B30FFEAF5348BA92DA21495A07F60A6F3A5BB2A11F6D758C17B08CCB62A94F863721E281D0EE64DE97FE7742B898D79B81903695BBDD0449F7B875E913A9D3120424E688CD4832B1E81C9DDBEAFBD834FD855804EAB82AE9E014A550A06050DC07144A1568A08FB4CDD9A96217D0093F2CDEE8EA152E2E79631F8D4AE8EF2EA80D1A9EABAA26A5BAD59E4CFD24E7BB08794F80F14FCC7D7F0F5810C1C7645148C179F4AB979B4225AB4535FDFEACE279B4C1799C047C22C07EDF28544C0B0E36F316DE701478455F7CBC5041BE039A82D2CB9680600EB6BD9BDCCAEE4060431315CA8627F65A4EFD3822B1DA1C5058A337868900A1B2A6FB0B8


解密后报文示例


[
    {
        "customerCode": "1000019",
        "docDate": 1658828305000,
        "docType": "INBOUND",
        "inventoryQty": 16,
        "inventoryType": "USABLE",
        "merchandiseCode": "LCD-IP4-02",
        "merchandiseGrade": "GOOD",
        "merchandiseSerno": "M010000000000062789",
        "operationType": "SHELVES",
        "orderNo": "orderWI42232",
        "serviceType": "2C",
        "specification": "",
        "uuid": "2334249638",
        "version": "2022072617400481000000002",
        "warehouseCode": "US0001"
    }
]


开发者返回的示例

fail


字段说明

请求

名称

类型

字段

必填

说明

customerCode

String(20)

Winit客户编码

Y

 

version

String(25)

版本

Y

唯一,日期格式+唯一序列

yyyyMMddHHmmssSSS + 8数字

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商品唯一标识

merchandiseGrade

String(30)

商品等级

Y

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

serviceType

String(30)

库存服务类型

Y

Winit库存类型,

2B

2C

inventoryType

String()

库存类型

Y

USABLE可用

inventoryQty

int

库存数量

Y

 

warehouseCode

String(30)

仓库编码

Y



返回

名称

类型

字段

说明

success

String(7)

接收成功

消息接收成功

fail

String(4)

接收失败

消息接收失败


关键词