Skip to Content
HomeLink Hub
Admin

Get the platform payout account

GET
/api/v1/admin/payout-account

Access: Bearer token required. Roles: ADMIN.

The bank account platform revenue is paid into, read from the singleton settings document, plus the autoSweepPlatformFees switch. The account number is never returned in full: accountNumberMasked is four bullet characters followed by the last four digits. account is null until an account number has been configured. When autoSweepPlatformFees is true the platform fee is transferred to this account as soon as an escrow completes; when false (the default) fees accrue and an admin withdraws them with POST /api/v1/admin/withdraw.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

  • Configured account
  • No account configured yet
application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/admin/payout-account'
Example Response
{  "status": 200,  "success": true,  "message": "Payout account fetched successfully",  "data": {    "account": {      "bankName": "Guaranty Trust Bank",      "bankCode": "058",      "accountName": "HOMELINK HUB LIMITED",      "accountNumberMasked": "••••6789"    },    "autoSweepPlatformFees": false  }}