---
title: "Update a purchase order item"
method: PATCH
path: "/ext/v2/purchase-order-items/{purchase_order_item_id}/"
tags: ["Inventory"]
---

# Update a purchase order item

`PATCH /ext/v2/purchase-order-items/{purchase_order_item_id}/`

## Request

- Base URL: `https://connect.vetcove.com`
- URL: `https://connect.vetcove.com/ext/v2/purchase-order-items/{purchase_order_item_id}/`
- Auth: HTTP bearer

Partially updates a purchase order item. Only fields included in the request body will be updated; omitted fields are left unchanged. Only items on custom draft purchase orders can be updated.

A **purchase order item** is a single line item on a purchase order, identifying the inventory being ordered, the quantity, and the price. The quantity specified in the payload is expected to be in the same unit of measure as the configured unit of measure for the inventory code.

## Path parameters

- `purchase_order_item_id` integer, required: The ID of the purchase order item

## Request body

- PurchaseOrderItemPatchSchema
  - `quantity` union: Updated quantity (must be greater than 0)
    - number
    - string
  - `sku` string, nullable: Updated SKU identifier
  - `total_price` integer, nullable: Updated total price for this line item, in cents

## Response `200`

OK

- ExternalPurchaseOrderItemSchema
  - `created` string, date-time, required: The datetime this object was created.
  - `id` integer, required: The unique identifier for the purchase order item
  - `inventory_id` integer, nullable, required: The inventory id for this item
  - `inventory_shortcode` string: The inventory shortcode (human-readable code) for this item
  - `modified` string, date-time, required: The datetime this object was last modified; changes to related entities will not update this field.
  - `quantity` union, required: The quantity ordered
    - number
    - string
  - `sku` string, required: The SKU identifier for this item
  - `total_price` integer, required: The total price for this line item, in cents
  - `unit_of_measure` string, required: The unit of measure for this item

---

[API](https://skmtc.dev/vetcove/apis/ninjaapi.md) - [All operations](https://skmtc.dev/vetcove/apis/ninjaapi/llms.txt) - [OpenAPI document](https://skmtc.dev/vetcove/apis/ninjaapi/revisions/4ceaed956e15?raw)
