US Accounts (Bridge)
Create and manage United States bank accounts using the Bloque SDK with Bridge.
Overview
US accounts are real bank accounts in the United States provided by Bridge. They enable:
- Real Bank Accounts: FDIC-insured deposit accounts at US banks
- Full KYC: Identity verification and regulatory compliance
- ACH and Wire: Receive and send bank transfers
- Individual and Business: Support for persons and businesses
- Terms of Service: Required TOS acceptance process
Creation Flow
Creating US accounts requires a two-step process:
- Get TOS Link: Generate a link for the user to accept terms and conditions
- Create Account: Use the received
signedAgreementIdto create the account
Step 1: Generate Terms and Conditions Link
get-tos-link.ts
Response:
types.ts
Embed the Link
You can embed tosLink.url in an iframe, open it in a new window, or send it via email. The user will be redirected to redirectUri after accepting the terms.
Step 2: Capture the Signed Agreement ID
After the user accepts the terms, Bridge will redirect to your redirectUri with the signed_agreement_id as a query parameter:
Step 3: Create the Account
Once you have the signedAgreementId, you can create the account:
create-us-account.ts
Creation Parameters
Individual Account
types.ts
Business Account
types.ts
Response
types.ts
Managing US Accounts
List Accounts
Get all US accounts for a user:
list-accounts.ts
Update Metadata
Update custom metadata on a US account:
update-metadata.ts
Metadata Restrictions
All metadata values must be strings.
Account States
Manage the state of US accounts:
manage-state.ts
Available States
Complete Example
complete-example.ts
Error Handling
error-handling.ts
Best Practices
- TOS Flow: Always complete the terms acceptance flow before creating the account
- Embed the Link: You can embed the TOS link in an iframe or modal for better UX
- Data Validation: Validate user data before submitting
- ID Images: Ensure images are in base64 format and legible
- Phone Format: Use E.164 format for phone numbers (+1XXXXXXXXXX)
- Webhooks: Configure webhooks to receive status updates
- Error Handling: Implement robust error handling for the KYC flow
- Metadata: Use metadata to track account origins and purposes
Differences from Other Account Types
Next Steps
- Transfers - Transfer funds between accounts
- Virtual Cards - Create payment cards
- Bancolombia - Bancolombia integration