Skip to content
Last updated

Store a bank account

Prerequisites

  • A valid API key — see Obtain API credentials
  • The person's bank account details (routing number, account number, account type) and a customer_id

Step 1: Build the request

FieldRequiredDescription
customer_idYesYour internal customer identifier
nicknameNoA friendly label (for example, "Business Checking")
bank_account.routing_numberYes9-digit ABA routing number
bank_account.account_numberYesBank account number (4–17 digits)
bank_account.account_typeYeschecking or savings
bank_account.nameYesAccount holder name
bank_account.emailYesAccount holder email

Step 2: Send the request

curl -X POST \
  https://api.dev.paradisegateway.net/v1/payment_tokens \
  -H "Content-Type: application/json" \
  -H "APIKEY: YOUR-API-KEY" \
  -d '{
    "customer_id": "CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB",
    "nickname": "Business Checking",
    "bank_account": {
      "routing_number": "021000021",
      "account_number": "123456789012",
      "account_type": "checking",
      "name": "John Doe",
      "email": "john.doe@example.com"
    }
  }'

Step 3: Handle the response

A 201 Created response returns the token and masked bank details.

{
  "payment_token": "PAYMENT_TOKEN-02LGEHBA0BZSPA6WRY1T3H4CD",
  "object": "payment_token",
  "type": "bank_account",
  "status": "active",
  "customer_id": "CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB",
  "nickname": "Business Checking",
  "bank_account": {
    "last_four": "9012",
    "routing_number_last_four": "0021",
    "account_type": "checking"
  },
  "correlation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}

The response only contains masked details — the full account and routing numbers are never returned.

Bank account verification

Some use cases require verifying that the person owns the bank account before processing payments. Common verification methods include:

MethodHow it worksTimeline
Micro-depositsTwo small deposits (for example, $0.05 and $0.12) are sent to the account. The person confirms the amounts.2–3 business days
Instant verificationA third-party service confirms ownership in real time via bank loginSeconds
Token status during verification

If verification is required, the token status may be verification_pending until the person confirms ownership. Only active tokens can be used in transactions.

Token statuses for bank accounts

StatusDescriptionCan transact
activeVerified and readyYes
verification_pendingAwaiting verificationNo
verification_failedVerification did not passNo
inactiveSoft-deletedNo

Next steps