Mobile to Account Number (V3)

This API allows the platform to fetch the primary account mapped to the end-customer’s mobile number.

🙌

Important Note

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

This API endpoint and schema is relevant only when integrating with our Payment Aggregator entity (Decfin).

Overview

This API allows Decentro’s clients to retrieve the Bank Account Details and the UPI VPA (Virtual Payment Address) associated with a end-user's mobile number.

Flow

Below is the flow for using this API through Decentro:

  1. The platform creates the request body by passing the authentication header parameters along with the reference_id, consumer_urn, and mobile_number in the request body.
  2. Decentro validates the request payload and processes the request if there are no errors with the request payload.
    1. Please see the response key section for more information on the possible error responses.
  3. Decentro will respond with the success message and response key if we were able to successfully fetch the account and VPA details
    1. The relevant response parameters will be passed within the data block
    2. Decentro will perform a penny drop (INR 1.00) or a paisa drop (INR 0.01) as a part of the validation process.
  4. If Decentro is not able to find/fetch the required details:
    1. The API will respond with the relevant failure message and response key
    2. We will not propagate any values in the data block
  5. If the api_status is "PENDING", please use the GET Mobile to Account Status (V3) API to retrieve the terminal status of the verification request.

🚧

Global Velocity Controls are implemented for this API

We ensure this service is not abused via our Global Velocity Controls. Our default velocity limits, set against each mobile number, are 3 per min / 4 per hour / 5 per day.

These limits are in place at to ensure that the same mobile number, or bank account, does not receive unlimited payouts (via the verification penny drop) from multiple verifications within short time-frame.

API Endpoint

Request parameters

Below are the request parameters Decentro expects from client.

Parameter NameData TypeMandatory (Y/N)Description
HeaderNANAHeader body section
client_idNAYclient_id assigned to the client by Decentro during on boarding.
client_secretNAYclient_secret assigned to the client by Decentro during on boarding.
BodyNANABody object containing payload details
reference_idStringYUnique id assigned by the client's platform for each API call. Special characters are prohibited.
consumer_urnStringYA unique identifier assigned to client's by Decentro during On-boarding.
mobile_numberStringYMobile number of the end-customer. The input parameter that needs to be validated.
fetch_branch_detailsBooleanNThis flag can be used to fetch the details of the bank branch associated with the bank account. These details will only be propagated when the system is able to retrieve the account details associated with the mobile number. Possible Values: true, false.
is_consent_grantedBooleanNThis flag will be used to capture the end-customers consent to proceed with the verification. Possible Values: true, false.

Response parameter

Below are the response parameters Decentro propagates to client.

ParametersDescription
decentro_txn_idA unique transaction identifier from Decentro against the verification request
api_statusStatus of the API request. Possible Values: SUCCESS, FAILURE, PENDING.
messageStatus description of the intent request
upi_vpaUPI VPA associated with the mobile number.
name_as_per_bankName of the account holder as per the bank records.
account_numberPrimary Account Number mapped to the mobile number
ifscCorresponding IFSC code mapped to the account number
bank_reference_numberBank Reference Number for the penny drop performed during the account validation process.
payout_statusThis parameter will contain the status of the penny drop initiated by the system as a part of the verification process.
payout_amountThis parameter will contain the amount (INR 0.01 or 1.00) deposited during the penny drop process.
account_typeThis parameter will contain the nature of the account being validated. Possible values: SAVINGS, CURRENT, NRO.
branch_detailsThis nested block will be propagated when the fetch_branch_details values is passed as true. Please click here to find the list of parameters which will be propagated in a success scenario.
branch_verification_response_keyThis key will be propagated within the branchDetailsobject and will specify whether or not the branch details, identified during the verification process, are available in our system.
response_keyResponse key documenting the status of the API hit and various errors as mentioned here

Response keys

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

Response KeyResponse Message
error_malformed_requestMalformed request detected.
error_invalid_credentialsInvalid authentication credentials
error_missing_credentialsNo API key found in request
error_invalid_client_credentialsAuthentication failed. Please use valid Client ID and Client Secret.
error_empty_client_secretClient Secret cannot be empty. Hint: client_secret (string)
error_unauthorized_moduleAuthentication failed for accessing the module
error_empty_module_secretModule Secret cannot be empty. Hint: module_secret (string)
error_company_disabledRequests are disabled for the company/account.
error_mobile_number_type_not_stringParameter mobile_number should be a string. Hint: mobile_number (string)
error_mobile_number_incorrect_string_lengthParameter mobile_number should be exactly 10 characters long after trimming whitespace. Hint: mobile_number (string)
error_mobile_number_invalid_mobile_formatParameter mobile_number should be 10 digits long and start with one of 9, 8, 7 or 6.
error_reference_id_missing_or_nullParameter reference_id cannot be missing/null. Hint: reference_id (string)
error_invalid_reference_idReference ID is not of type string
error_duplicate_reference_idDuplicate Request Reference ID
error_empty_reference_idRequest reference ID cannot be null or empty. Hint: reference_id (string)
error_invalid_reference_id_lengthRequest reference ID is not valid. Hint: reference_id should be restricted to 2 to 100 chars
error_fetch_branch_details_type_not_booleanParameter fetch_branch_details should be a boolean. Hint: fetch_branch_details (boolean)"
error_is_consent_granted_type_not_booleanParameter is_consent_granted should be a boolean. Hint: is_consent_granted (boolean)
error_unsanitized_valuesUnsanitized values detected for key(s): <key_name>. Kindly sanitize the corresponding values by removing special characters such as . @ # $ % ^ & * ! ; : ' " ~ ` ? = + ) ( and retry.
success_account_details_retrievedAccount details retrieved successfully
error_decentro_errorInternal Server Error. Kindly retry the transaction after sometime.
error_invalid_mobile_numberPlease provide a valid mobile number
error_validation_blockedThe request could not be completed due to a risk exception by NPCI. Kindly retry the transaction after sometime.
error_validation_blockedTransaction not permitted by the beneficiary bank.
error_validation_blockedThe request could not be completed due to a risk exception by the beneficiary bank. Kindly retry the transaction after sometime.
error_beneficiary_bank_offlineThe request could not be completed due to a error with the beneficiary bank. Kindly retry the transaction after sometime.
error_validation_blockedThe request could not be completed as it was rejected by the beneficiary bank.
error_invalid_vpa_mappedAn invalid VPA is mapped to this mobile number.
error_mobile_mapping_not_supportedThe PSP for this VPA does not support Mobile Number and UPI VPA linkage.
error_validation_failedAccount details could not be fetched due to an issue with the beneficiary bank. Kindly retry the transaction after sometime.
error_network_timeout_rejectionThe transaction request could not be completed due to high response time from NPCI. Kindly retry the transaction after sometime.
error_mapping_blockedThe request was blocked by NPCI. Please try again after some time.
error_mapping_inactiveThe details could not be retrieved as the record is marked as INACTIVE by NPCI.
error_vpa_mapping_changedThe UPI VPA is no longer mapped to this mobile number.
error_vpa_not_mapped_to_pspThe UPI VPA is not active with the registered PSP.
error_dormant_accountThe account associated with this mobile number is Inactive or Dormant.
error_provider_errorUnexpected response received from provider. Kindly retry the transaction after sometime.
failure_account_frozenThe account associated with this mobile number is blocked or frozen.
failure_no_account_mapped_to_vpaThere is no bank account associated with the VPA mapped to this mobile number.
failure_no_account_mappedThere is no UPI VPA associated with this mobile number.
failure_account_closedThe account associated with this mobile number is closed.
error_velocity_controls_verification_failedTransaction failed due to velocity controls for combination: mobile_number. Limit is hits per . Please try again later.
success_branch_details_foundThis value will be propagated in the branchVerificationResponseKey parameter when the fetch_branch_details values is passed as true and the system is able to successfully find the required details.
error_branch_details_not_foundThis value will be propagated in the branchVerificationResponseKey parameter when the fetch_branch_details values is passed as true but the system is unable to find the required details.
Language
Response
Click Try It! to start a request and see the response here!