Skip to main content
Generate virtual accounts for customers via Localpayment’s API. Support for individual and batch processing. Programmatically generate virtual accounts for your customers through Localpayment’s API. Support both individual account creation and batch processing for multiple accounts.

Before You Begin

Ensure you have:

API Credentials

Valid API credentials and access token for authentication.

Account Setup

Proper account setup for your target country and business verification.

IP Whitelisting

Whitelist your server IP addresses for API access.

Webhook Endpoint

Set up a webhook URL to receive payment notifications.

Virtual Account Creation Methods

We offer flexible options for virtual account creation to suit different operational needs. You can create virtual accounts through both online (API) and offline methods, and regardless of the method chosen, you have two creation modes available:
  • Individual Creation : Generate single virtual accounts with specific configurations, ideal for customer-driven flows and scenarios requiring per-account customization.
  • Batch Creation : Process multiple virtual accounts in a single operation, optimized for bulk account generation, mass onboarding, and scenarios where processing efficiency is prioritized.
ImportantCash deposits are not accepted. Virtual account numbers can only receive electronic payments. Any cash deposit made to a virtual account number, whether at a bank branch, ATM, or any other channel, will not be credited to the merchant. Payers must send funds exclusively via bank transfer, using the electronic payment rails supported in their country.

Beneficiary Requirements

Understanding beneficiary restrictions is crucial for successful virtual account creation. Each country has specific regulations regarding who can be listed as account beneficiaries, which directly impacts how you structure your payment operations.

Residency Requirements by Country

The following table outlines which beneficiary types are accepted in each country:
CountryLocal ResidentsForeign ResidentsAccount OwnerAliasBank Transfer Display Name
Argentina✅✅
  • FBO = Foreign Residents
  • DDA = Local Residents
Up to 1 alias creation
  • Beneficiary’s name (provided during Virtual Account creation, if Argentine)
  • Localpayment’s legal entity name (all other cases)
Brazil✅✅
  • FBO = Foreign Residents
  • DDA = Local Residents
N/ALocalpayment’s legal entity name
Chile✅✅FBON/ALocalpayment’s legal entity name
Colombia✅✅FBODefault keyLocalpayment’s legal entity name
Mexico✅✅DDA = Local ResidentsN/ALocalpayment’s legal entity name
Peru✅✅FBON/ALocalpayment’s legal entity name
Costa Rica✅✅FBON/ALocalpayment’s legal entity name

Notes:
  • Account Owner refers to the legal account holder name registered in the banking system (the name visible at the bank level). FBO (For Benefit Of) means the account is opened in Localpayment’s name, holding funds for the benefit of the end customer. DDA (Demand Deposit Account) means the account is opened directly in the beneficiary’s name.
  • Alias: refers to the number of aliases (or type of alias) that can be registered for a virtual account, when supported.
  • Bank Transfer Display Name: refers to the payer-facing name shown during an electronic fund transfer to the virtual account.

Beneficiary Information Required to Create a Virtual Account

Required Information:
  • Beneficiary Type: Defines whether the virtual account belongs to an individual or a company:
    • INDIVIDUAL: For a personal account.
    • COMPANY: For a business/legal entity.
  • Beneficiary Name: Full name of the person or legal business name.
  • Beneficiary Document: Official identification information to verify identity.
  • Address: Full address of the beneficiary.
  • Website: The beneficiary’s website URL.

Country-Specific Requirements

Implementation details for Virtual Accounts vary by country. Any country not explicitly mentioned adheres to the standard procedure without special requirements. Review these requirements before integration:

Account Format

In Argentina, the CVU (Clave Virtual Uniforme) is a 22-digit numeric code used by virtual accounts issued by PSPs (Payment Service Providers).Structure:
  • Positions 1-3: 3 digits - Issuing entity (PSP) code.
  • Positions 4-7: 4 digits - Account type identifier within the PSP.
  • Position 8: 1 digit - Verification digit (checksum).
  • Positions 9-21: 13 digits - Unique account number within the PSP.
  • Position 22: 1 digit – Control digit (checksum validator).
Example: 0000003112345678901234

Step 1: Create a Virtual Account

Option 1: Individual Virtual Account Creation

Create single virtual accounts with detailed configuration for specific customers or transactions. To create a virtual account, you’ll need to send a POST request to the Create a Virtual Account endpoint.

Key Request Parameters

The request requires several key parameters:

Example Request

Below is an example using curl:
curl
See all available parameters in the request.

Successful Response

A successful request will result in the API returning a status code of 100, with the account status initially set to INPROGRESS. The virtual account will remain in this state during activation and will transition to one of the available statuses once the activation process completes.

Key Response Fields

Error Response

When a request fails, you’ll receive detailed error information:

Account Activation Time

The activation time for virtual accounts varies by country. Below are the estimated times for accounts to become active and ready to receive payments:
  • Argentina: Up to 6 seconds
  • Brazil: Up to 15 minutes
  • Chile: Up to 6 seconds
  • Colombia: Up to 6 seconds
  • Mexico: Up to 6 seconds
  • Peru: Up to 6 seconds

Option 2: Create Virtual Accounts in Batch

Generate multiple virtual accounts in a single API request for efficient bulk operations. To create virtual accounts in bulk, you’ll need to send a POST request to the Create Virtual Accounts in Batch endpoint.

Only accounts within the same country can be created in a single batch request.

Key Request Parameters

The request requires several key parameters:

Example Request

Below is an example using curl:
curl
See all available parameters in the request.

Successful Response

A successful request will result in the API returning a status code of 100, with the account status set to INPROGRESS.

Key Response Fields

Error Response

When a request fails, you’ll receive detailed error information:
For a complete list of status codes and their meanings, please refer to the Transaction Status documentation.

Step 2. Track Virtual Account Status

Monitoring your virtual accounts’ status is essential for maintaining optimal payment operations. Localpayment provides comprehensive tracking capabilities for both individual and batch-created accounts through consistent API endpoints and real-time status updates.

For Individual Virtual Accounts

To check the status of an individual virtual account, you’ll need to send a GET request to the Get Virtual Account Status endpoint.

For Batch-Created Accounts

To monitor the processing status of batch-created virtual accounts, you’ll need to send a GET request to the Get Virtual Account Status (Batch) endpoint.

Next Steps

Track Virtual Account Status

Monitor the lifecycle of your virtual accounts to maintain optimal payment operations. Learn about the different status types and understand what each one means for your payment processing capabilities.

Payment Instructions

Provide payers with the correct beneficiary details returned in the Get Virtual Account Status API response to process payments correctly. View country-specific instructions to ensure accurate and compliant payment execution.

Enable / Disable a Virtual Account

Manage account availability by temporarily activating or deactivating virtual accounts. This is useful for seasonal businesses, account maintenance, or temporary suspensions.

Delete a Virtual Account

Permanently deactivate a virtual account. This prevents all future payments to it but retains its full history. The action is irreversible. Use for accounts no longer needed; create a new one to resume operations.

Last modified on November 22, 2026