分批查询物料
POST
/api/open/v3/ITEM/searchAfter
查询
请求参数
Path 参数
viewKey
string
必需
Body 参数application/json
conditions
object (ITEM_filter)
可选
useBatch
object
可选
type
object
可选
abcCategory
object
可选
name
object
可选
status
object
可选
code
object
可选
useBomVersion
object
可选
issueStatus
object
可选
useSn
object
可选
itemCategoryName
object
可选
useLockInventory
object
可选
specification
object
可选
createTime
object
可选
auditStatus
object
可选
sorts
object (ITEM_sort)
可选
createTime
enum<string>
可选
枚举值:
ASCDESC
fieldKeys
array[string]
可选
paging
object
必需
start
integer
分页开始
>= 0
length
integer
分页大小
>= 1<= 500
boundaryIds
array[string]
可选
length
integer
一次查询数量
>= 1<= 2000
示例
{
"conditions": {
"useBatch": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"type": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"abcCategory": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"name": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"status": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"code": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"useBomVersion": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"issueStatus": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"useSn": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"itemCategoryName": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"useLockInventory": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"specification": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"createTime": {
"conditionType": "TIME_RANGE",
"timeRange": {
"start": 0,
"end": 0
}
},
"auditStatus": {
"conditionType": "FILTER",
"filter": [
"string"
]
}
},
"sorts": {
"createTime": "ASC"
},
"fieldKeys": [
"string"
],
"paging": {
"start": 0,
"length": 1
},
"boundaryIds": [
"string"
],
"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://c2.xinheyun.com/api/open/v3/ITEM/searchAfter' \
--header 'Content-Type: application/json' \
--data-raw '{
"conditions": {
"useBatch": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"type": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"abcCategory": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"name": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"status": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"code": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"useBomVersion": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"issueStatus": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"useSn": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"itemCategoryName": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"useLockInventory": {
"conditionType": "FILTER",
"filter": [
"string"
]
},
"specification": {
"conditionType": "FUZZY",
"value": "string",
"filter": [
"string"
]
},
"createTime": {
"conditionType": "TIME_RANGE",
"timeRange": {
"start": 0,
"end": 0
}
},
"auditStatus": {
"conditionType": "FILTER",
"filter": [
"string"
]
}
},
"sorts": {
"createTime": "ASC"
},
"fieldKeys": [
"string"
],
"paging": {
"start": 0,
"length": 1
},
"boundaryIds": [
"string"
],
"length": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object
可选
list
array[object (ITEM) {69}]
可选
start
integer
可选
length
integer
可选
recordsTotal
integer
可选
boundaryIds
array[string]
可选
示例
{
"code": 0,
"message": "string",
"data": {
"list": [
{
"fifoScanCheck": true,
"procurementTax": 0,
"itemCategoryCode": "string",
"useBatch": true,
"type": "string",
"safetyInventory": 0,
"allowPurchase": true,
"overdueDays": 0,
"abcCategory": "string",
"defectiveRate": 0,
"allowSale": true,
"fifoRule": "string",
"purchaser": 0,
"planBatchSize": 0,
"itemAlbum": {},
"procurementPrice": 0,
"blueprint": {},
"itemBaseUnitName": "string",
"name": "string",
"incrementSize": 0,
"batchType": "string",
"integerWay": "string",
"status": "string",
"overDeliveryRate": 0,
"code": "string",
"itemProductionUnitName": "string",
"snType": "string",
"defaultWarehouseName": "string",
"itemInventoryUnitName": "string",
"useOverdue": true,
"overdueAlertDays": 0,
"useBomVersion": true,
"issueStatus": "string",
"attachment": {},
"enableInteger": true,
"reject": "string",
"allowOutsource": true,
"shelfLife": 0,
"overReceiveRate": 0,
"itemCategoryCycleDay": 0,
"creator": 0,
"maxInventory": 0,
"comments": "string",
"cost": 0,
"fifo": "string",
"itemJbkUnitName": "string",
"useSn": true,
"isConfigurable": true,
"salePrice": 0,
"itemSaleUnitName": "string",
"itemCategoryName": "string",
"dailyProduction": 0,
"useLockInventory": true,
"realCostPrice": 0,
"specification": {},
"specificationConfig": {},
"updateTime": 0,
"defaultWarehouseCode": "string",
"useKey": true,
"inventoryAccountType": "string",
"createTime": 0,
"saleTax": 0,
"auditStatus": "string",
"defaultWarehouseBinName": "string",
"itemPurchaseUnitName": "string",
"useSafetyInventory": true,
"batchSize": 0,
"allowProduction": true,
"itemSpecification": {}
}
],
"start": 0,
"length": 0,
"recordsTotal": 0,
"boundaryIds": [
"string"
]
}
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在