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

List pending refill reminders

Any signed in user. Returns pending refill reminders for the branch, due soonest, up to 50. Only pending reminders are listed, so one already sent or cancelled stays out of the queue.

GET/api/v1/dispensing/refills
Authorization
AuthorizationBearer token (JWT) · headerrequired

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

Responses
200

The caller's pending reminders

itemsobject[]required
Show properties
Array of object
idstringrequired
branch_idstringrequired
customer_idstring | nullrequired
medicine_idstringrequired
due_datestringrequired
channelstringrequired
statusstringrequired
notesstringrequired
created_atstringrequired
medicine_namestring | nullrequired
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Request
curl -X GET 'http://localhost:8000/api/v1/dispensing/refills' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "items": [
    {
      "id": "string",
      "branch_id": "string",
      "customer_id": "string",
      "medicine_id": "string",
      "due_date": "string",
      "channel": "string",
      "status": "string",
      "notes": "string",
      "created_at": "string",
      "medicine_name": "string"
    }
  ]
}