Dispense a prescription
Any signed in user. Moves a pending prescription to DISPENSED and books the matching sale. Dispensed or cancelled ones are refused, and controlled items need a national id and licence.
POST
/api/v1/prescriptions/{prescriptionId}/dispenseAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
prescriptionIdstringrequiredThe prescription id to dispense.
Request body
requiredapplication/jsonpayment_methodstringpatient_national_idstringdoctor_licensestringResponses
200
The prescription dispensed and its sale booked
rx_idstringrequiredrx_numberstringrequiredsale_idstringrequiredinvoice_numberstringrequiredtotal_amountstringrequireddispensed_atstringrequired400
Prescription is already dispensed or cancelled, has no items, or stock is insufficient
detailstringrequired401
Not authenticated
detailstringrequired404
Prescription not found
detailstringrequired