post https://sandbox.juspay.in/mandates/
Notification API need to be triggered only for UPI autopay and Card Mandates. 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.
Note:
Length upto 25 and alphanumeric characters are only accepted.
Response Parameters:
Parameter | Type | Description |
---|---|---|
id | String | Unique identifier provided by Juspay |
source_object | String | Source object for notification. i.e. “Mandate” |
object_reference_id | String | Unique Identifier passed in the request. I.e. 1234578 |
provider_name | String | Name of the provider. Gateway name in this case I.e. PAYTM_V2 |
notification_type | String | Type of notification. I.e. “SMS” |
source_info | Json | Json block of source info provided in the request |
provider_response | Json | Json block of response from gateway |
mandate | Json | Json block for Mandate ID provided in the request: |
description | String | Reason for debit passed in the request |
status | String | 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 |
date_created | String | Date-time of notification created in UNIX EPOCH timestamp (UTC timezone) format |
last_updated | String | Date-time of notification updated in UNIX EPOCH timestamp (UTC timezone) format |
metadata | String | Metadata passed in the request |
Mandate JSON block:
Parameter | Type | Description |
---|---|---|
mandate_id | String | Mandate id provided in the request |
Source_info JSON block:
Parameter | Type | Description |
---|---|---|
amount | String | Amount passed in the request. I.e. 100.00 |
txn_date | String | txn_date passed in the request. Format: UNIX EPOCH timestamp (UTC timezone). I.e. 1634057114 |
mandate.display_invoice_number | String | The display invoice number that is passed in the request. |
Provider_response JSON block:
Parameter | Type | Description |
---|---|---|
provider_ref_id | String | Reference Number provided by downstream gateway. |
notification_date | String | Date on which notification has been sent by downstream gateway. Format: UNIX EPOCH timestamp (UTC timezone). I.e. 1634057114 Specific to PAYTM_V2 |