Refunds the payer’s locked funds for an escrow, outside of the dispute resolution flow. This is a direct admin action — no dispute needs to exist.
Required admin role: support, compliance, or super_admin
Refundable statuses: funded, active, inspection, disputed
The escrow is moved to refunded status and the payer’s wallet is credited via
process_wallet_operation('escrow_refund'). The DB transaction trigger then fires
the refund_initiated and refund succeeded notification events to both parties.
Role hierarchy:
| Role | Description |
|---|---|
support | Front-line: view escrows, resolve disputes, issue refunds, join conversations |
compliance | Support + KYC review, EDD case management, audit log access |
super_admin | All of the above + manage admin roles, platform stats, override any status |
JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.