UPI Auto-Pay Registration Callback

This callback is triggered by Decentro to the platform when the customer approves the mandate request on the PSP app.

Overview

Decentro triggers this callback to a pre-configured endpoint after the payer authorizes the mandate registration request on their UPI app or if the registration expires.

The platform can have the callback endpoints whitelisted by dropping a mail to [email protected].

Flow

Below is the flow for using this callback.

  • The platform initiates the mandate registration request using the Create Mandate API.
  • The payer authorizes the request on the UPI app using their MPIN.
  • Decentro triggers this callback to the platform's endpoint as configured with the registration status if authorized.
  • The platform can reconcile the registration request using the reference_id or decentro_txn_id parameters passed in the Create Mandate API.
  • The platform can also check the registration status using the Get Mandate Status API.

Decentro triggers the callback for the below scenarios.

  • Successful registration of a mandate
  • Unsuccessful registration of a mandate
  • Expiry of the mandate request

Request Parameters

Below are the parameters that Decentro passes in the callback.

ParameterDescription
decentro_mandate_urnA unique URN passed by Decentro for each mandate registration request
mandate_statusThe status of mandate registration. Values: Success, Failure, Expired
transaction_statusThe status of callback. Values: Success, Failure
mandate_bank_reference_numberThe unique transaction ID generated by Decentro's bank partner, if the payer has authorized the request, is not shared if the registration expires.
transaction_bank_reference_numberThe unique transaction ID generated by NPCI
nameThe name of the mandate as passed during the registration request
amountThe amount for the mandate registration as passed during the creation of the registration request
frequencyThe frequency for the mandate registration as passed during the creation of the registration request as mentioned here
start_dateThe start date of the mandate as passed during the creation of the registration request
end_dateThe end date of the mandate as passed during the creation of the registration request
is_revokeableA flag denoting if the mandate can be revoked by the payer or not.
payer_upiThe VPA (UPI ID) of the mandate holder, which is passed only if the payer has authorized the request
payer_nameThe name of the mandate holder, which is passed only if the payer has authorized the request
payer_account_numberThe underlying account number of the mandate holder, if passed by the bank partner
payee_upiThe VPA (UPI ID) of the merchant against whom the mandate registration has been initiated
payee_nameThe name of the merchant against whom the mandate registration has been initiated
payee_ifscThe IFSC code of the virtual account allocated to the merchant by Decentro at the time of onboarding
payee_account_numberThe virtual account number allocated to the merchant by Decentro at the time of onboarding
amount_ruleThe rule defining the amount passed in mandate registration as mentioned here
total_number_of_debitsThe total number of debits that have been executed
remaining_debitsThe pending debits basis the mandate registration parameters like frequency, amount_rule, etc.
unique_mandate_numberA unique mandate reference ID that NPCI passes and to be used downstream for pre-debit and execution if the payer has authorized the registration
next_debit_dateThe next scheduled debit date as per the mandate registration parameters like frequency, amount_rule, etc.
timestampThe timestamp of the registration authorization by the payer, passed if the payer has authorized the registration.
attemptThe attempt number of this callback.
callbackTxnIdA unique ID assigned by Decentro for this callback
originalCallbackTxnIdThe callbackTxnId is passed by Decentro if the callback is retried. Else same value as callbackTxnId
callbackTypeThe type of callback with default value as : Mandate_Registration
reference_idThe reference ID passed by the platform at the time of registration.
decentro_txn_idThe reference ID passed by Decentro at the time of registration.

API Endpoints

EnvironmentEndpoint
Staging / Sandboxhttps://your.custom.endpoint.com
Productionhttps://your.custom.endpoint.com
Language
Click Try It! to start a request and see the response here!