Inventory

Create a purchase order item

This endpoint is available to Group API Keys only.

Creates a new line item on an existing draft purchase order.

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.

post/ext/v2/purchase-order-items/

Request

  • Base URL
    https://connect.vetcove.com
  • URL
    https://connect.vetcove.com/ext/v2/purchase-order-items/
  • Auth
    HTTP bearer

Request body

inventory_idinteger nullable

The inventory id identifying the item to order. Must provide exactly one of inventory_shortcode or inventory_id, not both

inventory_shortcodestring nullable

The inventory shortcode (human-readable code) identifying the item to order. Must provide exactly one of inventory_shortcode or inventory_id, not both. Inventory shortcodes are deprecated for new integrations; supported during a deprecation window for existing callers.

purchase_order_idinteger required

The ID of the purchase order to add this item to

skustring

An optional SKU identifier for this item

total_priceinteger

The total price for this line item, in cents

Response

Created

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.