Skip to main content

Validate API

The following endpoint can be used to fetch the bank account and account number validation:

/disbursements/validate

Request Parameters#

Fieldis required?Description
account_numbermandatorystring The account number associated with the bank
bank_codemandatorystring The bank code. Please refer here to fetch bank details

Example#

curl -u <YOUR_SECRET_KEY> \
-X POST https://api.durianpay.id/v1/disbursements/validate \
-H "content-type: application/json" \
-d '{
"account_number": "123456789",
"bank_code": "bca"
}'

Response Examples#

//valid response status
{
"data": {
"account_number": "12383830",
"bank_code": "bca",
"account_holder": "Dummy Name",
"status": "valid"
}
}
//invalid response status
{
"data": {
"account_number": "12383831",
"bank_code": "bca",
"account_holder": "Dummy Name",
"status": "invalid"
}
}

API Usage#

Please note the above endpoint takes some time to evaluate the results. When it's under evaluation it will return the status as processing.

Response Example#

{
"data": {
"account_number": "123737383830",
"bank_code": "bca",
"account_holder": "",
"status": "processing"
}
}