LogoLogo
Document ValidationsPayment Methods
v1
v1
  • D24 Documentation v1
  • Deposits API
    • Streamline API
      • Deposit Creation Endpoint
        • Notifications
      • Deposit Status Endpoint
      • Payment Methods Endpoint
      • Currency Exchange Endpoint
      • Refund Creation Endpoint
      • Refund Status Endpoint
    • Hybrid API
      • Deposit Creation Endpoint
    • Payment Methods
    • API Codes
  • Cashouts API
    • Easy Cashout API
      • Endpoints
        • Easy Cashout Creation Endpoint
        • Easy Cashout Status Endpoint
        • Easy Cashout V2 Creation Endpoint
      • Notifications
      • Easy Cashout V2 Technical and Security Aspects
        • Calculating the Payload-Signature
Powered by GitBook
On this page
  • Payment Methods API
  • Example request
  • Example response
  • Request fields description

Was this helpful?

  1. Deposits API
  2. Streamline API

Payment Methods Endpoint

The Payment Methods endpoint allows you to retrieve the complete list of payment methods you have available for the country specified

Payment Methods API

POST https://api-stg.directa24.com/api_curl/apd/get_banks_by_country

This endpoint returns a list of the Payment Methods available for a specific country. Use this API to show on your Deposit Page the payment methods available.

Headers

Name
Type
Description

Content-Type*

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

x_login*

string

Your D24 WEB STATUS API Key, found on the Merchant Panel by going to Settings -> API Access -> Web Status Credentials -> API Key

x_trans_key*

string

Your D24 WEB STATUS API Passphrase, found on Merchant Panel by going to Settings -> API Access -> Web Status Credentials -> API Passphrase

country_code*

string

Country ISO code

type*

string

The format of the response: JSON, XML or STRING. If none is specified the response will be in XML

[
    {
        "code": "BL",
        "name": "Boleto",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/BL.svg",
        "payment_type": "02"
    },
    {
        "code": "PP",
        "name": "Picpay",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/PP.svg",
        "payment_type": "02"
    },
    {
        "code": "BB",
        "name": "Banco do Brasil",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/BB.svg",
        "payment_type": "00"
    },
    {
        "code": "B",
        "name": "Bradesco",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/B.svg",
        "payment_type": "00"
    },
    {
        "code": "VI",
        "name": "Visa",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/VI.svg",
        "payment_type": "03"
    },
    {
        "code": "MC",
        "name": "Mastercard",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/MC.svg",
        "payment_type": "03"
    },
    {
        "code": "CA",
        "name": "Caixa",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/CA.svg",
        "payment_type": "01"
    },
    {
        "code": "SB",
        "name": "Santander",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/SB.svg",
        "payment_type": "01"
    },
    {
        "code": "I",
        "name": "Itau",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/I.svg",
        "payment_type": "00"
    },
    {
        "code": "SJ",
        "name": "Sicredi",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/SJ.svg",
        "payment_type": "01"
    },
    {
        "code": "BZ",
        "name": "Banco Original",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/BZ.svg",
        "payment_type": "01"
    },
    {
        "code": "UL",
        "name": "Banrisul",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/UL.svg",
        "payment_type": "01"
    },
    {
        "code": "SF",
        "name": "Banco Safra",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/SF.svg",
        "payment_type": "01"
    },
    {
        "code": "LC",
        "name": "Loterias Caixa",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/LC.svg",
        "payment_type": "02"
    }
]

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

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

Example response

[
    {
        "code": "BL",
        "name": "Boleto",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/BL.svg",
        "payment_type": "02"
    },
    {
        "code": "PP",
        "name": "Picpay",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/PP.svg",
        "payment_type": "02"
    },
    {
        "code": "BB",
        "name": "Banco do Brasil",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/BB.svg",
        "payment_type": "00"
    },
    {
        "code": "B",
        "name": "Bradesco",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/B.svg",
        "payment_type": "00"
    },
    {
        "code": "CA",
        "name": "Caixa",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/CA.svg",
        "payment_type": "01"
    },
    {
        "code": "SB",
        "name": "Santander",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/SB.svg",
        "payment_type": "01"
    },
    {
        "code": "I",
        "name": "Itau",
        "logo": "https://resources.directa24.com/cashin/payment_method/square/I.svg",
        "payment_type": "00"
    }
]

Request fields description

Field
Format
Description

x_login

string (max length: 32)

Your D24 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 D24 DEPOSITS API Passphrase, found on the Merchant Panel by going to Settings -> API Access -> Deposit Credentials -> API Passphrase

country_code

String (2 chars)

type

String

Response type. Example: json, xml, pipe

PreviousDeposit Status EndpointNextCurrency Exchange Endpoint

Last updated 2 years ago

Was this helpful?

Country ISO code. to see country codes.

for each payment_type code meaning shown in the get_banks_by_country API response.

Click here
Click here