Skip to content

Mock Review a Beneficiary

Request

Simulates a review action (approve or reject) on a beneficiary. This endpoint is only available in sandbox/non-production environments.

Security
JWT
Path
idstringrequired

The ID of the beneficiary to review.

Example:bene_698c0615XZocZ
Bodyapplication/jsonrequired
review_actionstringrequired

The review action to perform on a pending beneficiary. approve moves it to active; reject moves it to rejected. A beneficiary that is not pending returns a 422.

Enum:"approve""reject"
Example:"approve"
curl -i -X PATCH \
  https://api.glomopay.com/api/v2/beneficiaries/bene_698c0615XZocZ/mock-review \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "review_action": "approve"
  }'

Responses

Beneficiary status updated successfully

Bodyapplication/json
messagestring
Example:"Beneficiary status updated successfully"
Response
{ "message": "Beneficiary status updated successfully" }