From 1d28ba969366dfac4e84492eb77d0320f60b6c26 Mon Sep 17 00:00:00 2001
From: bibaswan1 <bibaswan@setu.co>
Date: Tue, 22 Apr 2025 13:52:27 +0530
Subject: [PATCH 1/2] Updated payment failure api webhook for pre built screen
 in COU

---
 .../payments/billpay/pre-built-screens/webhooks.mdx | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/content/payments/billpay/pre-built-screens/webhooks.mdx b/content/payments/billpay/pre-built-screens/webhooks.mdx
index e5676db8..f1bafd80 100644
--- a/content/payments/billpay/pre-built-screens/webhooks.mdx
+++ b/content/payments/billpay/pre-built-screens/webhooks.mdx
@@ -669,7 +669,12 @@ Below are the parameter tables and sample payloads for the listed events. Note t
     "dueDate": "2021-05-23", // if available
     "amountPaid": "601.00",
     "event": "bill_payment_failure",
-    "refId": "CMA0I65RCU2I32C3L0H0KNYQYAG40021831"
+    "refId": "CMA0I65RCU2I32C3L0H0KNYQYAG40021831",
+    "error": {
+        "Code": "insufficient-balance",
+        "Message": "Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.",
+        "Type": "FUND_TRANSFER"
+    }
 }`}
         </CodeBlockWithCopy>
         <table>
@@ -817,6 +822,12 @@ Below are the parameter tables and sample payloads for the listed events. Note t
                     <code>CMA0I65RCU2I32C3L0H0KNYQYAG40021831</code>
                 </td>
             </tr>
+            <tr>
+                <td>error</td>
+                <td>Object</td>
+                <td>Error details for failure of bill payment</td>
+                <td><code>[&#123;&quot;Code&quot;: &quot;insufficient-balance&quot;, &quot;Message&quot;: &quot;66578Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.01290&quot;, &quot;Type&quot;: &quot;FUND_TRANSFER&quot;]</code></td>
+            </tr>
         </table>
     </details>
 </Card>

From 1670d11b57fa51d752d140dec76d487877920e09 Mon Sep 17 00:00:00 2001
From: bibaswan1 <bibaswan@setu.co>
Date: Fri, 23 May 2025 18:41:42 +0530
Subject: [PATCH 2/2] changed the error object keys to camel case

---
 content/payments/billpay/pre-built-screens/webhooks.mdx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/content/payments/billpay/pre-built-screens/webhooks.mdx b/content/payments/billpay/pre-built-screens/webhooks.mdx
index f1bafd80..62fd515b 100644
--- a/content/payments/billpay/pre-built-screens/webhooks.mdx
+++ b/content/payments/billpay/pre-built-screens/webhooks.mdx
@@ -671,9 +671,9 @@ Below are the parameter tables and sample payloads for the listed events. Note t
     "event": "bill_payment_failure",
     "refId": "CMA0I65RCU2I32C3L0H0KNYQYAG40021831",
     "error": {
-        "Code": "insufficient-balance",
-        "Message": "Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.",
-        "Type": "FUND_TRANSFER"
+        "code": "insufficient-balance",
+        "message": "Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.",
+        "type": "FUND_TRANSFER"
     }
 }`}
         </CodeBlockWithCopy>
@@ -826,7 +826,7 @@ Below are the parameter tables and sample payloads for the listed events. Note t
                 <td>error</td>
                 <td>Object</td>
                 <td>Error details for failure of bill payment</td>
-                <td><code>[&#123;&quot;Code&quot;: &quot;insufficient-balance&quot;, &quot;Message&quot;: &quot;66578Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.01290&quot;, &quot;Type&quot;: &quot;FUND_TRANSFER&quot;]</code></td>
+                <td><code>[&#123;&quot;code&quot;: &quot;insufficient-balance&quot;, &quot;message&quot;: &quot;66578Insufficient balance in the bank account. Please ensure sufficient funds are available before retrying.01290&quot;, &quot;type&quot;: &quot;FUND_TRANSFER&quot;]</code></td>
             </tr>
         </table>
     </details>