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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the purchase order to fetch
Body
Response
OK
The ID of the clinic this purchase order belongs to
The datetime this object was created.
The effective total of the order, in cents
The unique identifier for the purchase order
The datetime this object was last modified; changes to related entities will not update this field.
The datetime when the order was placed
The purchase order number
The line items included in this purchase order
The raw total of the order, in cents
The current status of the purchase order
DRAFT, PENDING, PARTIALLY_RECEIVED, FULLY_RECEIVED, CANCELED, RETURNED, CLOSED The name of the supplier for this order