Version: 202201
List Procurement Items
GET/openapi/2022-01/procurements/:id/items
Retrieves the items associated with a given procurement ID.
Request
Path Parameters
id stringrequired
Procurement' ID
Query Parameters
page int32required
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.
Responses
- 200
- 400
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
countinteger
Default value:
0Example:
1items object[]
idstring
Example:
382706477153919276procurement_idstring
Example:
382706443201028396pending_quantityinteger
Default value:
0Example:
100received_quantityinteger
Default value:
0Example:
0rejected_quantityinteger
Default value:
0Example:
0transfer_quantityinteger
Default value:
0Example:
100variant_idstring
Example:
4f442546-3a60-43b2-baa5-5e1f07c85464product_idstring
Example:
cbf9e2d2-7f2c-4881-ab7c-abf8e6590592product_titlestring
Example:
testvariant_titlestring
Example:
variant_skustring
Example:
created_atstring
Example:
2024-05-22T01:38:54Zupdated_atstring
Example:
2024-05-22T01:38:54Zproduct_image object
srcstring
Example:
//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpegwidthinteger
Default value:
0Example:
710heightinteger
Default value:
0Example:
799altstring
Example:
{
"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
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"invalid procurement_id"
]
}
{
"errors": [
"invalid procurement_id"
]
}