Payment Methods Endpoint
The Payment Methods endpoint allows you to retrieve the complete list of payment methods you have available for the country specified
post
https://api-stg.directa24.com
/api_curl/apd/get_banks_by_country
Payment Methods API
The same information this endpoint returns can be retrieved from the Merchant Panel by going to the Payment Methods section.
All the requests must be in x-www-form-urlencoded format and contain the following header:
Content-Type: application/x-www-form-urlencoded

Example request

1
curl -X POST \
2
https://api.directa24.com/api_curl/apd/get_banks_by_country \
3
-H 'Content-Type: application/x-www-form-urlencoded' \
4
-d 'x_login=API_Key&x_trans_key=API_Passphrase&country_code=BR&type=json'
5
6
Copied!

Example response

1
[
2
{
3
"code": "BL",
4
"name": "Boleto",
5
"logo": "https://resources.directa24.com/cashin/payment_method/square/BL.svg",
6
"payment_type": "02"
7
},
8
{
9
"code": "PP",
10
"name": "Picpay",
11
"logo": "https://resources.directa24.com/cashin/payment_method/square/PP.svg",
12
"payment_type": "02"
13
},
14
{
15
"code": "BB",
16
"name": "Banco do Brasil",
17
"logo": "https://resources.directa24.com/cashin/payment_method/square/BB.svg",
18
"payment_type": "00"
19
},
20
{
21
"code": "B",
22
"name": "Bradesco",
23
"logo": "https://resources.directa24.com/cashin/payment_method/square/B.svg",
24
"payment_type": "00"
25
},
26
{
27
"code": "CA",
28
"name": "Caixa",
29
"logo": "https://resources.directa24.com/cashin/payment_method/square/CA.svg",
30
"payment_type": "01"
31
},
32
{
33
"code": "SB",
34
"name": "Santander",
35
"logo": "https://resources.directa24.com/cashin/payment_method/square/SB.svg",
36
"payment_type": "01"
37
},
38
{
39
"code": "I",
40
"name": "Itau",
41
"logo": "https://resources.directa24.com/cashin/payment_method/square/I.svg",
42
"payment_type": "00"
43
}
44
]
Copied!

Request fields description

Field
Format
Description
x_login
string (max length: 32)
Your Directa24 DEPOSITS API Key, found on the Merchant Panel by going to Settings -> API Access -> Deposit Credentials -> API Key
x_trans_key
string (max length: 32)
Your Directa24 DEPOSITS API Passphrase, found on the Merchant Panel by going to Settings -> API Access -> Deposit Credentials -> API Passphrase
country_code
String (2 chars)
Country ISO code. Click here to see country codes.
type
String
Response type. Example: json, xml, pipe
Click here for each payment_type code meaning shown in the get_banks_by_country API response.