Skip to Content
HomeLink Hub
Users & Profile

Resolve a bank account number to its account name

POST
/api/v1/user/bank-details/verify

Access: Bearer token required.

Asks the payout provider (PandaScrow) for the name registered on a bank account so the user can confirm the destination before saving it. Nothing is stored: follow up with PUT /user/bank-details to save. There is no request validation schema on this route; the handler only checks that both fields are present, and converts them to strings.

A provider-side failure, which includes the provider rejecting a wrong account number or bank code, is answered with 500, not a 4xx, with the provider's message appended.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body
accountNumber*string

The bank account number to resolve (10-digit NUBAN).

bankCode*string

The bank's code from GET /user/banks.

Response Body

Account resolved

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/user/bank-details/verify' \  -H 'Content-Type: application/json' \  -d '{  "accountNumber": "0123456789",  "bankCode": "058"}'
Example Response
{  "status": 200,  "success": true,  "message": "Account resolved successfully",  "data": {    "accountNumber": "0123456789",    "bankCode": "058",    "accountHolderName": "ADAEZE OKONKWO"  }}