PurchaseOrder_Get (Get)
- Last UpdatedNov 06, 2025
- 2 minute read
| Get | PurchaseOrder_Get |
Resource Path:/api/PurchaseOrder
| Name | Description | Data Type |
|---|---|---|
| poId | A purchase order ID. If an ID is not provided, all purchase orders are returned. | string |
The response body is of type object.
Returns a JSON array that contains the information for each purchase order or the specified purchase order. If no matching purchase orders are found, an empty object is returned.
The following properties are returned.
po_id (string)
The purchase order ID.
vend_id (string)
The vendor ID.
seller_id (integer)
The seller ID from whom this order was purchased.
ship_to (integer)
The ID of the entity at which purchased goods are to be received.
date_issued_utc (datetime)
The date and time when the purchase order was issued in UTC.
date_issued_local (datetime)
The date and time when the purchase order was issued in the local time of the MES Middleware server where the call was processed.
date_issued (datetime)
The local date and time when the purchase order was issued in the local time of the time zone that was specified in the tz_id parameter in the call header or URL. If the tz_id parameter was not provided or was not valid, then the time is in UTC.
state_cd (integer)
The state of the purchase order:
0=0pen
1=Partial Complete
2-Complete
3=Closed
notes (string)
The notes for the purchase order.
spare1 (string)
The contents of the spare1 field.
spare2 (string)
The contents of the spare2 field.
spare3 (string)
The contents of the spare3 field.
spare4 (string)
The contents of the spare4 field.
last_edit_comment (string)
The comments about why the record was added or updated.
last_edit_by (string)
The ID of the user who added or last updated this record.
last_edit_at (datetime)
The date and time, in UTC, when the record was added or last updated.
To get all purchase orders:
api/PurchaseOrder
To get the purchase order with the ID PO12345677:
api/PurchaseOrder?poId=PO12345677
Examples: Work Tasks Lookups
To get all purchase orders:
api/PurchaseOrder
To get a specific purchase order:
api/PurchaseOrder?poId={poId}