Outgoing webhook/callback

For notification:

For every notification status update, we will provide a callback to the configured webhook URL.

{
  "id": "evt_V2_bc933a28ee5948be9f2939caac09d9",
  "date_created": "2020-07-24T10:42:25Z" -- CURRENT_DATE,
  "event_name": "NOTIFICATION_SUCCEEDED", // NOTIFICATION_FAILED
  "content": {
    "notification": {
        
"id": "nt_123456"
"source_object": "mandate"
"mandate" : {"mandate_id": "mandate_id123"}
"object_reference_id": "Merchant_id1"
"provider_name": "PAYTM_V2"
"notification_type": "SMS"
"source_info": {
"amount": "2000"
"txn_date": "1598464466"
}
"provider_response": {
"provider_ref_id": "1234"
"notificationDate": "1598464466"
}
"description": "Reason for debit"
"status": "SUCCESS"
"date_created": "1598464466"
"last_updated": "1598464466"
        }
    }
}

For mandate status:

For every mandate status update, we will provide a callback to the configured webhook URL.

{
  "id": "evt_V2_bc933a28ee5948be9f2939caac09a",
  "date_created": "2020-07-24T10:42:25Z",
  "event_name": "MANDATE_CREATED/MANDATE_ACTIVATED/MANDATE_REVOKED/MANDATE_PAUSED/MANDATE_EXPIRED/MANDATE_FAILED"
  "content": {
    "mandate" : {
      "status": "ACTIVE",
      "payment_info": {
        "payment_method_type": "UPI",
        "payment_method": "COLLECT/PAY"
        },
      "max_amount": 5,
      "mandate_id": "bVY8tfkLanvb8vXMpGGsvK",
      "mandate_debit_token": "tkn_53eba3e74d5c44cabd96f5447125edf5",
      "mandate_type"   : "EMANDATE",
      "start_date"     : "1598464466",
      "end_date"       : "2598464466",
      "revokable_by_customer" : true
      "block_fund" : false,
      "frequency"  : "ONETIME",
      "rule_type"  : "ON",
      “rule_value”   : "1",
      "currency": "INR",
      "activated_at": "2020-04-18T10:16:02Z"
       }
       }
}

For Transaction status:

For every transaction status update, we will provide a callback to the configured webhook URL.

{
  "id": "evt_V2_4b83ba211443b53fc020d4c",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2021-03-20T07:48:31Z",
  "content": {
    "order": {
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulmy******y1Syy",
      "txn_id": "juspay-2348******3498-1",
      "txn_detail": {
        "txn_uuid": "eulmy******y1Syy",
        "txn_object_type": "EMANDATE_REGISTER",
        "txn_id": "juspay-2348******3498-1",
        "txn_amount": 1,
        "tax_amount": null,
        "surcharge_amount": null,
        "status": "CHARGED",
        "source_object_id": "91887",
        "source_object": "MANDATE",
        "redirect": true,
        "order_id": "2348******3498",
        "net_amount": 1,
        "gateway_id": 19,
        "gateway": "PAYTM_V2",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2020-08-30T09:53:17Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "return_url": "https://sandbox.juspay.in",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
      },
      "payment_gateway_response": {
        "txn_id": "juspay-2348******3498-1",
        "rrn": "4299662",
        "resp_message": "Txn Success",
        "resp_code": "01",
        "epg_txn_id": "202008*******80189",
        "created": "2020-08-30T09:54:10Z",
        "auth_id_code": ""
      },
      "payer_vpa": "[email protected]",
      "order_id": "2348******3498",
      "metadata": {
        "PAYTM_V2:gateway_reference_id": "upimandate"
      },
      "merchant_id": "juspay",
      "mandate": {
        "start_date": "1598745600",
        "rule_value": 30,
        "rule_type": "AFTER",
        "revokable_by_customer": true,
        "max_amount": 1000,
        "mandate_type": "EMANDATE",
        "mandate_token": "ad1d221******0f3",
        "mandate_status": "ACTIVE",
        "mandate_id": "3XMEcS******Ybzj",
        "frequency": "MONTHLY",
        "end_date": "160***10",
        "block_fund": false,
        "amount_rule": "VARIABLE"
      },
      "id": "ordeu_9a092980*******4d0206",
      "gateway_reference_id": "upimandate",
      "gateway_id": 19,
      "date_created": "2020-08-30T09:47:46Z",
      "customer_phone": "9999999999",
      "customer_id": "cst_lz*****okv",
      "customer_email": "[email protected]",
      "currency": "INR",
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 1
    }
  }
}