Cancel a prescription
Any signed in user. Moves a pending prescription to CANCELLED. Once dispensed or cancelled a prescription is refused, so a booked sale is never reversed.
POST
/api/v1/prescriptions/{prescriptionId}/cancelAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
prescriptionIdstringrequiredThe prescription id to cancel.
Responses
200
Prescription cancelled
rx_idstringrequiredstatusstringrequired400
Prescription is already dispensed or cancelled
detailstringrequired401
Not authenticated
detailstringrequired404
Prescription not found
detailstringrequired