Version: 202506
Update procurement
PUT/openapi/2025-06/procurements/:procurement_id
Allows updating the details of an existing procurement record, such as its supplier, note, or other properties.
Request
Path Parameters
procurement_id stringrequired
The unique identifier of the procurement record to update
- application/json
- Body
- Example
Bodyrequired
procurement object
Procurement
supplier_idstring
ID of the supplier for this procurement
notestring
Optional note or comment about the procurement
{
"procurement": {
"supplier_id": "string",
"note": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
procurement object
Procurement
idstring
Procurement ID
procurement_snstring
Procurement serial number
supplier_idstring
Supplier ID
location_idstring
Location ID
notestring
Note or remark
stateint32
Procurement state
pending_quantityint32
Pending quantity
received_quantityint32
Received quantity
rejected_quantityint32
Rejected quantity
transfer_quantityint32
Transfer quantity
created_bystring
Created by
created_atstring
Creation timestamp, in ISO-8601 format
updated_atstring
Last update timestamp, in ISO-8601 format
{
"code": "string",
"message": "string",
"data": {
"procurement": {
"id": "string",
"procurement_sn": "string",
"supplier_id": "string",
"location_id": "string",
"note": "string",
"state": 0,
"pending_quantity": 0,
"received_quantity": 0,
"rejected_quantity": 0,
"transfer_quantity": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}
}
}