Skip to main content

Get PO Metrics

GET /v1/purchase-order/statistics

Returns aggregated metrics for all purchase orders, grouped by status. Each status includes the total count of orders and their combined price value. Useful for reporting dashboards, analytics, and monitoring purchase order distribution.

Response Example

{
"draft": {
"count": 2,
"price": 2467.1
},
"accepted": {
"count": 4,
"price": 18792.3
},
"confirmed": {
"count": 0,
"price": 0
},
"delivered": {
"count": 0,
"price": 0
},
"canceled": {
"count": 0,
"price": 0
},
"total": {
"count": 6,
"price": 21259.4
}
}