Argentina
Check the requirements and validations made over the cashouts on Argentina

Required fields

Field
Format
Description
login
String
Cashouts login
pass
String
Cashouts pass
external_id
String (max length: 100)
Transaction's ID on your end
document_id
Beneficiary's document ID
country
AR
currency
ARS / USD
amount
Number with up to 2 decimals
Cashout amount
bank_account
See validations below
Beneficiary's bank account
beneficiary_name
String (max length: 100)
Beneficiary's name
beneficiary_lastname
String (max length: 100)
Beneficiary's last name

Bank Account Validations

Bank name
Description
Format
All
Numeric, Length 22
Could not load image
CBU bank accounts format

CBU validation algorithm

Click here for more information about the CBU format.
Since the first three digits of the CBU are the bank code, it is not mandatory to send the bank_code field.
Java
1
public class Validations {
2
static Integer CBU_LENGTH = 22;
3
4
public static Boolean verifyCBU(String cbu) {
5
return cbuLengthValidation(cbu) && bankCodeValidation(cbu) && accountValidation(cbu);
6
}
7
8
public static Boolean cbuLengthValidation(String cbu) {
9
return cbu.length() == 22 && ValidationsUtils.validateOnlyNumbers(cbu);
10
}
11
12
public static Boolean bankCodeValidation(String cbu) {
13
if (cbu.length() == CBU_LENGTH && ValidationsUtils.validateOnlyNumbers(cbu)) {
14
String shortCbu = StringUtils.left(cbu, 8);
15
String bankCode = shortCbu.substring(0, 3);
16
String branchCode = shortCbu.substring(4, 7);
17
int firstCheckDigit = charToInt(shortCbu.toCharArray()[3]);
18
int secondCheckDigit = charToInt(shortCbu.toCharArray()[7]);
19
int sum = charToInt(bankCode.charAt(0)) * 7 + charToInt(bankCode.charAt(1)) * 1 + charToInt(bankCode.charAt(2)) * 3 + firstCheckDigit * 9 + charToInt(branchCode.charAt(0)) * 7 + charToInt(branchCode.charAt(1)) * 1 + charToInt(branchCode.charAt(2)) * 3;
20
int diference = (10 - sum % 10) % 10;
21
return diference == secondCheckDigit;
22
} else {
23
return false;
24
}
25
}
26
27
public static Boolean accountValidation(String cbu) {
28
String account = cbu.substring(8, 22);
29
int sum = 0;
30
int j = 0;
31
int[] weighter = new int[]{3, 9, 7, 1};
32
char[] arrayAccount = account.toCharArray();
33
int checkDigit = charToInt(account.toCharArray()[13]);
34
35
for(int i = 0; i < 13; ++i) {
36
sum += charToInt(arrayAccount[i]) * weighter[j % 4];
37
++j;
38
}
39
40
int diference = (10 - sum % 10) % 10;
41
return diference == checkDigit;
42
}
43
44
private static int charToInt(char ch) {
45
return Integer.parseInt(String.valueOf(ch));
46
}
47
}
Copied!

Document Validations

Click here to check document types and validations.

Example Request

1
{
2
"login": "xxxxxxx",
3
"pass": "xxxxxxx",
4
"external_id": "30000000001",
5
"country": "AR",
6
"currency": "ARS",
7
"amount": 100,
8
"document_id": "34321234",
9
"beneficiary_name": "User",
10
"beneficiary_lastname": "Test",
11
"bank_account": "0930002608112456123456",
12
"notification_url": "https://webhook.site/url",
13
"type": "json"
14
}
Copied!

Bank Codes

Notice that the bank code is not mandatory for Argentina as it is part of the bank account.
Bank
Code
A.B.N Amro Bank
005
Banco de Galicia Y Buenos Aires
007
Lloyds Tsb Bank
010
Banco de La Nación Argentina
011
Banco de La Provincia de Buenos Aires
014
Industrial and Commercial Bank of China (ICBC)
015
Citibank
016
BBVA Banco Frances
017
The Bank Of Tokyo - Mitsubishi
018
Banco de La Provincia de Cordoba
020
Superville Bank
027
Banco de La Ciudad de Buenos Aires
029
Banco Patagonia Sudameris
034
Banco Hipotecario
044
Banco de San Juan
045
Banco Do Brasil
046
Banco Del Tucuman
060
Banco Municipal de Rosario
065
Santander Río
072
For the full and most up-to-date list of banks and its codes, please check the Cashout Bank Code endpoint.