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

Create a refill reminder

Any signed in user. Files a refill reminder for the caller’s branch and returns the row. A missing medicine or due date is refused, and the reminder starts pending on sms by default.

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

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

Request body
requiredapplication/json
medicine_idstringrequired
due_datestringrequired
branch_idstring
customer_idstring | null
channelstring
notesstring
Responses
201

Reminder filed

idstringrequired
branch_idstringrequired
customer_idstring | nullrequired
medicine_idstringrequired
due_datestringrequired
channelstringrequired
statusstringrequired
notesstringrequired
created_atstringrequired
medicine_namestring | nullrequired
400

medicine_id and due_date are required

detailstringrequired
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://localhost:8000/api/v1/dispensing/refills' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "medicine_id": "string",
  "due_date": "string",
  "branch_id": "string",
  "customer_id": "string",
  "channel": "string",
  "notes": "string"
}'
Response
{
  "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"
}