Skip to Content
HomeLink Hub
Earnings & Payouts

Resolve a bank account name

POST
/api/v1/earnings/banks/validate

Access: Bearer token required.

Looks up an account number at a bank through the payout provider (Pandascrow POST /bank/validate) and returns the name on the account, so the user can confirm the destination before saving it or withdrawing to it. Nothing is stored. Both values are coerced to strings before being sent.

The provider's field names for the resolved account are not documented, so the service reads the name under several spellings; if none matches, the call still returns 200 with accountName as an empty string. Treat an empty accountName as "could not be resolved".

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 to resolve (10-digit NUBAN for Nigerian banks).

bankCode*string

Bank code from GET /earnings/banks.

Response Body

The account was resolved. accountNumber falls back to the number sent when the provider does not echo it; bank and accountName are empty strings when the provider omits them.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/earnings/banks/validate' \  -H 'Content-Type: application/json' \  -d '{  "accountNumber": "0123456789",  "bankCode": "058"}'
Example Response
{  "status": 200,  "success": true,  "message": "Account resolved successfully",  "data": {    "accountNumber": "0123456789",    "accountName": "FOLAKE ADEYEMI",    "bank": "Guaranty Trust Bank"  }}