---
page_source: https://docs.test.juspay.io/resources-barclays/docs/common-resources/debit---enach-webhooks
page_title: Debit  + Enach Webhooks
---


# Debit + Enach Webhook



> **Note**
> In case of performing the debit + eNach flow, the format of the webhook will be like this. Since multiple transactions are involved, it will have transaction array,. 



## Sample Code Snippets:
### Debit + Enach Webhook:

#### Order Success Code Snippet:

```order success
{
  "id": "evt_V2_b737837102414514ae0e9717a9f2664d",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2023-08-10T07:00:48Z",
  "content": {
    "order": {
      "customer_email": "josshithas@gmail.com",
      "customer_phone": "6369288401",
      "customer_id": "cth_i2M96SkyFXJXSQvr",
      "customer_phone_country_code": null,
      "status_id": 21,
      "status": "CHARGED",
      "id": "ordeh_396edaa0ef7e462e9770d4f402b29bb3",
      "merchant_id": "mandate_juspay",
      "amount": 1,
      "currency": "INR",
      "order_id": "Ord_1484kmOH",
      "date_created": "2025-07-09T06:41:24Z",
      "last_updated": "2025-07-09T06:41:42Z",
      "return_url": "https://juspay.in/",
      "product_id": "",
      "payment_links": {
        "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
        "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
        "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3"
      },
      "udf1": "",
      "udf2": "",
      "udf3": "",
      "udf4": "",
      "udf5": "",
      "udf6": "",
      "udf7": "",
      "udf8": "",
      "udf9": "",
      "udf10": "",
      "refunded": false,
      "amount_refunded": 0,
      "effective_amount": 2,
      "metadata": {
        "split_payment_reference": "DEBIT_ENACH",
        "allow_split_txn_when_oid_equals_txnid_enabled": false,
        "order_expiry": "2025-07-10T06:41:24Z",
        "payment_page_client_id": "mandatejuspay",
        "PAYTM_V2:gateway_reference_id": "test_enach",
        "payment_links": {
          "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
          "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
          "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3"
        }
      },
      "txn_list": [
        {
          "txn_id": "M-Ord_1484kmOH-1-1",
          "payment_method_type": "NB",
          "auth_type": "THREE_DS",
          "payment_method": "NB_HDFC",
          "refunded": false,
          "effective_amount": 1,
          "resp_code": null,
          "resp_message": null,
          "bank_error_code": "",
          "bank_error_message": "",
          "txn_uuid": "mozaPZxSa8dnGoe5Ubw",
          "txn_detail": {
            "txn_id": "M-Ord_1484kmOH-1-1",
            "order_id": "Ord_1484kmOH",
            "status": "CHARGED",
            "error_code": null,
            "net_amount": 1,
            "surcharge_amount": 0,
            "tax_amount": 0,
            "txn_amount": 1,
            "offer_deduction_amount": null,
            "remaining_refundable_amount": 1,
            "gateway_id": 19,
            "currency": "INR",
            "express_checkout": false,
            "redirect": true,
            "txn_uuid": "mozaPZxSa8dnGoe5Ubw",
            "gateway": "PAYTM_V2",
            "error_message": "",
            "created": "2025-07-09T06:41:24Z",
            "last_updated": "2025-07-09T06:41:42Z",
            "txn_flow_type": "NET_BANKING",
            "txn_amount_breakup": [
              {
                "name": "BASE",
                "amount": 1,
                "sno": 1,
                "method": "ADD"
              },
              {
                "name": "SURCHARGE",
                "amount": 0,
                "sno": 2,
                "method": "ADD"
              },
              {
                "name": "TAX_ON_SURCHARGE",
                "amount": 0,
                "sno": 3,
                "method": "ADD"
              }
            ]
          },
          "payment_gateway_response": {
            "resp_code": "01",
            "rrn": "10100680908",
            "created": "2025-07-09T06:41:42Z",
            "epg_txn_id": "20250709211430000149678400718746052",
            "resp_message": "Txn Success",
            "auth_id_code": "",
            "txn_id": "M-Ord_1484kmOH-1-1",
            "gateway_response": {
              "bankName": "HDFC Bank",
              "bankResultInfo": {
                "bankResultCode": "SUCCESS",
                "bankResultMsg": "Success"
              },
              "bankTxnId": "10100680908",
              "gatewayName": "HDFC",
              "merchantUniqueReference": "NA",
              "mid": "Juspay67815894107156",
              "orderId": "M-Ord_1484kmOH-1-1",
              "paymentMode": "NB",
              "refundAmt": "0.0",
              "resultCode": "01",
              "resultInfo": {
                "resultStatus": "TXN_SUCCESS",
                "resultCode": "01",
                "resultMsg": "Txn Success"
              },
              "resultMsg": "Txn Success",
              "resultStatus": "TXN_SUCCESS",
              "txnAmount": "1.00",
              "txnDate": "2025-07-09 12:11:30.0",
              "txnId": "20250709211430000149678400718746052",
              "txnType": "SALE"
            },
            "network_error_message": null,
            "network_error_code": null,
            "arn": "",
            "gateway_merchant_id": "Juspay67815894107156",
            "eci": null,
            "auth_ref_num": null,
            "umrn": null,
            "current_blocked_amount": null,
            "payer_ifsc": null,
            "xid": null,
            "cvv_check": null
          },
          "gateway_id": 19,
          "gateway_reference_id": "test_enach",
          "emi_details": {
            "bank": null,
            "monthly_payment": null,
            "interest": null,
            "subvention_amount": null,
            "conversion_details": null,
            "principal_amount": null,
            "additional_processing_fee_info": null,
            "tenure": null,
            "subvention_info": [],
            "emi_type": null,
            "processed_by": null
          },
          "metadata": {
            "split_payment_reference": "DEBIT_ENACH",
            "allow_split_txn_when_oid_equals_txnid_enabled": false,
            "order_expiry": "2025-07-10T06:41:24Z",
            "payment_page_client_id": "mandatejuspay",
            "PAYTM_V2:gateway_reference_id": "test_enach",
            "payment_links": {
              "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
              "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
              "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3"
            }
          },
          "offers": [],
          "status": "CHARGED",
          "resp_category": null
        },
        {
          "txn_id": "M-Ord_1484kmOH-1-2",
          "payment_method_type": "NB",
          "auth_type": "THREE_DS",
          "payment_method": "JP_HDFC",
          "refunded": false,
          "effective_amount": 1,
          "mandate": {
            "mandate_token": "f3f5c3ee63c44a7ea6869cead3223d27",
            "mandate_status": "CREATED",
            "mandate_id": "8bx1yHx4haSKFmgC8brRHb",
            "bank_details": {
              "account_number": "282800002828",
              "id": null,
              "ifsc": "HDFC0001961",
              "bank_account_type": "SAVINGS",
              "beneficiary_name": "Bowmitha",
              "bank_name": "HDFC Bank"
            },
            "mandate_type": "EMANDATE",
            "start_date": "1752043284",
            "end_date": "1752907284",
            "revokable_by_customer": true,
            "block_fund": false,
            "max_amount": 50,
            "frequency": "ASPRESENTED",
            "amount_rule": "VARIABLE",
            "next_execution_info": {
              "next_execution_date": null,
              "next_execution_amount": null
            }
          },
          "resp_code": null,
          "resp_message": null,
          "bank_error_code": "",
          "bank_error_message": "",
          "txn_uuid": "mozwSQmm75WawRFfqq5",
          "txn_detail": {
            "txn_id": "M-Ord_1484kmOH-1-2",
            "order_id": "Ord_1484kmOH",
            "status": "AUTHORIZING",
            "error_code": null,
            "net_amount": 1,
            "surcharge_amount": 0,
            "tax_amount": 0,
            "txn_amount": 1,
            "offer_deduction_amount": null,
            "remaining_refundable_amount": 1,
            "gateway_id": 19,
            "currency": "INR",
            "express_checkout": false,
            "redirect": true,
            "txn_uuid": "mozwSQmm75WawRFfqq5",
            "gateway": "PAYTM_V2",
            "error_message": "",
            "txn_object_type": "EMANDATE_REGISTER",
            "source_object": "MANDATE",
            "source_object_id": "100020052996",
            "created": "2025-07-09T06:41:24Z",
            "last_updated": "2025-07-14T08:11:34Z",
            "txn_flow_type": "NET_BANKING",
            "txn_amount_breakup": [
              {
                "name": "BASE",
                "amount": 1,
                "sno": 1,
                "method": "ADD"
              },
              {
                "name": "SURCHARGE",
                "amount": 0,
                "sno": 2,
                "method": "ADD"
              },
              {
                "name": "TAX_ON_SURCHARGE",
                "amount": 0,
                "sno": 3,
                "method": "ADD"
              }
            ]
          },
          "payment_gateway_response": {
            "resp_code": "3006",
            "rrn": "",
            "created": "2025-07-09T06:46:26Z",
            "epg_txn_id": "M-Ord_1484kmOH-1-2",
            "resp_message": "SUCCESS",
            "auth_id_code": "",
            "txn_id": "M-Ord_1484kmOH-1-2",
            "gateway_response": {
              "amountType": "VARIABLE",
              "createdDate": "2025-07-09 12:11:43",
              "custEmailId": "josshithas@gmail.com",
              "custId": "cth_i2M96SkyFXJXSQvr",
              "custMobileNo": "6369288401",
              "expiryDate": "2025-07-19 00:00:00",
              "lastOrderAmount": "0.0",
              "lastOrderCreationDate": "2025-07-09 12:11:43.11",
              "lastOrderId": "M-Ord_1484kmOH-1-2",
              "lastOrderStatus": "PENDING",
              "maxAmount": "50.0",
              "merchantName": "Juspay",
              "mid": "Juspay67815894107156",
              "orderId": "M-Ord_1484kmOH-1-2",
              "resultInfo": {
                "status": "SUCCESS",
                "message": "SUCCESS",
                "code": "3006"
              },
              "status": "IN_AUTHORIZATION",
              "subStatus": "NPCI_PENDING",
              "subsId": "989708",
              "subsPaymentInstDetails": {
                "paymentMode": "BANK_MANDATE",
                "bankName": "HDFC Bank",
                "ifsc": "HDFC0001961",
                "bankLogo": "https://static4.paytmpayments.com/native/bank/HDFC.png",
                "maskedAccountNumber": "XXXXXXXX2828",
                "mandateType": "E_MANDATE"
              },
              "updatedDate": "2025-07-09 12:11:44"
            },
            "network_error_message": null,
            "network_error_code": null,
            "arn": "",
            "gateway_merchant_id": "Juspay67815894107156",
            "eci": null,
            "auth_ref_num": null,
            "umrn": null,
            "current_blocked_amount": null,
            "payer_ifsc": null,
            "xid": null,
            "cvv_check": null
          },
          "gateway_id": 19,
          "gateway_reference_id": "test_enach",
          "emi_details": {
            "bank": null,
            "monthly_payment": null,
            "interest": null,
            "subvention_amount": null,
            "conversion_details": null,
            "principal_amount": null,
            "additional_processing_fee_info": null,
            "tenure": null,
            "subvention_info": [],
            "emi_type": null,
            "processed_by": null
          },
          "metadata": {
            "split_payment_reference": "DEBIT_ENACH",
            "allow_split_txn_when_oid_equals_txnid_enabled": false,
            "order_expiry": "2025-07-10T06:41:24Z",
            "payment_page_client_id": "mandatejuspay",
            "PAYTM_V2:gateway_reference_id": "test_enach",
            "payment_links": {
              "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
              "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3",
              "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_396edaa0ef7e462e9770d4f402b29bb3"
            }
          },
          "offers": [],
          "status": "AUTHORIZING",
          "resp_category": null
        }
      ],
      "additional_info": {}
    }
  }
}

```

#### Order Failure Code Snippet:

```order failure
{
    "customer_email": "josshithas@gmail.com",
    "customer_phone": "6369288401",
    "customer_id": "cth_vGb6fgGz1Snrf5FK",
    "customer_phone_country_code": null,
    "status_id": 26,
    "status": "AUTHENTICATION_FAILED",
    "id": "ordeh_cc05f917fb9d47d28b5920873cef81eb",
    "merchant_id": "mandate_juspay",
    "amount": 1,
    "currency": "INR",
    "order_id": "Ord_5361usxn",
    "date_created": "2025-12-22T11:03:02Z",
    "last_updated": "2025-12-22T11:03:28Z",
    "return_url": "https://juspay.in/",
    "product_id": "",
    "payment_links": {
        "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
        "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
        "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb"
    },
    "udf1": "",
    "udf2": "",
    "udf3": "",
    "udf4": "",
    "udf5": "",
    "udf6": "",
    "udf7": "",
    "udf8": "",
    "udf9": "",
    "udf10": "",
    "amount_refunded": 0,
    "effective_amount": 2,
    "metadata": {
        "split_payment_reference": "DEBIT_ENACH",
        "allow_split_txn_when_oid_equals_txnid_enabled": false,
        "order_expiry": "2025-12-23T11:03:02Z",
        "payment_page_client_id": "mandatejuspay",
        "PAYTM_V2:gateway_reference_id": "test_enach",
        "payment_links": {
            "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
            "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
            "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb"
        }
    },
    "txn_list": [
        {
            "txn_id": "M-Ord_5361usxn-1-1",
            "payment_method_type": "NB",
            "auth_type": "THREE_DS",
            "payment_method": "NB_HDFC",
            "refunded": false,
            "effective_amount": 1,
            "resp_code": "BANK_DECLINED",
            "resp_message": "Transaction failed at issuer Bank's end",
            "bank_error_code": "227",
            "bank_error_message": "Your payment has been declined by your bank. Please try again or use a different method to complete the payment.",
            "txn_uuid": "mozhpMExpwUJuDSqmUp",
            "txn_detail": {
                "txn_id": "M-Ord_5361usxn-1-1",
                "order_id": "Ord_5361usxn",
                "status": "AUTHORIZATION_FAILED",
                "error_code": "227",
                "net_amount": 1,
                "surcharge_amount": null,
                "tax_amount": null,
                "txn_amount": 1,
                "offer_deduction_amount": null,
                "gateway_id": 19,
                "currency": "INR",
                "express_checkout": false,
                "redirect": true,
                "txn_uuid": "mozhpMExpwUJuDSqmUp",
                "gateway": "PAYTM_V2",
                "response_code": "BANK_DECLINED",
                "response_message": "Transaction failed at issuer Bank's end",
                "error_message": "Your payment has been declined by your bank. Please try again or use a different method to complete the payment.",
                "created": "2025-12-22T11:03:03Z",
                "last_updated": "2025-12-22T11:03:28Z",
                "txn_flow_type": "NET_BANKING",
                "txn_amount_breakup": [
                    {
                        "name": "BASE",
                        "amount": 1,
                        "sno": 1,
                        "method": "ADD"
                    }
                ]
            },
            "payment_gateway_response": {
                "resp_code": "227",
                "rrn": "14629744821",
                "created": "2025-12-22T11:03:15Z",
                "epg_txn_id": "20251222211380000209900627698929529",
                "resp_message": "Your payment has been declined by your bank. Please try again or use a different method to complete the payment.",
                "auth_id_code": "",
                "txn_id": "M-Ord_5361usxn-1-1",
                "gateway_response": {
                    "bankName": "HDFC Bank",
                    "bankResultInfo": {
                        "bankResultCode": "FAILED",
                        "bankResultMsg": "NA"
                    },
                    "bankTxnId": "14629744821",
                    "gatewayName": "HDFC",
                    "merchantUniqueReference": "NA",
                    "mid": "Juspay67815894107156",
                    "orderId": "M-Ord_5361usxn-1-1",
                    "paymentMode": "NB",
                    "refundAmt": "0.0",
                    "resultCode": "227",
                    "resultInfo": {
                        "resultStatus": "TXN_FAILURE",
                        "resultCode": "227",
                        "resultMsg": "Your payment has been declined by your bank. Please try again or use a different method to complete the payment."
                    },
                    "resultMsg": "Your payment has been declined by your bank. Please try again or use a different method to complete the payment.",
                    "resultStatus": "TXN_FAILURE",
                    "txnAmount": "1.00",
                    "txnDate": "2025-12-22 16:33:08.0",
                    "txnId": "20251222211380000209900627698929529",
                    "txnType": "SALE"
                },
                "network_error_message": null,
                "network_error_code": null,
                "arn": "",
                "gateway_merchant_id": "Juspay67815894107156",
                "eci": null,
                "auth_ref_num": null,
                "umrn": null,
                "current_blocked_amount": null,
                "payer_ifsc": null,
                "xid": null,
                "cvv_check": null
            },
            "gateway_id": 19,
            "gateway_reference_id": "test_enach",
            "emi_details": {
                "bank": null,
                "monthly_payment": null,
                "interest": null,
                "subvention_amount": null,
                "conversion_details": null,
                "principal_amount": null,
                "additional_processing_fee_info": null,
                "tenure": null,
                "subvention_info": [],
                "emi_type": null,
                "processed_by": null
            },
            "metadata": {
                "split_payment_reference": "DEBIT_ENACH",
                "allow_split_txn_when_oid_equals_txnid_enabled": false,
                "order_expiry": "2025-12-23T11:03:02Z",
                "payment_page_client_id": "mandatejuspay",
                "PAYTM_V2:gateway_reference_id": "test_enach",
                "payment_links": {
                    "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
                    "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
                    "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb"
                }
            },
            "offers": [],
            "status": "AUTHORIZATION_FAILED",
            "resp_category": "BUSINESS_ERROR",
            "actionables": {
                "recommendation": "Please contact the issuing bank for more information or retry the transaction later",
                "owner": "bank",
                "is_retriable": true,
                "display_message": "Transaction declined by issuing bank, contact bank for more information or please retry after some time"
            }
        },
        {
            "txn_id": "M-Ord_5361usxn-1-2",
            "payment_method_type": "NB",
            "auth_type": "THREE_DS",
            "payment_method": "JP_HDFC",
            "refunded": false,
            "effective_amount": 1,
            "mandate": {
                "mandate_token": "df3e5898ca4247168b9f9eae9120131f",
                "mandate_status": "FAILURE",
                "mandate_id": "fzyEqvSBKbjZw5KiswQHbv",
                "bank_details": {
                    "account_number": "50100835498312",
                    "id": null,
                    "ifsc": "HDFC0001756",
                    "bank_account_type": "SAVINGS",
                    "beneficiary_name": "Deepak",
                    "bank_name": "HDFC Bank"
                },
                "mandate_type": "EMANDATE",
                "start_date": "1766401382",
                "end_date": "1767265382",
                "revokable_by_customer": true,
                "block_fund": false,
                "max_amount": 3,
                "frequency": "ASPRESENTED",
                "amount_rule": "VARIABLE",
                "next_execution_info": {
                    "next_execution_date": null,
                    "next_execution_amount": null
                }
            },
            "resp_code": null,
            "resp_message": null,
            "bank_error_code": "",
            "bank_error_message": "",
            "txn_uuid": "mozhdurZGBtCD1vDGSA",
            "txn_detail": {
                "txn_id": "M-Ord_5361usxn-1-2",
                "order_id": "Ord_5361usxn",
                "status": "PENDING_VBV",
                "error_code": null,
                "net_amount": 1,
                "surcharge_amount": null,
                "tax_amount": null,
                "txn_amount": 1,
                "offer_deduction_amount": null,
                "gateway_id": 19,
                "currency": "INR",
                "express_checkout": false,
                "redirect": true,
                "txn_uuid": "mozhdurZGBtCD1vDGSA",
                "gateway": "PAYTM_V2",
                "error_message": "",
                "txn_object_type": "EMANDATE_REGISTER",
                "source_object": "MANDATE",
                "source_object_id": "100020296687",
                "created": "2025-12-22T11:03:03Z",
                "last_updated": "2025-12-22T11:03:03Z",
                "txn_flow_type": "NET_BANKING",
                "txn_amount_breakup": [
                    {
                        "name": "BASE",
                        "amount": 1,
                        "sno": 1,
                        "method": "ADD"
                    }
                ]
            },
            "gateway_id": 19,
            "gateway_reference_id": "test_enach",
            "emi_details": {
                "bank": null,
                "monthly_payment": null,
                "interest": null,
                "subvention_amount": null,
                "conversion_details": null,
                "principal_amount": null,
                "additional_processing_fee_info": null,
                "tenure": null,
                "subvention_info": [],
                "emi_type": null,
                "processed_by": null
            },
            "metadata": {
                "split_payment_reference": "DEBIT_ENACH",
                "allow_split_txn_when_oid_equals_txnid_enabled": false,
                "order_expiry": "2025-12-23T11:03:02Z",
                "payment_page_client_id": "mandatejuspay",
                "PAYTM_V2:gateway_reference_id": "test_enach",
                "payment_links": {
                    "mobile": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
                    "web": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb",
                    "iframe": "https://sandbox.assets.juspay.in/payment-page/order/ordeh_cc05f917fb9d47d28b5920873cef81eb"
                }
            },
            "offers": [],
            "status": "PENDING_VBV",
            "resp_category": null
        }
    ],
    "additional_info": {}
}
```

