Skip to Content
HomeLink Hub
Admin

Set the platform payout account

PUT
/api/v1/admin/payout-account

Access: Bearer token required. Roles: ADMIN.

Creates or replaces the platform bank account on the singleton settings document (upsert). Before saving, the account number is resolved against the payment provider (Pandascrow /bank/validate); if a holder name comes back it overrides any accountName you sent. Resolution is best-effort: if the provider call fails, the request still succeeds and the supplied accountName (or null) is stored. bankName is stored as sent and is reset to null when omitted. autoSweepPlatformFees is only changed when the field is present, and it is coerced with JavaScript Boolean(), so send a real JSON boolean (the string "false" would be stored as true). The response masks the account number.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body
accountNumber*string

Bank account number (NUBAN). Stored as a string.

bankCode*string

Bank code from GET /api/v1/admin/banks.

bankName?string

Display name of the bank. Stored as null when omitted.

accountName?string

Account holder name. Used only when the provider cannot resolve the name itself.

autoSweepPlatformFees?boolean

When true, platform fees are transferred to this account automatically as each escrow completes. Left unchanged when omitted.

Response Body

Account saved

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PUT 'http://localhost:4000/api/v1/admin/payout-account' \  -H 'Content-Type: application/json' \  -d '{  "accountNumber": "0123456789",  "bankCode": "058",  "bankName": "Guaranty Trust Bank",  "autoSweepPlatformFees": false}'
Example Response
{  "status": 200,  "success": true,  "message": "Payout account updated successfully",  "data": {    "account": {      "bankName": "Guaranty Trust Bank",      "bankCode": "058",      "accountName": "HOMELINK HUB LIMITED",      "accountNumberMasked": "••••6789"    },    "autoSweepPlatformFees": false  }}