Notification API
This API is required if mandate notification is handled at merchants end. This sends a notification to the customer before the mandate transaction is exercised. A notification has to be sent to the user 24 hours before the execution of the mandate. This API is called using the mandate_id generated while creation of mandate. In case of Razorpay and Gocashfree the notification is taken care at PG end.
Length upto 25 and alphanumeric characters are only accepted.
“pre_debit_notify” for sending notification before execute mandate
Merchants unique Identifier for the request.
Json block to pass detailed information to gateway
Amount for which notification is to be sent to customer I.e. 100.00
Date on which debit is intended to happen in UNIX EPOCH timestamp (UTC timezone) format
If merchant wants to generate invoice display number, this needs to be passed in notification call. If not passed, Juspay will create a unique invoice number and pass it to downstream system. It should be alphanumeric and length upto 25 characters. (Applicable only for cards SI)
Reason for debit that will be sent to user - Max Length: 50
For future use case
Status of Notification
CREATED/PENDING/SUCCESS/FAILURE
CREATED- Created and not yet initiated to gateway
PENDING- Initiated to gateway
SUCCESS- Success from gateway
FAILURE- Failed from gateway
Source object for notification. i.e. “Mandate”
Json block of source info provided in the request
txn_date passed in the request.
Format: UNIX EPOCH timestamp (UTC timezone).
I.e. 1634057114
Amount passed in the request.
I.e. 100.00
The display invoice number that is passed in the request.
Json block of response from gateway
Reference Number provided by downstream gateway.
Name of the provider. Gateway name in this case
I.e. PAYTM_V2
Unique Identifier passed in the request.
I.e. 1234578
notification
Type of notification.
I.e. “SMS”
Json block for Mandate ID provided in the request:
Mandate id provided in the request
Date-time of notification updated in UNIX EPOCH timestamp (UTC timezone) format
Unique identifier provided by Juspay
Reason for debit passed in the request
Date-time of notification created in UNIX EPOCH timestamp (UTC timezone) format

