Simulation Data

This section explains how to simulate various scenarios as part of the payouts module of Decentro.

Initiate Payout API and Get Transaction Status API

Decentro provides certain static values for platforms to simulate the various scenarios.

Please utilize the input parameters, shared in the table below, for initiating the Initiate Payout API. The initiate payout API will share a decentroTxnId in the response payload. The decentroTxnId must be passed
in the Get Transaction Status API to receive the expected output.

📘

Note - Simulation Data

To test Simulation Staging data for Initiate Transfer and Status Handling, please use the following API Endpoint - https://in.staging.decentro.tech/core_banking/money_transfer/initiate

https://in.staging.decentro.tech/core_banking/money_transfer/get_status/

To AccountIFSC CodeTest CasesTransaction Status
123456789011SBIN0001077Initiate Payout API status as 'Pending'
Get Transaction Status API status as 'Success'
Success
123456789012UTIB0001506Initiate Payout API status as 'Pending'
Get Transaction Status API status as 'Pending'
Pending
123456789013HDFC0001234Initiate Payout API status as 'Pending'
Get Transaction Status API status as 'Failure'
Failure

Validate Bank Account (Penny Drop)

Decentro provides certain static values for platforms to simulate the various scenarios of validating a bank account.

Please utilize the input parameters, shared in the table below, for initiating the Validate Bank Account.

📘

Note - Simulation Data

To test Simulation Staging data for Validate Bank Account (Penny Drop), please use the following API Endpoint - https://in.staging.decentro.tech/core_banking/money_transfer/validate_account

To AccountIFSC CodeTest CasesTransaction Status
123456789011SBIN0001077Validate Bank Account API Status as 'Success'Success
123456789013HDFC0001234Validate Bank Account API Status as 'Failure'Failure

Validate VPA - Simulation Data

Below is the test data that can be used by platforms to test out standard scenarios for Validate UPI Handle (VPA).

The platform is expected to pass the parameters as-is to get the intended scenario.

📘

Note - Simulation Data

To test Simulation Staging data for Validate VPA, please use the following API Endpoint - https://in.staging.decentro.tech/v2/payments/vpa/validate

Steps to use this data:

  1. Take the UPI ID from the values shared below depending on the scenario to be tested.
  2. Trigger the validate VPA API with that UPI ID with the required type.
  3. API response will state the validation of the VPA (valid or invalid)
  4. The information about the UPI ID depends on the the type param passed in the request payload.
UPI IDValidation statusTest case
charles.babbage@okhdfcVALIDWhen VPA is valid
alan.turing@oksbiINVALIDWhen VPA is invalid

Generate payment link & Get transaction status API - Simulation Data

Below is the test data that can be used by platforms to test out standard scenarios for Generate payment link.

The platform is expected to pass the parameters as-is to get the intended scenario.

📘

Note - Simulation Data

To test Simulation Staging data for Generate payment link API & Get transaction status API, please use the following API Endpoint - https://in.staging.decentro.tech/v2/payments/upi/link https://in.staging.decentro.tech/v2/payments/transaction/status

Steps to use this data:

  1. Generate a payment link with amount parameter as either 10, 20, 30 depending on the test case being observed.
  2. Obtain the generated link in the response.
  3. Use decentro_txn_id from the response and pass in Get transaction status API to fetch the terminal status of the transaction.
  4. Depending on the Amount passed in step 1, you'll receive the terminal status.
  5. Please refer to the table below for Amount v/s transaction status test cases in staging simulation.
  6. In the live flow, step 4 will take some time till the end user enters the UPI pin and makes the payment. Till then the status of the transaction by GTS will be PENDING.
AmountTransaction statusTest case
10SuccessPayment link is created & Transaction status is Success
20FailurePayment link is created & Transaction status is Failed
30PendingPayment link is created & Transaction status is Pending

Collection request - Simulation Data

Coming soon

Refund - Simulation Data

coming soon

ENACH

Overview

The ENACH(Electronic National Automated Clearing House) product allows for electronic mandate registration and processing of recurring payments. This document outlines the simulation data used for testing various scenarios in the ENACH system.

👍

Please use staging credentials to test our ENACH simulation.

Refer to this ENACH API Reference Page.

Live Simulation APIs

Sl. No.API NameDescription
1Check Supported Banks & Authentication ModesProvides a list of supported banks and the authentication modes they support.
2Mandate Registration APIHandles the registration of new mandates in the system.
3Mandate Registration StatusUser can check the registration status using the Mandate Registration Status API.
4Mandate Execution APIExecutes the registered mandates for processing payments.
5Mandate Execution StatusUser can check the execution status using the Mandate Execution Status API.
6Mandate Registration CallbackA callback service that provides updates on the status of mandate registrations. (Your custom endpoint)
7Mandate Execution CallbackA callback service that provides updates on the status of mandate executions. (Your custom endpoint)

Simulation Data - Testing Scenarios

Mandate Registration API

This API lets you test the mandate registration API. You can use the amount given below to test the different scenarios.

📘

Note - Simulation Data (eNACH Mandate Registration)

To test simulation staging data for eNACH Mandate Registration API - <https://staging.api.decentro.tech/v3/payments/enach/mandate>

📘

OTP Validation

  1. Enter any 6-digit random number to validate the OTP.
  2. "111-111" use this 6-digit number to verify the wrong OTP scenario.

📘

Debit Card Validation

  1. Enter a random 12-digit debit card number.
  2. Enter a random 3-digit CVV.
  3. Enter a random debit card expiry date.

📘

Aadhar Validation

  1. Enter random 12 digit Aadhar card number.
  2. Enter random 6 digit OTP

Authentication Mode - Debit Card

AmountScenarioMessageError Code
100Wrong account details.Account doesn't exist or invalid account details.AP05
200Registration Successful.Success/ Active-
500Registration Successful.Success/ Active-
300Wrong debit card details.Customer entered the wrong debit card details.AP35
400The Bank account belongs to a minor.Mandates were not registered. The Bank account is of minor.AP16
Random amountOther than the specified amount.Transaction rejected or cancelled by the customerAP23
Cancel buttonUser clicked on the cancel button.Transaction rejected or cancelled by the customer.AP23

Authentication Mode - Net Banking/Aadhar

ScenarioMessageError Code
User clicked on the cancel button.Customer cancelled or rejected the mandate registration.AP23
User acceptedActive/ Success-

Mandate Execution API

📘

Note : Simulation Data (eNACH Presentation)

To test simulation staging data for eNACH Mandate Execution API - <https://staging.api.decentro.tech/v3/payments/enach/mandate/execute>

This API lets you test the mandate execution API. You can use the amount given below to test the different scenarios.

🚧

Ensure to use UMRN generated from Mandate Registration API.

AmountScenarioDescription
200FailureThe mandate execution failed. This could be due to multiple reasons.
500SuccessThe mandate was executed successfully, and the amount was debited.

👍

Execution callbacks will be sent within 20 mins of the execution API call.

AUTOPAY

Simulation Data

Decentro's simulation data helps developers simulate all the real-world scenarios when using the Create mandate API.
This requires the platform to use standard request payloads to handle scenarios for each API and scenario, as mentioned below.
The platform will need to whitelist their IP and configure callback endpoints with Decentro if they wish to handle the flow. Please reach out to us at [email protected] for the same.

How to test?

Below is the flow to test the Simulation data

  1. Generate a mandate link by using Create Mandate API with the 'amount' parameter in the required range as mentioned in the test bed section.
    1. Note: To test the instant presentation within a 5-minute scenario when the amount rule is set to MAX, ensure that you pass the simulation amount value in the default_amount parameter.
  2. Click the generated link once before proceeding. This is a mandatory step to receive the simulation responses.
  3. Next Decentro will propagate the updated status of the mandate as per the amount (range) passed in step-1.
  4. Alternatively, client can use Get Mandate Status to fetch the latest status of the mandate.
  5. Next proceed to trigger the Pre Debit Notification API to test various scenario basis the amount range values mentioned in the respective test bed section.
  6. Next, proceed to trigger the Mandate Presentation API to test various scenarios basis the amount range values as mentioned in the respective test bed section.
  7. Note: The simulation environment is an exact replica of production environment including all the checks of production systems for registration, notification and, presentation .

Test Bed

Mandate Creation

📘

Note : Simulation Data (Autopay Mandate Registration)

To test simulation data for Autopay Mandate Registration - https://staging.api.decentro.tech/v3/payments/upi/autopay/mandate/link

AmountScenario
1 - 1000Mandate registration is successful. Mandate status is Active
1001 - 1500Mandate is paused
1501 - 2000Mandate registration is rejected by user
2001 3000Mandate registration is failed

Pre Debit Notification

📘

Note : Simulation Data (Autopay Pre-Debit Notification)

To test simulation data for Autopay Pre-Debit Notification - https://staging.api.decentro.tech/v3/payments/upi/autopay/mandate/notify

AmountScenario
1 - 500Pre debit notification is successful.
501 - 1000Pre debit notification failed

Presentation

📘

Note : Simulation Data (Autopay Presentation)

To test simulation data for Autopay Presentation - https://staging.api.decentro.tech/v3/payments/upi/autopay/mandate/presentation

AmountScenario
1 - 300Mandate Presentation is successful.
301 - 500Mandate Presentation failed

Mandate Presentation Callback

AmountScenario
1 - 150Mandate Presentation is successful.
151 - 300Mandate Presentation failed

Mandate Registration Callback

AmountScenario
0 - 500Active
501 - 1000Active, Pause, Unpause (Active)
1001 - 1500Paused
1501 - 2000Rejected

Did this page help you?