post https://your.custom.endpoint.com/upi_registration_status
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.
Parameter | Description |
---|---|
decentro_mandate_urn | A unique URN passed by Decentro for each mandate registration request |
mandate_status | The status of mandate registration. Values: Success, Failure, Expired |
transaction_status | The status of callback. Values: Success, Failure |
mandate_bank_reference_number | The 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_number | The unique transaction ID generated by NPCI |
name | The name of the mandate as passed during the registration request |
amount | The amount for the mandate registration as passed during the creation of the registration request |
frequency | The frequency for the mandate registration as passed during the creation of the registration request as mentioned here |
start_date | The start date of the mandate as passed during the creation of the registration request |
end_date | The end date of the mandate as passed during the creation of the registration request |
is_revokeable | A flag denoting if the mandate can be revoked by the payer or not. |
payer_upi | The VPA (UPI ID) of the mandate holder, which is passed only if the payer has authorized the request |
payer_name | The name of the mandate holder, which is passed only if the payer has authorized the request |
payer_account_number | The underlying account number of the mandate holder, if passed by the bank partner |
payee_upi | The VPA (UPI ID) of the merchant against whom the mandate registration has been initiated |
payee_name | The name of the merchant against whom the mandate registration has been initiated |
payee_ifsc | The IFSC code of the virtual account allocated to the merchant by Decentro at the time of onboarding |
payee_account_number | The virtual account number allocated to the merchant by Decentro at the time of onboarding |
amount_rule | The rule defining the amount passed in mandate registration as mentioned here |
total_number_of_debits | The total number of debits that have been executed |
remaining_debits | The pending debits basis the mandate registration parameters like frequency, amount_rule, etc. |
unique_mandate_number | A 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_date | The next scheduled debit date as per the mandate registration parameters like frequency, amount_rule, etc. |
timestamp | The timestamp of the registration authorization by the payer, passed if the payer has authorized the registration. |
attempt | The attempt number of this callback. |
callbackTxnId | A unique ID assigned by Decentro for this callback |
originalCallbackTxnId | The callbackTxnId is passed by Decentro if the callback is retried. Else same value as callbackTxnId |
callbackType | The type of callback with default value as : Mandate_Registration |
reference_id | The reference ID passed by the platform at the time of registration. |
decentro_txn_id | The reference ID passed by Decentro at the time of registration. |
API Endpoints
Environment | Endpoint |
---|---|
Staging / Sandbox | https://your.custom.endpoint.com |
Production | https://your.custom.endpoint.com |