Set the platform 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.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
accountNumber*stringBank account number (NUBAN). Stored as a string.
bankCode*stringBank code from GET /api/v1/admin/banks.
bankName?stringDisplay name of the bank. Stored as null when omitted.
accountName?stringAccount holder name. Used only when the provider cannot resolve the name itself.
autoSweepPlatformFees?booleanWhen true, platform fees are transferred to this account automatically as each escrow completes. Left unchanged when omitted.
Account saved
application/json- response
status*integersuccess*booleanmessage*stringdata*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}'{ "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 }}
HomeLink Hub