Version: 202201
Get Procurement Detail
GET/openapi/2022-01/procurements/:id
Retrieves a list of procurement records with optional filters such as state, creation date, or update date.
Request
Path Parameters
id stringrequired
Procurement's ID
Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
procurement object
idstring
Example:
382451985837728044procurement_snstring
Example:
00000002supplier_idstring
Example:
382453603865993516location_idstring
Example:
190035786870033452notestring
Example:
teest notestateinteger
Default value:
0Example:
4pending_quantityinteger
Default value:
0Example:
0received_quantityinteger
Default value:
0Example:
0rejected_quantityinteger
Default value:
0Example:
0transfer_quantityinteger
Default value:
0Example:
0created_bystring
Example:
created_atstring
Example:
2024-05-21T08:47:39Zupdated_atstring
Example:
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
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"invalid id"
]
}
{
"errors": [
"invalid id"
]
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Procurement not found"
]
}
{
"errors": [
"Procurement not found"
]
}