Resolve a bank account name
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".
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
accountNumber*stringBank account number to resolve (10-digit NUBAN for Nigerian banks).
bankCode*stringBank code from GET /earnings/banks.
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- response
status*integersuccess*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/earnings/banks/validate' \ -H 'Content-Type: application/json' \ -d '{ "accountNumber": "0123456789", "bankCode": "058"}'{ "status": 200, "success": true, "message": "Account resolved successfully", "data": { "accountNumber": "0123456789", "accountName": "FOLAKE ADEYEMI", "bank": "Guaranty Trust Bank" }}List banks supported for payouts GET
Returns the payout provider's (Pandascrow GET /bank/lists) list of banks, for the bank picker on the withdrawal and payout-account forms.
Withdraw from the wallet to a bank account POST
Sends part of the caller's available wallet balance to a Nigerian bank account by Pandascrow bank transfer (POST /bank/transfers, drawn from the platform's Pandascrow wallet).