Inventory

Update a purchase order

Partially updates a purchase order with the given information. Only fields included in the request body will be updated; omitted fields are left unchanged. Only custom purchase orders (not synced from a purchasing platform) in draft status can be updated.

A purchase order tracks an order placed by a clinic to a supplier for inventory items. Each purchase order contains one or more line items identifying the inventory being ordered, the quantity, and the price. Purchase orders are created in draft status and can later be finalized in the pims web ui.

patch/ext/v2/purchase-orders/{purchase_order_id}/

Request

  • Base URL
    https://connect.vetcove.com
  • URL
    https://connect.vetcove.com/ext/v2/purchase-orders/{purchase_order_id}/
  • Auth
    HTTP bearer

Path parameters

purchase_order_idinteger required

The ID of the purchase order to fetch

Request body

order_datetimestring date-time nullable

Updated order datetime

po_numberstring nullable

Updated purchase order number

supplierstring nullable

Updated supplier name

Response

OK

clinic_idinteger required

The ID of the clinic this purchase order belongs to

createdstring date-time required

The datetime this object was created.

effective_totalinteger required

The effective total of the order, in cents

idinteger required

The unique identifier for the purchase order

modifiedstring date-time required

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

order_datetimestring date-time required

The datetime when the order was placed

po_numberstring required

The purchase order number

raw_totalinteger required

The raw total of the order, in cents

status'DRAFT' | 'PENDING' | 'PARTIALLY_RECEIVED' | 'FULLY_RECEIVED' | 'CANCELED' | 'RETURNED' | 'CLOSED' required
supplierstring required

The name of the supplier for this order

Changes

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