Skip to main content
The Verification API helps you validate bank account numbers and card BINs before processing transactions. This reduces failed transactions and improves user experience.

Overview

Verification services include:
  • Bank account name resolution
  • Account number validation
  • Card BIN lookup
  • Bank information retrieval
Some verification endpoints may incur charges. Check Paystack’s pricing page for details.

Resolve Bank Account

Retrieve the account name for a bank account number.
1

Initialize the SDK

2

Resolve the account

Parameters

string
required
Bank account number to resolve
string
required
Bank code (see Miscellaneous API for bank codes)
Use account resolution to verify recipient details before creating transfer recipients or initiating transfers.

Validate Bank Account

Validate a customer’s account using various verification methods.

Validation Parameters

string
required
Name on the bank account
string
required
Bank account number
string
required
Account type: personal or business
string
required
Bank code
string
required
Two-letter country code (e.g., NG, GH, ZA)
string
required
Type of identity document: identityNumber, passportNumber, businessRegistrationNumber
string
required
Identity document number
Account validation may incur charges per request. Use it only when necessary.

Resolve Card BIN

Get information about a card from its BIN (first 6 digits).

Response Fields

string
Card BIN (first 6 digits)
string
Card brand: visa, mastercard, verve, etc.
string
Card sub-brand (e.g., ELECTRON, CLASSIC)
string
Card type: debit or credit
string
Issuing bank name
string
Two-letter country code
string
Full country name
number
Linked bank ID in Paystack system

Error Handling

Handle verification errors appropriately:

Best Practices

  1. Cache resolution results to avoid repeated API calls
  2. Show account names to users for confirmation
  3. Handle network errors gracefully
  4. Validate input before making API calls
  5. Use BIN lookup to provide better UX during card entry
  6. Implement retries for transient failures
  7. Log verification attempts for debugging
  8. Consider rate limits when doing bulk verifications

Common Scenarios

Transfer Recipient Creation

Card Payment Validation

Batch Account Verification

Form Validation with Real-time Verification

Caching Strategies

Cache verification results to reduce API calls:

Rate Limiting

Implement rate limiting for bulk verifications: