查询库位
POST
/api/open/v3/core_inventory_warehousebin/query
查询
请求参数
Path 参数
viewKey
string
必需
Body 参数application/json
body
object
请求体body
conditions
object (core_inventory_warehousebin_filter)
可选
sorts
object (core_inventory_warehousebin_sort)
可选
fieldKeys
array[string]
可选
paging
object
必需
示例
{
"body": {
"conditions": {
"code": {
"conditionType": "KEYWORD",
"value": "WH-SH-ELECTRONIC"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"fieldKeys": [
],
"paging": {
"start": 0,
"length": 1
}
}
}
示例代码
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://sit.newcoretech.com/api/open/v3/core_inventory_warehousebin/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"conditions": {
"code": {
"conditionType": "KEYWORD",
"value": "WH-SH-ELECTRONIC"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"fieldKeys": [
],
"paging": {
"start": 0,
"length": 1
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object
可选
list
array[object (core_inventory_warehousebin) {13}]
可选
start
integer
可选
length
integer
可选
recordsTotal
integer
可选
示例
{
"code": 0,
"message": "string",
"data": {
"list": [
{
"node2Value": "string",
"code": "string",
"updateTime": 0,
"node1Value": "string",
"createBy": 0,
"node4Value": "string",
"defaultBin": true,
"updateBy": 0,
"createTime": 0,
"warehouseId": "string",
"node3Value": "string",
"name": "string",
"node5Value": "string"
}
],
"start": 0,
"length": 0,
"recordsTotal": 0
}
}