Create a purchase order
This endpoint is available to Group API Keys only.
Creates a new purchase order in draft status with the specified line items. The quantities specified in the line items are expected to be in the same unit of measure as the configured unit of measure for the inventory code.
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.
Body
The ID of the clinic this purchase order belongs to
The datetime when the order was placed
The line items to include in the purchase order
1The name of the supplier for this order
An optional purchase order number. If omitted, one is auto-generated.
Response
Created
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