Validate Bank Account (V3)

Updated Validate Bank Account with smart provider selection.

🙌

Important Note

Please use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.

API Endpoints

This API allows you to validate a bank account by doing a penny drop (small deposit)/penniless transaction automatically. This is a sync API and Decentro returns the response of the account immediately.

📘

Simulation Data

Decentro provides the test data which will simulate various scenarios of the API when a transaction takes place.

Note: This test data is only valid in the Staging environment.

Steps to use this data:

  1. In the request body, pass request values as shared below in the table, depending on the scenario to be tested. Note: For all the scenarios, use the following consumer_urn = 4ac34260a0e34e4f82069e85b4a881fd.
  2. Trigger the API with the scenario chosen in Step 1.
  3. Based on the values provided in Step 1 for each request parameter, the API response will contain the relevant output.
To AccountIFSC CodeValidation ScenariosValidation Status
121416119212SBIN0001077Validate Bank Account API, Account Status as 'Valid'Success
12321890150DBSS0IN0811Validate Bank Account API, Account Status as 'Invalid'Failure

API Specifications

Request Payload

Request ParameterMandatory (M) / Optional (O) / Conditional Mandatory (CM)Description
reference_idMA URN to be passed by the user for each API request. Alphanumeric values are allowed. Special characters such as “@ # $ % ^ & * ! ; : ~ ` ? = + ) ( apostrophe, double quotes” are not allowed
purpose_messageM1. The narration/remarks that will be displayed in the beneficiaries bank statement.

2. Minimum length is 5 characters and Maximum length is 255 characters. No special characters allowed.
consumer_urnMA URN created for a consumer must be passed here.
perform_name_matchOTo compare the name from the name parameter and beneficiary name.

Boolean value is supported.
validation_typeMThe validation method to be passed.
The accepted values are

1.penniless

2.pennydrop

3.hybrid
beneficiary_detailsMObject
nameOThe Beneficiary Account Holder's Name must be added. Mandatory if "perform_name_match" is present.

Note: No name validation is being performed.
account_numberMBeneficiary Account Number to be added. The account number that needs to be validated.
ifscMBeneficiary IFSC code to be added.

1. Alphanumeric values are allowed as per the IFSC code assigned to the beneficiary bank.

2. Maximum length is 11 characters.
mobile_numberO10 digit mobile number must be passed.

Response Payload

Request ParameterMandatory (M) / Optional (O) / Conditional Mandatory (CM)Description
decentro_txn_idMA unique transaction ID generated by Decentro.
api_statusMThe status of the API. These are the status available

1. Success
2. FailureNote that this is not the status of the transaction.
response_keyMResponse key documenting the status of the API hit and various errors.
messageMAPI status message. Note that this is not about the status of the transaction.
dataObject
beneficiary_nameCMThe beneficiary name of the account holder.

The name will come only when account is valid.
account_statusMThe status of the validation of account

1. Valid
2. Invalid
3. Inconclusive
4. NRE
5. Blocked
6. Blacklisted
bank_reference_numberCMThe bank reference number of the transaction performed.
validation_typeCMThe Validation method performed for this request. This parameter will show the values "Penniless" and "Penny Drop".
validation_messageCMThe status message of the validation performed
name_match_percentageCMThe percentage propagated from performing the name match.

Note: Name match will take place only if the account is valid.

Response Keys

Below are the response keys propagated by Decentro in the response_key parameter, which cover all the scenarios a platform can encounter.

ScenarioResponse KeyResponse Message
Missing consumer_urnerror_consumer_urn_missing_or_nullParameter consumer_urn cannot be missing/null. Hint: consumer_urn (string)
Invalid consumer_urn typeerror_consumer_urn_type_not_stringParameter consumer_urn should be a string. Hint: consumer_urn (string)
Short consumer_urnerror_consumer_urn_insufficient_string_lengthParameter consumer_urn should be at least 1 characters long after trimming whitespace. Hint: consumer_urn (string)
Missing purpose_messageerror_purpose_message_missing_or_nullParameter purpose_message cannot be missing/null. Hint: purpose_message (string)
Short purpose_messageerror_purpose_message_insufficient_string_lengthParameter purpose_message should be at least 1 characters long after trimming whitespace. Hint: purpose_message (string)
Invalid purpose_message typeerror_purpose_message_type_not_stringParameter purpose_message should be a string. Hint: purpose_message (string)
Missing validation_typeerror_validation_type_missing_or_nullParameter validation_type cannot be missing/null. Hint: validation_type (string)
Short validation_typeerror_validation_type_insufficient_string_lengthParameter validation_type should be at least 1 characters long after trimming whitespace. Hint: validation_type (string)
Invalid validation_type typeerror_validation_type_type_not_stringParameter validation_type should be a string. Hint: validation_type (string)
Invalid name_match typeerror_perform_name_match_type_not_booleanParameter perform_name_match should be a boolean. Hint: perform_name_match (boolean)
Missing beneficiary_detailserror_missing_key_beneficiary_detailsParameter beneficiary_details cannot be missing/null.
Missing account_numbererror_account_number_missing_or_nullParameter account_number cannot be missing/null. Hint: account_number (string)
Invalid account_number typeerror_account_number_type_not_stringParameter account_number should be a string. Hint: account_number (string)
Missing IFSCerror_ifsc_missing_or_nullParameter ifsc cannot be missing/null. Hint: ifsc (string)
Invalid IFSC typeerror_ifsc_type_not_stringParameter ifsc should be a string. Hint: ifsc (string)
Invalid IFSC lengtherror_ifsc_incorrect_string_lengthParameter ifsc should be exactly 11 characters long after trimming whitespace. Hint: ifsc (string)
Invalid mobile_number formaterror_mobile_number_invalid_mobile_formatParameter mobile_number should be 10 digits long and start with one of 9, 8, 7 or 6.
Unsanitized input valueserror_unsanitized_valuesUnsanitized values detected for key(s): mobile_number. Kindly sanitize the corresponding values by removing special characters such as . @ # $ % ^ & * ! ; : ' " ~ ` ? = + ) ( and retry.
Empty nameerror_empty_nameParameter name cannot be null or empty when perform_name_match is set to True.
No active metering planerror_no_active_metering_planNo active metering plan found for this company
No active planerror_no_active_plan_foundNo active plan configuration found
One-time plan errorerror_plan_type_one_timeInvalid plan type for this API. Please contact the support team.
Missing API pricing configurationerror_no_active_plan_foundAPI pricing not configured in the plan. Please contact the support team.
Insufficient creditserror_insufficient_creditsInsufficient credits for account validation
Invalid consumer_urnerror_invalid_consumer_urnNo consumer found for the provided consumer_urn: {consumer_urn}
Feature unavailableerror_provider_feature_unavailableFeature not available for the selected provider.
Unprocessable entityerror_unprocessable_entityAll the providers are exhausted for account validation. Please drop a mail to `[email protected]. (Hint: No consumer pg details entry found)
Insufficient balanceerror_insufficient_balanceRemitter account balance insufficient for the penny drop. Kindly fund the respective account for penny drop.
Internal server errorerror_internal_server_errorInternal Server Error. Please verify if any debit has occurred before retrying.
Language
Click Try It! to start a request and see the response here!