版本:202201
查询采购项列表
GET/openapi/2022-01/procurements/:id/items
获取指定采购单中的采购项列表。
请求
Path参数
id string必填
Procurement' ID
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.
响应
- 200
- 400
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
countinteger
默认值:
0示例:
1items object[]
idstring
示例:
382706477153919276procurement_idstring
示例:
382706443201028396pending_quantityinteger
默认值:
0示例:
100received_quantityinteger
默认值:
0示例:
0rejected_quantityinteger
默认值:
0示例:
0transfer_quantityinteger
默认值:
0示例:
100variant_idstring
示例:
4f442546-3a60-43b2-baa5-5e1f07c85464product_idstring
示例:
cbf9e2d2-7f2c-4881-ab7c-abf8e6590592product_titlestring
示例:
testvariant_titlestring
示例:
variant_skustring
示例:
created_atstring
示例:
2024-05-22T01:38:54Zupdated_atstring
示例:
2024-05-22T01:38:54Zproduct_image object
srcstring
示例:
//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpegwidthinteger
默认值:
0示例:
710heightinteger
默认值:
0示例:
799altstring
示例:
{
"count": 1,
"items": [
{
"id": "382706477153919276",
"procurement_id": "382706443201028396",
"pending_quantity": 100,
"received_quantity": 0,
"rejected_quantity": 0,
"transfer_quantity": 100,
"variant_id": "4f442546-3a60-43b2-baa5-5e1f07c85464",
"product_id": "cbf9e2d2-7f2c-4881-ab7c-abf8e6590592",
"product_title": "test",
"variant_title": "",
"variant_sku": "",
"created_at": "2024-05-22T01:38:54Z",
"updated_at": "2024-05-22T01:38:54Z",
"product_image": {
"src": "//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpeg",
"width": 710,
"height": 799,
"alt": ""
}
}
]
}
{
"count": 1,
"items": [
{
"id": "382706477153919276",
"procurement_id": "382706443201028396",
"pending_quantity": 100,
"received_quantity": 0,
"rejected_quantity": 0,
"transfer_quantity": 100,
"variant_id": "4f442546-3a60-43b2-baa5-5e1f07c85464",
"product_id": "cbf9e2d2-7f2c-4881-ab7c-abf8e6590592",
"product_title": "test",
"variant_title": "",
"variant_sku": "",
"created_at": "2024-05-22T01:38:54Z",
"updated_at": "2024-05-22T01:38:54Z",
"product_image": {
"src": "//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpeg",
"width": 710,
"height": 799,
"alt": ""
}
}
]
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"invalid procurement_id"
]
}
{
"errors": [
"invalid procurement_id"
]
}