版本:202201
查询采购单详情
GET/openapi/2022-01/procurements/:id
获取采购单记录,支持按状态、日期范围等条件筛选。
请求
Path参数
id string必填
Procurement's ID
响应
- 200
- 400
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
procurement object
idstring
示例:
382451985837728044procurement_snstring
示例:
00000002supplier_idstring
示例:
382453603865993516location_idstring
示例:
190035786870033452notestring
示例:
teest notestateinteger
默认值:
0示例:
4pending_quantityinteger
默认值:
0示例:
0received_quantityinteger
默认值:
0示例:
0rejected_quantityinteger
默认值:
0示例:
0transfer_quantityinteger
默认值:
0示例:
0created_bystring
示例:
created_atstring
示例:
2024-05-21T08:47:39Zupdated_atstring
示例:
2024-05-21T09:59:29Z{
"procurement": {
"id": "382451985837728044",
"procurement_sn": "00000002",
"supplier_id": "382453603865993516",
"location_id": "190035786870033452",
"note": "teest note",
"state": 4,
"pending_quantity": 0,
"received_quantity": 0,
"rejected_quantity": 0,
"transfer_quantity": 0,
"created_by": "",
"created_at": "2024-05-21T08:47:39Z",
"updated_at": "2024-05-21T09:59:29Z"
}
}
{
"procurement": {
"id": "382451985837728044",
"procurement_sn": "00000002",
"supplier_id": "382453603865993516",
"location_id": "190035786870033452",
"note": "teest note",
"state": 4,
"pending_quantity": 0,
"received_quantity": 0,
"rejected_quantity": 0,
"transfer_quantity": 0,
"created_by": "",
"created_at": "2024-05-21T08:47:39Z",
"updated_at": "2024-05-21T09:59:29Z"
}
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"invalid id"
]
}
{
"errors": [
"invalid id"
]
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Procurement not found"
]
}
{
"errors": [
"Procurement not found"
]
}