**Version: 202601**

# Update procurement

**PUT** `/openapi/2026-01/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` string (required)

  The unique identifier of the procurement record to update

**application/json**

**Body | Example**

**Body (required)**

- `procurement` object

  Procurement

  - `supplier_id` string

    ID of the supplier for this procurement
  - `note` string

    Optional note or comment about the procurement

```json
{
  "procurement": {
    "supplier_id": "string",
    "note": "string"
  }
}
```

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `procurement` object

    Procurement

    - `id` string

      Procurement ID
    - `procurement_sn` string

      Procurement serial number
    - `supplier_id` string

      Supplier ID
    - `location_id` string

      Location ID
    - `note` string

      Note or remark
    - `state` int32

      Procurement state
    - `pending_quantity` int32

      Pending quantity
    - `received_quantity` int32

      Received quantity
    - `rejected_quantity` int32

      Rejected quantity
    - `transfer_quantity` int32

      Transfer quantity
    - `created_by` string

      Created by
    - `created_at` string

      Creation timestamp, in ISO-8601 format
    - `updated_at` string

      Last update timestamp, in ISO-8601 format

```json
{
  "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"
    }
  }
}
```
