文档中心 > API类目 > 五道口API

qimen.alibaba.wdk.inventory.sync.message (五道口库存同步消息)

五道口库存同步消息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
inventory_msg_request InventoryMsgRequest 必须 库存变更消息
  • └ merchant_code
  • String
  • 必须
  • CSTEST
  • 商家编码
  • inventory_info_list
  • InventoryInfo []
  • 必须
  • 库存列表
  • └ item_code
  • String
  • 必须
  • 4084
  • 商品编码
  • └ shop_code
  • String
  • 必须
  • 89247
  • 门店编码
  • inventory_detail_list
  • InventoryDetail []
  • 必须
  • 库存明细
  • └ start_sell_date
  • String
  • 必须
  • 2021-07-16 08:30:00
  • 开始售卖时间
  • └ sale_inventory_id
  • String
  • 必须
  • 25019428
  • 库存资产id
  • └ sale_inventory_type
  • Number
  • 必须
  • 0
  • 库存类型: 0-表示现货;1-表示期货
  • └ available_stock_quantity
  • String
  • 必须
  • 20.0
  • 某个库存资产对应的可售库存(已扣除安全保留量)
  • └ safe_quantity
  • String
  • 必须
  • 3.0
  • 安全保留量
  • └ end_sell_date
  • String
  • 必须
  • 2021-07-16 17:30:00
  • 结束售卖时间
  • └ available_stock_quantity
  • String
  • 必须
  • 5.0
  • 总可售库存(扣除安全保留量之后的,即用户最大能购买的)
  • └ biz_update_time
  • String
  • 必须
  • 1658281918000
  • 业务数据变更时间(耗秒)

响应参数

名称 类型 示例值 描述
success Boolean true 接口状态
err_msg String 内部错误 错误信息
err_code String SYSTEM_ERROR 错误码
state Boolean true 业务处理状态

请求示例

{"inventory_msg_request":{"merchant_code":"CSTEST","biz_update_time":"1658281918000","inventory_info_list":[{"item_code":"4084","shop_code":"89247","inventory_detail_list":[{"start_sell_date":"2021-07-16 08:30:00","sale_inventory_id":"25019428","sale_inventory_type":0,"available_stock_quantity":"20.0","safe_quantity":"3.0","end_sell_date":"2021-07-16 17:30:00"}],"available_stock_quantity":"5.0"}]}}

响应示例

{
    "success":true,
    "err_msg":"内部错误",
    "err_code":"SYSTEM_ERROR",
    "state":true
}

验签示例

{"success":"不等于true","err_msg":"Illegal request","err_code":"sign-check-failure"}

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部