OPEN-API-客户对接【外】
  1. 库存
OPEN-API-客户对接【外】
  • 默认分组
    • 产品
      • sku批量分页查询
      • 创建/编辑产品 V2(字段覆盖完整)
      • 创建/编辑 产品
      • 创建产品识别码
      • 查询 sku
      • 渠道产品---渠道产品关系查询
    • 入库计划单
      • 入库计划创建修改(支持默认草稿状态可编辑)
      • 修改发运信息
      • 船公司代码列表
      • 入库计划分页查询
      • 入库计划创建
      • 入库计划发运操作
      • 入库计划添加附件
      • 取消入库订单
      • 查询入库信息
    • 库存
      • 批量查询库龄
        GET
      • 批量查询库存
        GET
      • 查询库存
        POST
      • winit快照查询
        POST
      • 查询库内变更明细
        POST
      • 库存批次明细查询
        POST
    • 订单
      • 测算
      • 创建销售订单(带附件的 )
      • 获取订单的详细信息
      • 获取订单的详细信息(获取店铺订单)
      • 订单-- 查询列表
      • 订单上传附件
      • 订单取消
    • 退货
      • 退货单物流追踪
      • 退货条目处理
      • 退货附件上传
      • 删除附件
      • 退货计划确认处理
      • 创建销售退货
      • 销售退货取消
      • 销售退货计划查询
    • 调拨
      • 创建
      • 取消(根据来源单号)
      • 上传附件
      • 查看
    • 预约
      • 查询是否可预约
    • 基础数据
      • 查询仓库
      • 根据仓库编码查询产品服务列表
    • 三方授权
      • 开发者账号注册
      • 应用注册
      • 服务商授权
    • 运费
      • 运费结算明细查询
    • 费用
      • 结算明细
  1. 库存

库存批次明细查询

POST
https://hwc-open-api.yqn.com/v1/inventory/batchList

请求参数

Body 参数application/json
sku
string 
商品 SKU
可选
srcLabel
integer 
可选
来源单据类型未知5,入库单10,无来源入库11,销售退货入库20,调拨入库单30,其他入库单60,库存调整入库103,换标上架106,仓库跨仓移入121,仓库移入120
batchNo
string 
批次号
可选
inventoryType
integer 
可选
库存类型 0-正常库存 1-不可售库存
sourceNo
string 
来源单号
可选
planNo
string 
计划单号
可选
customerPlanNo
string 
入库计划来源单号
可选
updateBegin
string <date-time>
可选
更新开始时间yyyy-MM-dd HH:mm:ss
updateEnd
string <date-time>
可选
更新结束时间yyyy-MM-dd HH:mm:ss
orgWarehouseCode
string 
仓库代码
可选
lineId
integer 
项目 ID
可选
stockInAtBegin
string <date-time>
可选
入库开始时间yyyy-MM-dd HH:mm:ss
stockInAtEnd
string <date-time>
可选
入库结束时间yyyy-MM-dd HH:mm:ss
page
integer 
分页页码
必需
size
integer 
每页大小最大100
必需
示例
{
  "sku": "string",
  "srcLabel": 0,
  "batchNo": "string",
  "inventoryType": 0,
  "sourceNo": "string",
  "planNo": "string",
  "customerPlanNo": "string",
  "updateBegin": "2019-08-24T14:15:22Z",
  "updateEnd": "2019-08-24T14:15:22Z",
  "orgWarehouseCode": "string",
  "lineId": 0,
  "stockInAtBegin": "2019-08-24T14:15:22Z",
  "stockInAtEnd": "2019-08-24T14:15:22Z",
  "page": 0,
  "size": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hwc-open-api.yqn.com/v1/inventory/batchList' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sku": "string",
    "srcLabel": 0,
    "batchNo": "string",
    "inventoryType": 0,
    "sourceNo": "string",
    "planNo": "string",
    "customerPlanNo": "string",
    "updateBegin": "2019-08-24T14:15:22Z",
    "updateEnd": "2019-08-24T14:15:22Z",
    "orgWarehouseCode": "string",
    "lineId": 0,
    "stockInAtBegin": "2019-08-24T14:15:22Z",
    "stockInAtEnd": "2019-08-24T14:15:22Z",
    "page": 0,
    "size": 0
}'

返回响应

🟢200成功
application/json
Body
statusCode
number 
必需
status
number 
必需
code
number 
必需
message
string 
必需
data
object 
必需
pageable
object 
必需
totalElements
number 
必需
totalPages
number 
必需
last
boolean 
必需
first
boolean 
必需
sort
object 
必需
numberOfElements
number 
必需
size
number 
必需
number
number 
必需
empty
boolean 
必需
content
array [object {16}] 
必需
多条库存批次的详情返回
示例
{
  "statusCode": 0,
  "status": 0,
  "code": 0,
  "message": "string",
  "data": {
    "pageable": {
      "draw": 0,
      "offset": 0,
      "pageNumber": 0,
      "pageSize": 0,
      "paged": true,
      "unpaged": true
    },
    "totalElements": 0,
    "totalPages": 0,
    "last": true,
    "first": true,
    "sort": {
      "sorted": true,
      "unsorted": true,
      "empty": true
    },
    "numberOfElements": 0,
    "size": 0,
    "number": 0,
    "empty": true,
    "content": [
      {
        "orgWarehouseCode": "string",
        "lineName": "string",
        "batchNo": "string",
        "sku": "string",
        "inventoryType": "string",
        "qty": 0,
        "qtyCurrent": 0,
        "srcLabel": "string",
        "sourceNo": "string",
        "planNo": "string",
        "customerPlanNo": "string",
        "stockinAt": "string",
        "instockDays": 0,
        "createdAt": "string",
        "updatedAt": "string",
        "productInfo": {
          "productName": "string",
          "length": 0,
          "width": 0,
          "height": 0,
          "weight": 0
        }
      }
    ]
  }
}
上一页
查询库内变更明细
下一页
测算
Built with