Mobile to Account number

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.

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 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, response code, and 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) 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, response code, and key
    2. We will not propagate any values in the data block

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.
module_secretNAYmodule_secret assigned to the client by Decentro during on boarding. Please use the secret shared for the Accounts Module.
BodyNANABody object containing payload details
reference_idStringYUnique id assigned to each transaction. Special characters are prohibited.
mobile_numberStringYMobile number of the end-customer. The input parameter that needs to be validated.

Response parameter

Below are the response parameters Decentro propagates to client.

ParametersDescription
decentroTxnIdA unique transaction ID from Decentro against the incoming intent request
statusStatus of the API request
responseCodeA unique response code mapped with API request status.
messageStatus description of the intent request
upiVpaUPI VPA associated with the mobile number.
nameAsPerBankName of the account holder as per the bank records.
accountNumberPrimary Account Number mapped to the mobile number
ifscCorresponding IFSC code mapped to the account number
bankReferenceNumberBank Reference Number for the penny drop performed during the account validation process.
responseKeyResponse 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
success_account_details_retrievedAccount Details Fetched Successfully
failure_no_account_mappedThere is no account associated with this mobile number.
failure_account_frozenThe account associated with this mobile number is frozen.
failure_nre_accountThe account associated with this mobile number is a NRE account and cannot be validated.
failure_account_closedThe account associated with this mobile number is closed.
error_decentro_errorInternal Server Error. Kindly retry the transaction after sometime.
error_provider_errorUnexpected response received from provider.
error_provider_errorRequest timed out from the provider.

Simulation Data

Below is the test data that can be used by platforms to test out standard scenarios for the Mobile to Account API.
The platform is expected to pass the parameters as-is to get the intended scenario.

📘

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. Please use valid client id, client secret and module secret. Use Mobile number parameter to check the various test cases of this API.

Important: Please refer to the Simulation Data guide Click here

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.
  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.
Mobile NumberValidation StatusTest Scenario
8266657824SUCCESSAccount details retrieved successfully
8266617854SUCCESSThe account associated with this mobile number is frozen.
8266457854SUCCESSThe account associated with this mobile number is a NRE account and cannot be validated.
8266457814SUCCESSThe account associated with this mobile number is closed.
8263657854FAILUREThere is no account associated with this mobile number.
8266607854FAILUREThe account associated with this mobile number is inactive and cannot be validated.
8176157814FAILUREInternal Server Error. Kindly retry the transaction after sometime.
8306457714FAILUREUnexpected response received from provider.
Language
Click Try It! to start a request and see the response here!