Verify Account Bank Account PIX
This guide quickly demonstrates how to verify destination Bank Account PIX whether it exists or not and if is valid. We will walk you through the basic steps to achieve this goal using your already existing API integration.
Instructions
Follow the steps below:
- 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:
Field Description integration_keyYour EBANX integration key. targetProvider that will process the payment (bank_account_pix). countryThe two-letter country code for the customer country. In this case, we’ll show the method to br (Brazil). bank_infoDestination account to query. bank_info.bank_documentA valid CPF or CNPJ document number. The following example shows how to verify a destination account:
Shellcurl -X POST \
--location 'https://sandbox.ebanxpay.com/ws/payout/verify_account' \
--header 'Content-Type: application/json' \
--data '{
"integration_key": "{{integration_key}}",
"target": "bank_account_pix",
"country": "br",
"bank_info": {
"bank_name": "104 Caixa Econômica",
"bank_branch": "{{bank_branch}}",
"bank_account": "{{bank_account}}",
"account_type": "C",
"bank_document": "{{tax_id}}"
}
}'And a successful query will return a JSON Object with status "valid" and the recipient's bank information.
JSON{
"recipient": {
"name": "John Doe",
"document": "{{tax_id}}",
"bank_branch": "{{bank_branch}}",
"bank_account": "{{bank_account}}",
"bank_agency": "0",
"account_type": "CHECKING"
},
"status": "valid",
"message": "Account is valid"
}And an unsuccessful query will return a JSON Object with status "invalid", with a message explaining the reason.
JSON{
"status": "invalid",
"message": "Account does not exist in provider"
}The verification of a Bank Account PIX is asynchronous: while the verification is still being processed, the query returns a JSON Object with status "pending" and the message "The request is processing".
JSON{
"status": "pending",
"message": "The request is processing"
}The "pending" status is not a final result. Repeat the same request until the response returns "valid" or "invalid".
Still need help?
We hope this article was helpful. If you still have questions, you can explore the following options:
- Merchant support: Contact our support team at sales.engineering@ebanx.com for assistance.
- Not a partner yet? Please complete the Merchant Signup Form, and our commercial team will reach out to you.