{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Reefpay Docs","description":"Reefpay is the groundbreaking payment gateway that lets you integrate with the future of payments.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"store-a-bank-account","__idx":0},"children":["Store a bank account"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A valid API key — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/setup/obtain-credentials"},"children":["Obtain API credentials"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The person's bank account details (routing number, account number, account type) and a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-build-the-request","__idx":2},"children":["Step 1: Build the request"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Your internal customer identifier"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nickname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["A friendly label (for example, \"Business Checking\")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bank_account.routing_number"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["9-digit ABA routing number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bank_account.account_number"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Bank account number (4–17 digits)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bank_account.account_type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checking"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["savings"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bank_account.name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Account holder name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bank_account.email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Account holder email"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-send-the-request","__idx":3},"children":["Step 2: Send the request"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"curl","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"curl -X POST \\\n  https://api.dev.paradisegateway.net/v1/payment_tokens \\\n  -H \"Content-Type: application/json\" \\\n  -H \"APIKEY: YOUR-API-KEY\" \\\n  -d '{\n    \"customer_id\": \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n    \"nickname\": \"Business Checking\",\n    \"bank_account\": {\n      \"routing_number\": \"021000021\",\n      \"account_number\": \"123456789012\",\n      \"account_type\": \"checking\",\n      \"name\": \"John Doe\",\n      \"email\": \"john.doe@example.com\"\n    }\n  }'\n","lang":"shell"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"import requests\n\nresp = requests.post(\n    \"https://api.dev.paradisegateway.net/v1/payment_tokens\",\n    headers={\"Content-Type\": \"application/json\", \"APIKEY\": \"YOUR-API-KEY\"},\n    json={\n        \"customer_id\": \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n        \"nickname\": \"Business Checking\",\n        \"bank_account\": {\n            \"routing_number\": \"021000021\",\n            \"account_number\": \"123456789012\",\n            \"account_type\": \"checking\",\n            \"name\": \"John Doe\",\n            \"email\": \"john.doe@example.com\",\n        },\n    },\n)\nprint(resp.json())\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const resp = await fetch(\n  \"https://api.dev.paradisegateway.net/v1/payment_tokens\",\n  {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n      \"APIKEY\": \"YOUR-API-KEY\",\n    },\n    body: JSON.stringify({\n      customer_id: \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n      nickname: \"Business Checking\",\n      bank_account: {\n        routing_number: \"021000021\",\n        account_number: \"123456789012\",\n        account_type: \"checking\",\n        name: \"John Doe\",\n        email: \"john.doe@example.com\",\n      },\n    }),\n  }\n);\nconsole.log(await resp.json());\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"using var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"APIKEY\", \"YOUR-API-KEY\");\n\nvar payload = new\n{\n    customer_id = \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n    nickname = \"Business Checking\",\n    bank_account = new\n    {\n        routing_number = \"021000021\",\n        account_number = \"123456789012\",\n        account_type = \"checking\",\n        name = \"John Doe\",\n        email = \"john.doe@example.com\"\n    }\n};\nvar resp = await client.PostAsJsonAsync(\n    \"https://api.dev.paradisegateway.net/v1/payment_tokens\", payload);\nConsole.WriteLine(await resp.Content.ReadAsStringAsync());\n","lang":"csharp"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"HttpClient client = HttpClient.newHttpClient();\nString body = \"\"\"\n    {\n      \"customer_id\": \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n      \"nickname\": \"Business Checking\",\n      \"bank_account\": {\n        \"routing_number\": \"021000021\",\n        \"account_number\": \"123456789012\",\n        \"account_type\": \"checking\",\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\"\n      }\n    }\n    \"\"\";\nHttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.dev.paradisegateway.net/v1/payment_tokens\"))\n    .header(\"Content-Type\", \"application/json\")\n    .header(\"APIKEY\", \"YOUR-API-KEY\")\n    .POST(HttpRequest.BodyPublishers.ofString(body)).build();\nHttpResponse<String> resp = client.send(request,\n    HttpResponse.BodyHandlers.ofString());\nSystem.out.println(resp.body());\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"payload := strings.NewReader(`{\n  \"customer_id\": \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n  \"nickname\": \"Business Checking\",\n  \"bank_account\": {\n    \"routing_number\": \"021000021\",\n    \"account_number\": \"123456789012\",\n    \"account_type\": \"checking\",\n    \"name\": \"John Doe\",\n    \"email\": \"john.doe@example.com\"\n  }\n}`)\nreq, _ := http.NewRequest(\"POST\",\n    \"https://api.dev.paradisegateway.net/v1/payment_tokens\", payload)\nreq.Header.Set(\"Content-Type\", \"application/json\")\nreq.Header.Set(\"APIKEY\", \"YOUR-API-KEY\")\nresp, _ := http.DefaultClient.Do(req)\ndefer resp.Body.Close()\nbody, _ := io.ReadAll(resp.Body)\nfmt.Println(string(body))\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"$ch = curl_init(\"https://api.dev.paradisegateway.net/v1/payment_tokens\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true,\n    CURLOPT_HTTPHEADER => [\"Content-Type: application/json\", \"APIKEY: YOUR-API-KEY\"],\n    CURLOPT_POSTFIELDS => json_encode([\n        \"customer_id\" => \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n        \"nickname\" => \"Business Checking\",\n        \"bank_account\" => [\n            \"routing_number\" => \"021000021\",\n            \"account_number\" => \"123456789012\",\n            \"account_type\" => \"checking\",\n            \"name\" => \"John Doe\",\n            \"email\" => \"john.doe@example.com\",\n        ],\n    ]),\n]);\necho curl_exec($ch); curl_close($ch);\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"require \"net/http\"; require \"json\"\nuri = URI(\"https://api.dev.paradisegateway.net/v1/payment_tokens\")\nreq = Net::HTTP::Post.new(uri, {\n  \"Content-Type\" => \"application/json\", \"APIKEY\" => \"YOUR-API-KEY\",\n})\nreq.body = {\n  customer_id: \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n  nickname: \"Business Checking\",\n  bank_account: {\n    routing_number: \"021000021\", account_number: \"123456789012\",\n    account_type: \"checking\", name: \"John Doe\",\n    email: \"john.doe@example.com\",\n  },\n}.to_json\nresp = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }\nputs resp.body\n","lang":"ruby"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3-handle-the-response","__idx":4},"children":["Step 3: Handle the response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["201 Created"]}," response returns the token and masked bank details."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"payment_token\": \"PAYMENT_TOKEN-02LGEHBA0BZSPA6WRY1T3H4CD\",\n  \"object\": \"payment_token\",\n  \"type\": \"bank_account\",\n  \"status\": \"active\",\n  \"customer_id\": \"CUSTOMER-01KFDKXMQ637EKEAY410MSQSXB\",\n  \"nickname\": \"Business Checking\",\n  \"bank_account\": {\n    \"last_four\": \"9012\",\n    \"routing_number_last_four\": \"0021\",\n    \"account_type\": \"checking\"\n  },\n  \"correlation_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response only contains masked details — the full account and routing numbers are never returned."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"bank-account-verification","__idx":5},"children":["Bank account verification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Some use cases require verifying that the person owns the bank account before processing payments. Common verification methods include:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Method"},"children":["Method"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"How it works"},"children":["How it works"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Timeline"},"children":["Timeline"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Micro-deposits"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Two small deposits (for example, $0.05 and $0.12) are sent to the account. The person confirms the amounts."]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["2–3 business days"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Instant verification"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["A third-party service confirms ownership in real time via bank login"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Seconds"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Token status during verification"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If verification is required, the token status may be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["verification_pending"]}," until the person confirms ownership. Only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}," tokens can be used in transactions."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"token-statuses-for-bank-accounts","__idx":6},"children":["Token statuses for bank accounts"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Can transact"},"children":["Can transact"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Verified and ready"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["verification_pending"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Awaiting verification"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["verification_failed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Verification did not pass"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["inactive"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Soft-deleted"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":7},"children":["Next steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/process-payments/process-ach-payment"},"children":["Process an ACH payment"]}," — use the token for a bank debit"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/process-payments/process-ach-payout"},"children":["Process an ACH payout"]}," — use the token for a bank credit"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/tokenization-vaulting/update-payment-method"},"children":["Update stored payment method"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/concepts/transactions/ach-accounts"},"children":["About ACH/bank account payments"]}]}]}]},"headings":[{"value":"Store a bank account","id":"store-a-bank-account","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Step 1: Build the request","id":"step-1-build-the-request","depth":2},{"value":"Step 2: Send the request","id":"step-2-send-the-request","depth":2},{"value":"Step 3: Handle the response","id":"step-3-handle-the-response","depth":2},{"value":"Bank account verification","id":"bank-account-verification","depth":2},{"value":"Token statuses for bank accounts","id":"token-statuses-for-bank-accounts","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"title":"Store a bank account","shortTitle":"Store a bank account","intro":"Tokenize a bank account through the Payment Tokens API. The account details are encrypted in the vault and you receive a reusable payment_token for ACH payments and payouts.","type":"how-to","seo":{"title":""}},"lastModified":"2026-06-05T02:46:44.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/how-tos/tokenization-vaulting/store-bank","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}