Inventory

Update a purchase order item

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.

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

Path parameters

purchase_order_item_idinteger required

The ID of the purchase order item

Request body

skustring nullable

Updated SKU identifier

total_priceinteger nullable

Updated total price for this line item, in cents

Response

OK

createdstring date-time required

The datetime this object was created.

idinteger required

The unique identifier for the purchase order item

inventory_idinteger nullable required

The inventory id for this item

inventory_shortcodestring

The inventory shortcode (human-readable code) for this item

modifiedstring date-time required

The datetime this object was last modified; changes to related entities will not update this field.

skustring required

The SKU identifier for this item

total_priceinteger required

The total price for this line item, in cents

unit_of_measurestring required

The unit of measure for this item

Changes

No recorded changes to this operation across all 1 revision of this API.