Skip to main content

Verify Account

This guide quickly demonstrates how to verify destination accounts whether it exists or not. We will walk you through the basic steps to achieve this goal using your already existing API integration.

Instructions

Follow the steps below:

  1. Verify account using the /ws/payout/verify_account end-point

    To verify account, you will use the /ws/payout/verify_account endpoint.

    The following fields are required:

    FieldDescription
    integration_keyYour EBANX integration key.
    targetProvider that will process the payment (mercadopago, pix, etc)
    target_accountDestination account to query
    countryThe two-letter country code for the customer country. In this case, we'll show the method to br(Brazil)

    The following example shows how to verify a destination account:

    curl -X POST 'https://sandbox.ebanx.com/ws/payout/verify_account' \
    -d 'integration_key=your_test_integration_key' \
    -d 'target=mercadopago' \
    -d 'target_account=janedoe@someone.co' \
    -d 'country=br'

    And a successful query will return a JSON Object with status "valid".

    {
    "status": "valid",
    "message": "Account is valid"
    }
    {
    "status": "valid",
    "message": "Account does not have KYC complete in provider"
    }

    And a unsuccessful query will return a JSON Object with status "invalid", with a message explaining the reason.

    {
    "status": "invalid",
    "message": "Account not able to receive transfers in this country"
    }
    {
    "status": "invalid",
    "message": "Account does not exist in provider"
    }

Errors

If an API call fails, EBANX returns a JSON response with error details.

HTTP Status CodeDescription
400Invalid Request
401Authentication Error
404Account Error
424Provider Unavailable
429Limit Rate
500Server Side Error
504Internal Error

The following key-value pairs exist with each error response body.

{
"code":"limit_rate_reached",
"error": "Maximum attempts reached. Please try again in a few minutes."
}

Error codes

The table below lists all possible error codes returned by the Verify Account API.

CodeError
HP-VT-01Invalid json expression
HP-VT-02Empty json payload
HP-VT-03Empty integration_key value
HP-VT-04Invalid integration_key value
HP-VT-05Account is not enabled
HP-VT-06Target requested not found
HP-VT-07Target account is empty
HP-VT-08Invalid country
HP-VT-09Target not enabled for this country
HP-VT-10Target requested not available for query
HP-VT-11Configurations for target are missing for merchant
HP-VT-12Configurations for target are incomplete
HP-VT-13Authentication failure
HP-CM-13Empty bank name
HP-CM-14Invalid bank name
HP-CM-15Empty account type
HP-CM-16Invalid account type
HP-CM-18Empty bank account
HP-CM-19Empty bank branch
HP-CM-20Empty bank details
HP-CM-86Bank details should be a valid phone number
limit_rate_reachedMaximum attempts reached. Please try again in a few minutes.
errorA server side error occurred

Still need help?

Help Image

We hope this article was helpful. If you still have questions, you can explore the following options: