Users & Profile
Resolve a bank account number to its account name
POST
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.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
accountNumber*stringThe bank account number to resolve (10-digit NUBAN).
bankCode*stringThe bank's code from GET /user/banks.
Account resolved
application/json- response
status*integersuccess*booleanmessage*stringdata*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" }}