版本:202201
查询采购单列表
GET/openapi/2022-01/procurements
分页返回采购单列表。
请求
Query参数
page int32
Page number for pagination. Must be greater than 0. Default: 1.
limit int32
Number of records per page. Must be greater than 0 and less than 100. Default: 10.
ids string[]
ID 列表。
state int32
采购单状态筛选,可选值:1(待到货)、2(部分收货)、3(收货完成)、4(已取消)。
created_at_min string
最早创建时间。
created_at_max string
最晚创建时间。
updated_at_min string
最早更新时间。
updated_at_max string
最晚更新时间。
响应
- 200
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
procurements 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:29Zcountinteger
默认值:
0示例:
2{
"procurements": [
{
"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"
}
],
"count": 2
}
{
"procurements": [
{
"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"
},
{
"id": "382416861263834540",
"procurement_sn": "00000001",
"supplier_id": "382415819906231724",
"location_id": "190035786870033452",
"note": "test11",
"state": 3,
"pending_quantity": 0,
"received_quantity": 148,
"rejected_quantity": 36,
"transfer_quantity": 100,
"created_by": "",
"created_at": "2024-05-21T06:28:05Z",
"updated_at": "2024-05-21T07:26:33Z"
}
],
"count": 2
}