Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

List reorder suggestions

Any signed in user. Returns up to 100 active medicines at low stock, thinnest stock first. Each carries the supplier lead time on the medicine’s batches, and null when none names one.

GET/api/v1/supplier-finance/reorder-suggestions
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Responses
200

The medicines that need reordering

itemsobject[]required
Show properties
Array of object
idstringrequired
namestringrequired
stock_quantityintegerrequired
min -9007199254740991 · max 9007199254740991
low_stock_thresholdintegerrequired
min -9007199254740991 · max 9007199254740991
lead_time_daysinteger | nullrequired
Show properties
Any of:
integer
integer
null
null
suggested_qtyintegerrequired
min -9007199254740991 · max 9007199254740991
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Request
curl -X GET 'http://localhost:8000/api/v1/supplier-finance/reorder-suggestions' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "stock_quantity": -9007199254740991,
      "low_stock_threshold": -9007199254740991,
      "lead_time_days": -9007199254740991,
      "suggested_qty": -9007199254740991
    }
  ]
}