- API 调用指南
- 事件订阅指南
- Webwidget使用说明
- 认证 API
- 制造域 MFR
- 质量域QLTY
- 供应链域 SC
- 厂内物流域 LOG
- 设备域EQUIP
- 3Chat域
- 用户与租户域 USER
- 基础域DM
查询 BOM
POST
/api/open/v2/boms/query
请求参数
Body 参数application/json
body
必需
Any of
conditions
array[object (BomQueryParam) {2}] | null
查询条件
示例
{
"body": {
"conditions": {
"code": {
"conditionType": "KEYWORD",
"value": "V3.2.1"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"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/v2/boms/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"conditions": {
"code": {
"conditionType": "KEYWORD",
"value": "V3.2.1"
}
},
"sorts": [
{
"sortOrder": "ASC",
"sortFieldKey": "createTime"
}
],
"paging": {
"start": 0,
"length": 10
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object (ListResponseDataBomQueryListDTO)
可选
list
array[object (BomQueryListDTO) {3}]
可选
示例
{
"code": 0,
"message": "",
"data": {
"list": [
{
"parentItem": {
"code": "",
"name": "",
"type": "",
"category": "",
"itemSpecs": [
{
"specName": "",
"specValue": ""
}
],
"itemUnit": {
"baseUnit": "",
"inventoryUnit": "",
"inventoryToBaseQuantity": 0.0,
"baseToInventoryQuantity": 0.0,
"productionUnit": "",
"productionToBaseQuantity": 0.0,
"baseToProductionQuantity": 0.0,
"jbkUnit": "",
"productionToJbkQuantity": 0.0,
"jbkToProductionQuantity": 0.0,
"saleUnit": "",
"saleToBaseQuantity": 0.0,
"baseToSaleQuantity": 0.0,
"purchaseUnit": "",
"purchaseToBaseQuantity": 0.0,
"baseToPurchaseQuantity": 0.0
}
},
"bomVersion": "",
"bomComponents": [
{
"componentItem": {
"code": "",
"name": "",
"type": "",
"category": "",
"itemSpecs": [
{
"specName": "",
"specValue": ""
}
],
"itemUnit": {
"baseUnit": "",
"inventoryUnit": "",
"inventoryToBaseQuantity": 0.0,
"baseToInventoryQuantity": 0.0,
"productionUnit": "",
"productionToBaseQuantity": 0.0,
"baseToProductionQuantity": 0.0,
"jbkUnit": "",
"productionToJbkQuantity": 0.0,
"jbkToProductionQuantity": 0.0,
"saleUnit": "",
"saleToBaseQuantity": 0.0,
"baseToSaleQuantity": 0.0,
"purchaseUnit": "",
"purchaseToBaseQuantity": 0.0,
"baseToPurchaseQuantity": 0.0
}
},
"parentRateQty": 0.0,
"componentRateQty": 0.0,
"attritionRate": 0.0,
"bottom": ""
}
]
}
]
}
}
修改于 2025-05-26 02:36:47