- API 调用指南
- 事件订阅指南
- Webwidget使用说明
- 认证 API
- 制造域 MFR
- 质量域QLTY
- 供应链域 SC
- 厂内物流域 LOG
- 基础数据
- 物料
- 物料分类
- 单位
- 规格
- 仓库
- 库位
- 库存申请单
- 申请出库任务
- 申请入库任务
- 直接移库任务
- 库存任务
- 出入库记录
- 设备域EQUIP
- 3Chat域
- 用户与租户域 USER
- 基础域DM
查询物料
POST
/api/open/v3/item/query
查询
请求参数
Path 参数
viewKey
string
必需
Body 参数application/json
body
object
请求体body
conditions
object (item_filter)
可选
sorts
object (item_sort)
可选
fieldKeys
array[string]
可选
paging
object
必需
示例
{
"body": {
"conditions": {
"name": {
"conditionType": "KEYWORD",
"value": "IC-CHIP-5NM-V2.1"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"fieldKeys": [],
"paging": {
"start": 0,
"length": 10
}
}
}
示例代码
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/item/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"conditions": {
"name": {
"conditionType": "KEYWORD",
"value": "IC-CHIP-5NM-V2.1"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"fieldKeys": [],
"paging": {
"start": 0,
"length": 10
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object
可选
list
array[object (item) {69}]
可选
start
integer
可选
length
integer
可选
recordsTotal
integer
可选
示例
{
"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
}
}
修改于 2025-05-30 11:04:57