List suggested reorders
Admin and branch manager. Returns low stock suggestions, thinnest cover first. Each suggestion doubles the shortfall and is attached to the most reliable active supplier.
GET
/api/v1/purchase-orders/suggestedAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
branch_idstringCount stock for one branch. Empty counts stock across every branch.
Responses
200
The reorder suggestions
suggestionsobject[]requiredShow propertiesHide properties
Array of
objectmedicine_idstringrequiredmedicine_namestringrequiredcurrent_stocknumberrequiredlow_stock_thresholdintegerrequiredmin -9007199254740991 · max 9007199254740991
suggested_quantitynumberrequiredunit_pricestringrequiredsuggested_supplier_idstringsuggested_supplier_namestringsupplier_lead_time_daysintegermin -9007199254740991 · max 9007199254740991
supplier_reliability_scorenumbercountintegerrequiredmin -9007199254740991 · max 9007199254740991
401
Not authenticated
detailstringrequired403
Access forbidden for this role
detailstringrequired