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

Add a will-call pickup

Any signed in user. Files a will-call pickup for the caller’s branch and returns the row. A blank patient name is refused, and the entry starts ready with the signature uncaptured.

POST/api/v1/dispensing/will-call
Authorization
AuthorizationBearer token (JWT) · headerrequired

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

Request body
requiredapplication/json
patient_namestringrequired
patient_phonestring
branch_idstring
prescription_idstring | null
sale_idstring | null
Responses
201

Pickup filed

idstringrequired
branch_idstringrequired
prescription_idstring | nullrequired
sale_idstring | nullrequired
patient_namestringrequired
patient_phonestringrequired
statusstringrequired
signature_capturedintegerrequired
min -9007199254740991 · max 9007199254740991
picked_up_atstring | nullrequired
created_bystringrequired
created_atstringrequired
400

patient_name is required

detailstringrequired
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://localhost:8000/api/v1/dispensing/will-call' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "patient_name": "string",
  "patient_phone": "string",
  "branch_id": "string",
  "prescription_id": "string",
  "sale_id": "string"
}'
Response
{
  "id": "string",
  "branch_id": "string",
  "prescription_id": "string",
  "sale_id": "string",
  "patient_name": "string",
  "patient_phone": "string",
  "status": "string",
  "signature_captured": -9007199254740991,
  "picked_up_at": "string",
  "created_by": "string",
  "created_at": "string"
}