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

POST /reviews/record/complete

Owner administration or the explicitly assigned business permission is required. Actions are scoped to the signed-in branch. A request cannot be approved by its creator. Locked sessions return 423.

POST/api/v1/security/reviews/{id}/complete
Authorization
AuthorizationBearer token (JWT) · headerrequired

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

Path parameters
idstringrequired

The staff, review, request or drawer identifier.

Request body
requiredapplication/json
reasonstring
max length 500 · default: ""
payment_methodstring
default: "cash"
Allowed:cashcardmobile_moneytransferinsurancecredit
payment_linesobject[]
min items 1 · max items 6
Show properties
Array of object
methodstringrequired
Allowed:cashcardmobile_moneytransferinsurancecredit
amountnumberrequired
confirmed_totalnumberrequired
min 0
referencestring
max length 120 · default: ""
Responses
200

Operation completed

any
201

Record created

400

Invalid request

detailstringrequired
401

Session expired or revoked

detailstringrequired
403

Permission denied or self-approval

detailstringrequired
409

Record changed or no longer actionable

detailstringrequired
423

Register locked

detailstringrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://localhost:8000/api/v1/security/reviews/string/complete' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "",
  "payment_method": "cash",
  "payment_lines": [
    {
      "method": "cash",
      "amount": 1
    }
  ],
  "confirmed_total": 0,
  "reference": ""
}'
Response
Operation completed