{
    "data": {
        "drawer": {
        "title": "${global.user.first_name} ${global.user.last_name}",
        "buttons": [],
        "tiles": [
          {
            "label": "Home",
            "icon": "home_filled",
            "routeUrl": "/home"
          },
          {
            "label": "Payments",
            "icon": "rupee_outline",
            "routeUrl": "/payments"
          },
          {
            "label": "Loan Calculator Eligibility",
            "icon": "calculate_outlined",
            "routeUrl": "/loan"
          },
          {
            "label": "My Profile",
            "icon": "person",
            "routeUrl": "/profile"
          }
        ],
        "bottomTile": {
          "label": "Settings",
          "icon": "settings",
          "routeUrl": "/settings",
          "navigationType": "push"
        },
        "footer": {
          "component": "row",
          "alignment": "center",
          "children": [
            {
              "component": "text",
              "text": "Powered by ",
              "size": 16,
              "weight": 500
            },
            {
              "component": "text",
              "text": "CreditFair",
              "size": 16,
              "weight": 700,
              "color": "corePrimary"
            }
          ]
        }
      },
        "routes": {
        "/home": {
          "actions": {
            "init": [
              {
                "actionType": "apiCall",
                "stateKey": "${DATA}",
                "innerKey": "${data.payment_details}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "path": "/get-payments",
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              }
            ]
          },
          "bgColor": "circles",
          "header": {
            "component": "header",
            "leading": {
              "component": "drawerMenuButton"
            }
          },
          "layoutConfig": "1",
          "body": [
            {
              "component": "groupCard",
              "title": "Upcoming Payments",
              "titleColor": "primary",
              "listKey": "${DATA}",
              "childComponent": {
                "component": "largeCard",
                "color": "primaryContainer",
                "highlightLine1": "${merchant_name}",
                "highlightLine2": "Due on: ${pending_transaction[0].due_date}",
                "sections": [
                  {
                    "component": "column",
                    "children": [
                      {
                        "component": "row",
                        "padding": 10,
                        "wrap": false,
                        "flexibleChildren": true,
                        "mainAxisAlignment": "spaceBetween",
                        "children": [
                          {
                            "component": "text",
                            "text": "Amount paid",
                            "collapsible": false,
                            "weight": 600
                          },
                          {
                            "component": "text",
                            "text": "Amount Pending",
                            "collapsible": false,
                            "weight": 600
                          }
                        ]
                      },
                      {
                        "component": "row",
                        "margin": [0, 0, 0, 0],
                        "wrap": false,
                        "flexibleChildren": true,
                        "mainAxisAlignment": "spaceBetween",
                        "children": [
                          {
                            "component": "text",
                            "text": "₹${amount_paid}",
                            "collapsible": false,
                            "weight": 600
                          },
                          {
                            "component": "text",
                            "text": "₹${amount_pending}",
                            "collapsible": false,
                            "weight": 600
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "component": "progressBar",
                    "lineHeight": 6,
                    "progressColor": "primary",
                    "backgroundColor": "surface",
                    "leadingValue": "${amount_paid}",
                    "trailingValue": "${amount_financed}"
                  },
                  {
                    "component": "spacing",
                    "height": 22
                  },
                  {
                    "component": "button",
                    "type": "filled",
                    "icon": "check",
                    "large": true,
                    "label": "Check Repayment Schedule",
                    "color": "#FFA500",
                    "actionName": {
                      "actionType": "navigate",
                      "navigationType": "push",
                      "pageUrl": "/upcoming"
                    }
                  }
                ]
              }
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "title": "Your Applications",
              "titleColor": "primary",
              "childComponent": {
                "component": "largeCard",
                "highlightLine1": "Loan Type: ${category_name}",
                "highlightLine2": "Vendor: ${merchant_name}",
                "sections": [
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "Loan Amount: ",
                        "collapsible": false,
                        "weight": 600
                      },
                      {
                        "component": "text",
                        "text": "₹${amount_financed}",
                        "collapsible": false
                      }
                    ]
                  },
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "Date of application: ",
                        "collapsible": false,
                        "weight": 600
                      },
                      {
                        "component": "text",
                        "text": "${created_at_date}",
                        "collapsible": false
                      }
                    ]
                  }
                ]
              }
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/edit-profile": {
          "actions": {},
          "header": {
            "component": "header",
            "leading": {
              "component": "backButton",
              "actionName": {
                "actionType": "navigate",
                "navigationType": "pop",
                "pageUrl": "/profile"
              }
            }
          },
        "layoutConfig": "1",
          "body": [
            {
              "component": "smallCard"
            },
            {
              "component": "textField",
              "value": "John Doe",
              "label": "Name",
              "showLabel": true,
              "enabled": true,
              "isRequired": true
            },
            {
              "component": "textField",
              "value": "john.doe@gmail.com",
              "label": "Email",
              "showLabel": true,
              "enabled": true,
              "isRequired": true
            },
            {
              "component": "textField",
              "value": "9324530205",
              "label": "Phone Number",
              "showLabel": true,
              "enabled": true,
              "isRequired": true
            },
            {
              "component": "button",
              "type": "filled",
              "label": "Confirm Changes",
              "color": "#FFA500",
              "large": true
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/profile": {
          "actions": {
            "init": [
              {
                "actionType": "apiCall",
                "stateKey": "${DATA}",
                "innerKey": "${data.payment_details}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "path": "/get-payments",
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              }
            ],
            "saveButtonAction": [
              {
                "actionType": "signout"
              },
              {
                "actionType": "refresh"
              }
            ],
            "signOutAction": [
              {
                "actionType": "showPopup",
                "popup": {
                  "title": "Are you sure you want to Sign out?",
                  "cancelButtonLabel": "No",
                  "cancelButtonColor": "green",
                  "saveButtonLabel": "Yes",
                  "saveButtonColor": "red",
                  "saveButtonAction": "saveButtonAction"
                }
              }
            ]
          },
          "layoutConfig": "1",
          "header": {
            "component": "header",
            "leading": {
              "component": "drawerMenuButton"
            },
            "actions": []
          },
          "body": [
            {
              "component": "text",
              "text": "User Profile",
              "size": 26,
              "weight": 800,
              "color": "primary"
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "childComponent": {
                "component": "textField",
                "label": "First Name",
                "value": "${customer_name}",
                "isRequired": true
              }
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "childComponent": {
                "component": "textField",
                "label": "Email",
                "value": "${customer_name}",
                "isRequired": true
              }
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "childComponent": {
                "component": "textField",
                "label": "Phone Number",
                "value": "${email}",
                "isRequired": true
              }
            },
            {
              "component": "smallCard",
              "color": "primaryContainer",
              "line1": {
                "component": "text",
                "text": "Refer your loved ones!",
                "color": "primary10",
                "size": 20,
                "weight": 700
              },
              "button1": {
                "component": "button",
                "type": "filled",
                "label": "Invite now",
                "color": "#FFA500"
              }
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/settings": {
          "actions": {
            "saveButtonAction": [
              {
                "actionType": "navigate",
                "navigationType": "pop"
              },
              {
                "actionType": "signout"
              },
              {
                "actionType": "refresh"
              }
            ],
            "signOutAction": [
              {
                "actionType": "showPopup",
                "popup": {
                  "title": "Are you sure you want to Sign out?",
                  "cancelButtonLabel": "No",
                  "cancelButtonColor": "green",
                  "saveButtonLabel": "Yes",
                  "saveButtonColor": "red",
                  "saveButtonAction": "saveButtonAction"
                }
              }
            ]
          },
          "layoutConfig": "1",
          "header": {
            "component": "header",
            "leading": {
              "component": "backButton",
              "actionName": {
                "actionType": "navigate",
                "navigationType": "pop",
                "pageUrl": "/home"
              }
            },
            "actions": [
              {}
            ]
          },
          "body": [
            {
              "component": "text",
              "text": "Settings",
              "size": 28,
              "weight": 800,
              "color": "primary"
            },
            {
              "component": "smallCard",
              "line1": {
                "component": "text",
                "text": "About Us"
              },
              "line2": {
                "component": "text",
                "text": "Read About Us"
              },
              "button1": {
                "component": "button",
                "type": "text",
                "icon": "arrow_forward_ios_rounded",
                "actionName": {
                  "actionType": "openUrl",
                  "url": "https://creditfair.in/privacy-policy"
                }
              }
            },
            {
              "component": "smallCard",
              "line1": {
                "component": "text",
                "text": "Terms and Conditions "
              },
              "line2": {
                "component": "text",
                "text": "See Terms and Conditions"
              },
              "button1": {
                "component": "button",
                "type": "text",
                "icon": "arrow_forward_ios_rounded",
                "actionName": {
                  "actionType": "openUrl",
                  "url": "https://creditfair.in/terms-conditions"
                }
              }
            },
            {
              "component": "smallCard",
              "line1": {
                "component": "text",
                "text": "Privacy and Policy"
              },
              "line2": {
                "component": "text",
                "text": "See Privacy and Policy"
              },
              "button1": {
                "component": "button",
                "type": "text",
                "icon": "arrow_forward_ios_rounded",
                "actionName": {
                  "actionType": "openUrl",
                  "url": "https://creditfair.in/"
                }
              }
            },
            {
              "component": "smallCard",
              "line1": {
                "component": "text",
                "text": "Sign Out"
              },
              "line2": {
                "component": "text",
                "text": "Sign Out of your account"
              },
              "button1": {
                "component": "button",
                "type": "text",
                "icon": "logout_rounded"
              },
              "actionName": "saveButtonAction"
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/payments": {
          "actions": {
            "init": [
              {
                "actionType": "apiCall",
                "stateKey": "${DATA}",
                "innerKey": "${data.payment_details}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "path": "/get-payments",
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              }
            ],
            "payNow": [
              {
                "actionType": "apiCall",
                "stateKey": "${DATAA}",
                "innerKey": "${data.payment_details[0]}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "path": "/get-payments",
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              },
              {
                "actionType": "apiCall",
                "path": "/pay-now",
                "stateKey": "${PAYNOW}",
                "innerKey": "${data}",
                "data": {
                  "application_id": "${DATAA.id}"
                },
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              },
              {
                "actionType": "openUrl",
                "url": "${PAYNOW.pay_now_link}"
              }
            ]
          },
          "layoutConfig": "1",
          "header": {
            "component": "header",
            "leading": {
              "component": "drawerMenuButton"
            },
            "actions": [
              {
                "component": "button",
                "type": "text",
                "icon": "file_download",
                "actionName": {
                  "actionType": "openUrl",
                  "url": "${DATA[0].account_statement}"
                }
              }
            ]
          },
          "body": [
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "title": "Payments",
              "childComponent": {
                "component": "largeCard",
                "highlightLine1": "Loan Amount: ₹${amount_financed}",
                "color": "surface",
                "sections": [
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "Tenure: ",
                        "collapsible": false
                      },
                      {
                        "component": "text",
                        "text": "${tenure} months",
                        "collapsible": false
                      }
                    ]
                  },
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "Interest Rate: ",
                        "collapsible": false
                      },
                      {
                        "component": "text",
                        "text": "${interest}%",
                        "collapsible": false
                      }
                    ]
                  },
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "${merchant_name}",
                        "collapsible": false
                      }
                    ]
                  },
                  {
                    "component": "row",
                    "children": [
                      {
                        "component": "text",
                        "text": "${created_at_date}",
                        "collapsible": false
                      }
                    ]
                  }
                ]
              }
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "searchable": true,
              "title": "Upcoming Payment",
              "titleColor": "primary",
              "childComponent": {
                "component": "smallCard",
                "actionName": "editMember",
                "line1": "Due on ${upcoming_payment.due_date}",
                "line2": "EMI: ₹${upcoming_payment.installment_amount}",
                "line3": "Interest: ₹${schedule[0].interest}",
                "button1": {
                  "component": "button",
                  "type": "outlined",
                  "borderColor": "#5F4196",
                  "color": "primary",
                  "label": "First"
                }
              }
            },
            {
              "component": "groupCard",
              "listKey": "${DATA}",
              "childComponent": {
                "component": "smallCard",
                "line1": {
                  "component": "text",
                  "text": "Foreclosure Amount",
                  "weight": 400,
                  "size": 16
                },
                "line2": {
                  "component": "text",
                  "text": "₹${fore_closure_amount}",
                  "size": 14
                },
                "button1": {
                  "component": "button",
                  "type": "outlined",
                  "borderColor": "#5F4196",
                  "color": "primary",
                  "label": "See All Payments",
                  "actionName": {
                    "actionType": "navigate",
                    "navigationType": "push",
                    "pageUrl": "/upcoming"
                  }
                }
              }
            },
            {
              "component": "button",
              "type": "filled",
              "label": "Pay Now",
              "color": "#FFA500",
              "large": true,
              "actionName": "payNow"
            },
            {
              "component": "row",
              "margin": [0,0,0,0],
              "children": [
                {
                  "component": "text",
                  "text": "You can only pay the EMI for the current month.",
                  "weight": 800,
                  "size": 14,
                  "maxLines": 2,
                  "full": true
                },
                {
                  "component": "text",
                  "text": "To make a payment for a future EMI, please contact our team at info@creditfair.in",
                  "weight": 400,
                  "size": 12,
                  "maxLines": 2
                }
              ]
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/upcoming": {
          "actions": {
            "init": [
              {
                "actionType": "apiCall",
                "stateKey": "${DATAAA}",
                "innerKey": "${data.payment_details[0].schedule}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "path": "/get-payments",
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              }
            ]
          },
          "layoutConfig": "1",
          "header": {
            "component": "header",
            "leading": {
              "component": "backButton",
              "actionName": {
                "actionType": "navigate",
                "navigationType": "pop"
              }
            }
          },
          "body": [
            {
              "component": "groupCard",
              "title": "Upcoming Payments",
              "titleColor": "primary",
              "listKey": "${DATAAA}",
              "childComponent": {
                "component": "smallCard",
                "actionName": "editMember",
                "line1": {
                  "component": "text",
                  "text": "Due on ${due_date}"
                },
                "line2": {
                  "component": "text",
                  "text": "EMI ₹${total_due}"
                },
                "line3": {
                  "component": "text",
                  "text": "Interest: ${interest}"
                },
                "line4": {
                  "component": "text",
                  "text": "Principal: ₹${principal}"
                },
                "button1": {
                  "component": "button",
                  "type": "outlined",
                  "borderColor": "#5F4196",
                  "color": "primary",
                  "label": "${next_emi_word}"
                }
              }
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/loan": {
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default",
          "bgColor": "surface",
          "actions": {
            "init": [
              {
                "condition": [
                  "isNull",
                  "${CHECK_LOAN}"
                ],
                "true": {
                  "actionType": "updateData",
                  "key": "${CHECK_LOAN}",
                  "value": {
                    "tenure": 0.0,
                    "interest_rate": 0.0,
                    "monthly_income": 0.0,
                    "monthly_expense": 0.0,
                    "eligible_amount": 0
                  }
                }
              }
            ],
            "checkEligibility": [
              {
                "actionType": "apiCall",
                "path": "/check-loan-eligibility",
                "stateKey": "${data}",
                "innerKey": "${data}",
                "data": "${CHECK_LOAN}",
                "baseUrl": "https://test1.creditfair.in/consumer",
                "customHeaders": {
                  "X-CF-CUSTOMER-APP": true
                },
                "errorHandling": {
                  "CF401": [
                    {
                      "actionType": "navigate",
                      "navigationType": "go",
                      "pageUrl": "/onboarding/invalid-auth"
                    },
                    {
                      "actionType": "refresh"
                    }
                  ]
                }
              },
              {
                "actionType": "updateData",
                "key": "${CALC_LOAN}",
                "value": {
                  "eligible_amount": "${data.eligible_amount}"
                }
              }
            ]
          },
          "header": {
            "component": "header",
            "leading": {
              "component": "drawerMenuButton"
            },
            "actions": []
          },
          "layoutConfig": "1",
          "body": [
            {
              "component": "largeCard",
              "color": "primaryContainer",
              "sections": [
                {
                  "component": "text",
                  "text": "You are eligible for",
                  "weight": 600
                },
                {
                  "component": "text",
                  "text": "₹${CALC_LOAN.eligible_amount}",
                  "size": 28,
                  "weight": 600
                },
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Loan Tenure: ",
                      "collapsible": false,
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "${CHECK_LOAN.tenure} Months",
                      "collapsible": false
                    }
                  ]
                },
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Interest Rate: ",
                      "collapsible": false,
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "${CHECK_LOAN.interest_rate}%",
                      "collapsible": false
                    }
                  ]
                },
                {
                  "component": "spacing",
                  "height": 10
                }
              ]
            },
            {
              "component": "largeCard",
              "color": "primaryContainer",
              "sections": [
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Loan Tenure: ",
                      "collapsible": false,
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "${CHECK_LOAN.tenure} Months",
                      "collapsible": false
                    }
                  ]
                },
                {
                  "component": "slider",
                  "min": 0,
                  "max": 30,
                  "divisions": 6,
                  "value": "${CHECK_LOAN.tenure}"
                },
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Interest Rate: ",
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "${CHECK_LOAN.interest_rate}%"
                    }
                  ]
                },
                {
                  "component": "slider",
                  "min": 0,
                  "max": 18,
                  "value": "${CHECK_LOAN.interest_rate}",
                  "divisions": 18
                },
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Monthly Income: ",
                      "collapsible": false,
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "₹${CHECK_LOAN.monthly_income}",
                      "collapsible": false
                    }
                  ]
                },
                {
                  "component": "slider",
                  "min": 0,
                  "max": 180000,
                  "value": "${CHECK_LOAN.monthly_income}",
                  "divisions": 18
                },
                {
                  "component": "row",
                  "children": [
                    {
                      "component": "text",
                      "text": "Monthly Expense: ",
                      "collapsible": false,
                      "weight": 600
                    },
                    {
                      "component": "text",
                      "text": "₹${CHECK_LOAN.monthly_expense}",
                      "collapsible": false
                    }
                  ]
                },
                {
                  "component": "slider",
                  "min": 0,
                  "max": 100000,
                  "value": "${CHECK_LOAN.monthly_expense}",
                  "divisions": 10
                },
                {
                  "component": "button",
                  "large": true,
                  "label": "Calculate",
                  "actionName": "checkEligibility"
                }
              ]
            }
          ]
        },
        "/login": {
          "actions": {
            "init": []
          },
          "layoutConfig": "1",
          "body": [
            {
              "component": "text",
              "text": "Login Page",
              "size": 26,
              "color": "primary",
              "weight": 800
            },
            {
              "component": "textField",
              "label": "Mobile Number",
              "value": "${mobile_number}",
              "isRequired": true
            },
            {
              "component": "button",
              "type": "filled",
              "label": "Login",
              "icon": "check",
              "large": true,
              "actionName": [
                {
                  "actionType": "apiCall",
                  "path": "/otp",
                  "customHeaders": {
                    "X-CF-CUSTOMER-APP": "true"
                  },
                  "data": {
                    "mobile_number": "${mobile_number}"
                  }
                },
                {
                  "actionType": "updateDataInStorage",
                  "key": "MOBILE_NUMBER",
                  "value": "${mobile_number}"
                }
              ],
              "color": "primary"
            },
            {
              "component": "textField",
              "label": "OTP",
              "value": "${otp}",
              "isRequired": true
            },
            {
              "component": "text",
              "text": "Verify OTP",
              "size": 26,
              "color": "primary",
              "weight": 800
            },
            {
              "component": "button",
              "type": "filled",
              "label": "Verify OTP",
              "icon": "check",
              "large": true,
              "actionName": [
                {
                  "actionType": "apiCall",
                  "path": "/verify-otp",
                  "stateKey": "${otpResponse}",
                  "innerKey": "${data}",
                  "customHeaders": {
                    "X-CF-CUSTOMER-APP": "true"
                  },
                  "data": {
                    "mobile_number": "${storage.MOBILE_NUMBER}",
                    "otp": "${otp}"
                  }
                },
                {
                  "actionType": "signIn",
                  "userId": "${storage.MOBILE_NUMBER}",
                  "token": "Bearer ${otpResponse.token}"
                }
              ],
              "color": "primary"
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/log-out": {
          "actions": {
            "init": []
          },
          "layoutConfig": "1",
          "body": [
            {
              "component": "text",
              "text": "Login Out Page",
              "size": 26,
              "color": "primary",
              "weight": 800
            },
            {
              "component": "button",
              "type": "filled",
              "label": "Log out",
              "icon": "check",
              "large": true,
              "actionName": [
                {
                  "actionType": "signout"
                }
              ],
              "color": "primary"
            }
          ],
          "component": "page",
          "crossAxisAlignment": "center",
          "mainAxisAlignment": "center",
          "pageLayout": "default"
        },
        "/onboarding": {
            "actions": {
                "init": [
                    {
                        "condition": [
                            "equalsTo",
                            "${bank-statement-status}",
                            "FAIL"
                        ],
                        "true": {
                            "actionType": "navigate",
                            "navigationType": "go",
                            "pageArgs": {
                                "application_id": "${application_id}"
                            },
                            "pageUrl": "/onboarding/upload-bank-statement"
                        }
                    },
                    {
                        "condition": [
                            "isNotNull",
                            "${category_id}"
                        ],
                        "true": {
                            "actionType": "updateData",
                            "key": "${CATEGORY_ID}",
                            "value": "${category_id}"
                        }
                    },
                    {
                        "condition": [
                            "isEmpty",
                            "${NEW_APPLICATION}"
                        ],
                        "true": {
                            "actionType": "updateData",
                            "key": "${NEW_APPLICATION}",
                            "value": true
                        }
                    },
                    {
                        "condition": [
                            "isNotNull",
                            "${paymentStatus}"
                        ],
                        "true": [
                            {
                                "actionType": "apiCall",
                                "data": {
                                    "application_id": "${application}"
                                },
                                "path": "/get-token",
                                "stateKey": "${tokenResponse}"
                            },
                            {
                                "actionType": "updateData",
                                "key": "${AUTH_TOKEN}",
                                "value": "${tokenResponse.data.token}"
                            },
                            {
                                "condition": [
                                    "equalsTo",
                                    "${paymentStatus}",
                                    "TXN_SUCCESS"
                                ],
                                "true": [
                                    {
                                        "condition": [
                                            "isNotNull",
                                            "${AUTH_TOKEN}"
                                        ],
                                        "true": [
                                            {
                                                "actionType": "apiCall",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "application_id": "${application}"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "/get-user-details",
                                                "stateKey": "${userDetails}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${CATEGORY_ID}",
                                                "value": "${userDetails.data.category_id}"
                                            }
                                        ]
                                    },
                                    {
                                        "actionType": "updateData",
                                        "key": "${APPLICATION_ID}",
                                        "value": "${application}"
                                    },
                                    {
                                        "condition": [
                                            "equalsTo",
                                            "${CATEGORY_ID}",
                                            "6"
                                        ],
                                        "false": [
                                            {
                                                "actionType": "updateData",
                                                "key": "${sectionIndex}",
                                                "value": 3
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${pageIndex}",
                                                "value": 3
                                            }
                                        ],
                                        "true": [
                                            {
                                                "actionType": "updateData",
                                                "key": "${sectionIndex}",
                                                "value": 4
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${pageIndex}",
                                                "value": 3
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "condition": [
                                    "equalsTo",
                                    "${paymentStatus}",
                                    "TXN_FAILURE"
                                ],
                                "true": [
                                    {
                                        "actionType": "updateData",
                                        "key": "${APPLICATION_ID}",
                                        "value": "${application}"
                                    },
                                    {
                                        "actionType": "updateData",
                                        "key": "${paymentFail}",
                                        "value": "True"
                                    },
                                    {
                                        "actionType": "updateData",
                                        "key": "${sectionIndex}",
                                        "value": 3
                                    },
                                    {
                                        "actionType": "updateData",
                                        "key": "${pageIndex}",
                                        "value": 4
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "condition": [
                            "isNotNull",
                            "${merchant_slug}"
                        ],
                        "true": [
                            {
                                "actionType": "apiCall",
                                "data": {
                                    "merchant_slug": "${merchant_slug}"
                                },
                                "innerKey": "${data}",
                                "path": "/get-merchant-name",
                                "stateKey": "${merchant}"
                            },
                            {
                                "actionType": "updateData",
                                "key": "${MERCHANT_NAME}",
                                "value": "${merchant.name}"
                            },
                            {
                                "actionType": "updateData",
                                "key": "${MERCHANT_ID}",
                                "value": "${merchant.id}"
                            }
                        ]
                    },
                    {
                        "condition": [
                            "isNotNull",
                            "${center_slug}"
                        ],
                        "true": {
                            "actionType": "apiCall",
                            "data": {
                                "merchant_center_slug": "${center_slug}"
                            },
                            "innerKey": "${data}",
                            "path": "/get-merchant-center-name",
                            "stateKey": "${center}"
                        }
                    },
                    {
                        "condition": [
                            "isNotNull",
                            "${center.id}"
                        ],
                        "true": {
                            "actionType": "updateData",
                            "key": "${CENTER_ID}",
                            "value": "${center.id}"
                        }
                    }
                ]
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "progressForm",
                    "mainHeading": {
                        "assetPath": "assets/cfc_logo_full.png",
                        "component": "image"
                    },
                    "mainSubTitle": "Let's get started",
                    "mainTitle": "${MERCHANT_NAME}",
                    "sections": [
                        {
                            "pageSubTitle": "Please provide application details",
                            "pageTitle": "Application Details",
                            "pages": [
                                {
                                    "fields": [
                                        {
                                            "component": "textField",
                                            "full": true,
                                            "isRequired": true,
                                            "label": "Mobile Number",
                                            "validationRegex": "^^[0-9]\\d{9}$",
                                            "value": "${MOBILE_NUMBER}"
                                        },
                                        {
                                            "children": [
                                                {
                                                    "actionName": [
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${CONSENT}",
                                                                true
                                                            ],
                                                            "true": {
                                                                "actionType": "updateData",
                                                                "key": "${CONSENT_DENY}",
                                                                "value": false
                                                            }
                                                        }
                                                    ],
                                                    "component": "checkbox",
                                                    "full": true,
                                                    "value": "${CONSENT}"
                                                },
                                                {
                                                    "component": "spacing",
                                                    "width": 8
                                                },
                                                {
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "text": "By clicking on submit you agree to our"
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "openUrl",
                                                        "url": "https://creditfair.in/privacy-policy"
                                                    },
                                                    "component": "button",
                                                    "label": "Privacy Policy",
                                                    "padding": [
                                                        6,
                                                        1,
                                                        6,
                                                        0
                                                    ],
                                                    "type": "text"
                                                },
                                                {
                                                    "component": "text",
                                                    "text": "and"
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "openUrl",
                                                        "url": "https://creditfair.in/kyc-policy"
                                                    },
                                                    "component": "button",
                                                    "label": "T&C",
                                                    "padding": [
                                                        6,
                                                        1,
                                                        6,
                                                        0
                                                    ],
                                                    "type": "text"
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": true,
                                            "full": true
                                        },
                                        {
                                            "children": [
                                                {
                                                    "actionName": [
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${CONSENT_DENY}",
                                                                true
                                                            ],
                                                            "true": {
                                                                "actionType": "updateData",
                                                                "key": "${CONSENT}",
                                                                "value": false
                                                            }
                                                        }
                                                    ],
                                                    "component": "checkbox",
                                                    "full": true,
                                                    "value": "${CONSENT_DENY}"
                                                },
                                                {
                                                    "component": "spacing",
                                                    "width": 8
                                                },
                                                {
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "text": "I Deny"
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": true,
                                            "full": true
                                        }
                                    ],
                                    "nextButton": {
                                        "enabled": "${CONSENT}",
                                        "label": "Submit",
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "data": {
                                                    "mobile_number": "${MOBILE_NUMBER}"
                                                },
                                                "path": "/otp",
                                                "stateKey": "${otpResponse}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${otpResponse.message}",
                                                    "Existing Customer"
                                                ],
                                                "true": [
                                                    {
                                                        "actionType": "navigate",
                                                        "navigationType": "go",
                                                        "pageArgs": {
                                                            "IS_EXISTING": 1,
                                                            "mobile_number": "${MOBILE_NUMBER}"
                                                        },
                                                        "pageUrl": "/onboarding/existing-customer"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "Provide application details",
                                    "pageTitle": "Application Details"
                                },
                                {
                                    "fields": [
                                        {
                                            "component": "textField",
                                            "enabled": false,
                                            "full": true,
                                            "isRequired": true,
                                            "label": "Mobile Number",
                                            "value": "${MOBILE_NUMBER}"
                                        },
                                        {
                                            "component": "textField",
                                            "full": true,
                                            "isRequired": true,
                                            "keyboardType": "number",
                                            "label": "OTP",
                                            "value": "${OTP}",
                                            "valueType": "int"
                                        },
                                        {
                                            "children": [
                                                {
                                                    "color": "onSurface",
                                                    "component": "text",
                                                    "size": 15,
                                                    "text": "Didn't receive an OTP yet?",
                                                    "weight": 400
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "apiCall",
                                                        "data": {
                                                            "mobile_number": "${MOBILE_NUMBER}"
                                                        },
                                                        "path": "/otp",
                                                        "stateKey": "${otpResponse}"
                                                    },
                                                    "component": "button",
                                                    "label": "Resend OTP",
                                                    "type": "text"
                                                }
                                            ],
                                            "component": "row",
                                            "full": true
                                        }
                                    ],
                                    "nextButton": {
                                        "label": "Verify OTP",
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "data": {
                                                    "mobile_number": "${MOBILE_NUMBER}",
                                                    "otp": "${OTP}"
                                                },
                                                "path": "/verify-otp",
                                                "stateKey": "${verifyOtpResponse}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${AUTH_TOKEN}",
                                                "value": "${verifyOtpResponse.data.token}"
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "Provide application details",
                                    "pageTitle": "Application Details",
                                    "previousButton": {
                                        "enabled": true,
                                        "onPrevious": [
                                            {
                                                "actionName": {
                                                    "actionType": "updateData",
                                                    "key": "${OTP}",
                                                    "keyInRoot": true,
                                                    "value": null
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "fields": [
                                        {
                                            "component": "textField",
                                            "full": false,
                                            "label": "Unique ID",
                                            "value": "${UNIQUE_ID}"
                                        },
                                        {
                                            "component": "textField",
                                            "full": false,
                                            "isRequired": true,
                                            "label": "PAN Number",
                                            "validationRegex": "^[A-Z]{5}\\d{4}[A-Z]$",
                                            "value": "${PAN_NUMBER}"
                                        },
                                        {
                                            "component": "datePicker",
                                            "full": false,
                                            "isRequired": true,
                                            "label": "Date of Birth",
                                            "value": "${DATE_OF_BIRTH}"
                                        },
                                        {
                                            "component": "textField",
                                            "full": false,
                                            "isRequired": true,
                                            "label": "Loan Amount",
                                            "validationRegex": "^\\d+$",
                                            "value": "${LOAN_AMOUNT}"
                                        },
                                        {
                                            "condition": [
                                                "isNull",
                                                "${merchant_slug}"
                                            ],
                                            "true": {
                                                "condition": [
                                                    "isNull",
                                                    "${CATEGORY_ID}"
                                                ],
                                                "false": {
                                                    "apiForItems": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "category_id": "${CATEGORY_ID}"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "innerKey": "${data.merchants}",
                                                        "path": "/get-merchant-details"
                                                    },
                                                    "component": "dropdown",
                                                    "full": false,
                                                    "isRequired": true,
                                                    "itemDisplayKey": "${name}",
                                                    "itemValueKey": "${id}",
                                                    "label": "Merchant Name",
                                                    "searchable": true,
                                                    "value": "${MERCHANT_ID}"
                                                },
                                                "true": {
                                                    "apiForItems": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {},
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "innerKey": "${data.merchants}",
                                                        "path": "/get-merchant-details"
                                                    },
                                                    "component": "dropdown",
                                                    "full": false,
                                                    "isRequired": true,
                                                    "itemDisplayKey": "${name}",
                                                    "itemValueKey": "${id}",
                                                    "label": "Merchant Name",
                                                    "searchable": true,
                                                    "value": "${MERCHANT_ID}"
                                                }
                                            }
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${MERCHANT_ID}"
                                            ],
                                            "true": {
                                                "condition": [
                                                    "isNotNull",
                                                    "${center_slug}"
                                                ],
                                                "false": {
                                                    "apiForItems": {
                                                        "actionType": "apiCall",
                                                        "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                        "data": {
                                                            "merchant_id": "${MERCHANT_ID}",
                                                            "pagination": false
                                                        },
                                                        "innerKey": "${data.results}",
                                                        "path": "/v1/merchant/center/list/"
                                                    },
                                                    "component": "dropdown",
                                                    "full": false,
                                                    "isRequired": false,
                                                    "itemDisplayKey": "${name}",
                                                    "itemValueKey": "${id}",
                                                    "label": "Merchant Center",
                                                    "searchable": true,
                                                    "uniqueId": "${MERCHANT_ID} ",
                                                    "value": "${CENTER_ID}"
                                                }
                                            }
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${MERCHANT_ID}"
                                            ],
                                            "true": {
                                                "apiForItems": {
                                                    "actionType": "apiCall",
                                                    "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                    "data": {
                                                        "merchant_id": "${MERCHANT_ID}",
                                                        "pagination": false
                                                    },
                                                    "innerKey": "${data.results}",
                                                    "path": "/v1/merchant/product/list/"
                                                },
                                                "component": "dropdown",
                                                "full": false,
                                                "isRequired": true,
                                                "itemDisplayKey": "${name}",
                                                "itemValueKey": "${id}",
                                                "label": "Merchant Product",
                                                "searchable": true,
                                                "uniqueId": "${MERCHANT_ID} ",
                                                "value": "${PRODUCT_ID}"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "equalsTo",
                                                "${PRODUCT_ID}",
                                                0
                                            ],
                                            "true": {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Product Name",
                                                "value": "${PRODUCT_NAME}"
                                            }
                                        },
                                        {
                                            "children": [
                                                {
                                                    "actionName": [
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${CKYC_CONSENT}",
                                                                true
                                                            ],
                                                            "true": {
                                                                "actionType": "updateData",
                                                                "key": "${CKYC_CONSENT_DENY}",
                                                                "value": false
                                                            }
                                                        }
                                                    ],
                                                    "component": "checkbox",
                                                    "full": true,
                                                    "value": "${CKYC_CONSENT}"
                                                },
                                                {
                                                    "component": "spacing",
                                                    "width": 8
                                                },
                                                {
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "text": "By clicking on submit you agree to give consent to fetch"
                                                },
                                                {
                                                    "component": "spacing",
                                                    "width": 8
                                                },
                                                {
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "text": "CKYC and Bureau Pull"
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": true,
                                            "full": true
                                        },
                                        {
                                            "children": [
                                                {
                                                    "actionName": [
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${CKYC_CONSENT_DENY}",
                                                                true
                                                            ],
                                                            "true": {
                                                                "actionType": "updateData",
                                                                "key": "${CKYC_CONSENT}",
                                                                "value": false
                                                            }
                                                        }
                                                    ],
                                                    "component": "checkbox",
                                                    "full": true,
                                                    "value": "${CKYC_CONSENT_DENY}"
                                                },
                                                {
                                                    "component": "spacing",
                                                    "width": 8
                                                },
                                                {
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "text": "I Deny"
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": true,
                                            "full": true
                                        }
                                    ],
                                    "nextButton": {
                                        "enabled": "${CKYC_CONSENT}",
                                        "label": "Submit",
                                        "onNext": [
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${MERCHANT_ID}"
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "merchant_id": "${MERCHANT_ID}"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "innerKey": "${data}",
                                                    "path": "/get-merchant-category",
                                                    "stateKey": "${categoryResponse}"
                                                }
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${CATEGORY_ID}",
                                                "value": "${categoryResponse.category_id}"
                                            },
                                            {
                                                "actionType": "apiCall",
                                                "customHeaders": {
                                                    "Authorization": "${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "center_id": "${CENTER_ID}",
                                                    "date_of_birth": "${DATE_OF_BIRTH}",
                                                    "loan_amount": "${LOAN_AMOUNT}",
                                                    "merchant_id": "${MERCHANT_ID}",
                                                    "mobile_number": "${MOBILE_NUMBER}",
                                                    "pan_number": "${PAN_NUMBER}",
                                                    "product": "${PRODUCT_ID}",
                                                    "product_name": "${PRODUCT_NAME}",
                                                    "source": "No touch",
                                                    "unique_id": "${UNIQUE_ID}"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "innerKey": "${data}",
                                                "path": "/create-application",
                                                "stateKey": "${createApplicationResponse}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${APPLICATION_ID}",
                                                "value": "${createApplicationResponse.application_id}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${AUTH_TOKEN}",
                                                "value": "${createApplicationResponse.token}"
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${APPLICATION_ID}"
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "date_of_birth": "${DATE_OF_BIRTH}",
                                                        "pan_number": "${PAN_NUMBER}"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "innerKey": "${data}",
                                                    "path": "/ckyc",
                                                    "stateKey": "${ckycResponse}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${APPLICATION_ID}"
                                                ],
                                                "true": {
                                                    "actionType": "captureLocation",
                                                    "result": "${locationPrompt}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${APPLICATION_ID}"
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "latitude": "${locationPrompt.lat}",
                                                        "longitude": "${locationPrompt.long}",
                                                        "status": "success"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/v1/save-consent/",
                                                    "stateKey": "${consentResponse}",
                                                    "waitForResponse": false
                                                }
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${FIRST_NAME}",
                                                "value": "${ckycResponse.first_name}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${MIDDLE_NAME}",
                                                "value": "${ckycResponse.middle_name}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${LAST_NAME}",
                                                "value": "${ckycResponse.last_name}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${EMAIL}",
                                                "value": "${ckycResponse.email}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${ADDRESS_LINE_1}",
                                                "value": "${ckycResponse.address_line_1}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${GENDER}",
                                                "value": "${ckycResponse.gender}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${ADDRESS_LINE_2}",
                                                "value": "${ckycResponse.address_line_2}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${ADDRESS_LINE_3}",
                                                "value": "${ckycResponse.address_line_3}"
                                            },
                                            {
                                                "actionType": "updateData",
                                                "key": "${PINCODE}",
                                                "value": "${ckycResponse.pincode}"
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${ckycResponse.pincode}"
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                    "data": {
                                                        "pincode": "${ckycResponse.pincode}"
                                                    },
                                                    "path": "/v1/pincode/details/",
                                                    "stateKey": "${pincodeResponse}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${PINCODE}"
                                                ],
                                                "true": {
                                                    "actionType": "updateData",
                                                    "key": "${CITY}",
                                                    "value": "${pincodeResponse.data.city}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${PINCODE}"
                                                ],
                                                "true": {
                                                    "actionType": "updateData",
                                                    "key": "${STATE}",
                                                    "value": "${pincodeResponse.data.state}"
                                                }
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "Provide application details",
                                    "pageTitle": "Application Details"
                                }
                            ],
                            "sectionIcon": "person",
                            "sectionName": "Application Details"
                        },
                        {
                            "pageSubTitle": "Please provide personal details",
                            "pageTitle": "Personal Details",
                            "pages": [
                                {
                                    "fields": [
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "First Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${FIRST_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": false,
                                            "label": "Middle Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${MIDDLE_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Last Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${LAST_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Father Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${FATHER_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Email",
                                            "validationRegex": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
                                            "value": "${EMAIL}"
                                        },
                                        {
                                            "component": "dropdown",
                                            "isRequired": true,
                                            "items": [
                                                "MALE",
                                                "FEMALE"
                                            ],
                                            "label": "Gender",
                                            "value": "${GENDER}"
                                        },
                                        {
                                            "component": "dropdown",
                                            "isRequired": true,
                                            "items": [
                                                "Individual",
                                                "Non-individual"
                                            ],
                                            "label": "Type of Customer",
                                            "value": "${type_of_customer}"
                                        },
                                        {
                                            "condition": [
                                                "equalsTo",
                                                "${type_of_customer}",
                                                "Non-individual"
                                            ],
                                            "true": {
                                                "component": "dropdown",
                                                "isRequired": true,
                                                "items": [
                                                    "Proprietorships",
                                                    "Partnership Firm/LLP",
                                                    "HUF",
                                                    "Pvt .Ltd Co.",
                                                    "Public Ltd Co.",
                                                    "Housing Society",
                                                    "Trust",
                                                    "Central/State Govt. Dpt. or Agency",
                                                    "Universities",
                                                    "Others"
                                                ],
                                                "label": "Type of Entity",
                                                "value": "${type_of_entity}"
                                            }
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Address Line 1",
                                            "value": "${ADDRESS_LINE_1}"
                                        },
                                        {
                                            "component": "textField",
                                            "label": "Address Line 2",
                                            "value": "${ADDRESS_LINE_2}"
                                        },
                                        {
                                            "component": "dropdown",
                                            "full": false,
                                            "isRequired": true,
                                            "items": [
                                                "Rented",
                                                "Owned",
                                                "Parents house",
                                                "Self Owned",
                                                "Parent Owned",
                                                "Rented with family",
                                                "Rented with friend",
                                                "Company Allotted"
                                            ],
                                            "label": "Address Status",
                                            "value": "${ADDRESS_STATUS}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Pincode",
                                            "onChangedAction": [
                                                {
                                                    "actionType": "apiCall",
                                                    "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                    "data": {
                                                        "pincode": "${PINCODE}"
                                                    },
                                                    "path": "/v1/pincode/details/",
                                                    "stateKey": "${pincodeResponse}"
                                                },
                                                {
                                                    "actionType": "updateData",
                                                    "key": "${CITY}",
                                                    "value": "${pincodeResponse.data.city}"
                                                },
                                                {
                                                    "actionType": "updateData",
                                                    "key": "${STATE}",
                                                    "value": "${pincodeResponse.data.state}"
                                                }
                                            ],
                                            "validationRegex": "^\\d{6}$",
                                            "value": "${PINCODE}"
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${CITY}"
                                            ],
                                            "true": {
                                                "component": "text",
                                                "text": "City : ${CITY}"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${STATE}"
                                            ],
                                            "true": {
                                                "component": "text",
                                                "text": "State : ${STATE}"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "equalsTo",
                                                "${CATEGORY_ID}",
                                                "6"
                                            ],
                                            "true": {
                                                "children": [
                                                    {
                                                        "action": {},
                                                        "component": "checkbox",
                                                        "full": true,
                                                        "value": "${INSTALLATION_ADDRESS}"
                                                    },
                                                    {
                                                        "component": "spacing",
                                                        "width": 8
                                                    },
                                                    {
                                                        "component": "text",
                                                        "size": 14,
                                                        "text": "Installation address same as above address"
                                                    }
                                                ],
                                                "component": "row",
                                                "flexibleChildren": true,
                                                "full": true
                                            }
                                        }
                                    ],
                                    "nextButton": {
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "address_line_1": "${ADDRESS_LINE_1}",
                                                    "address_line_2": "${ADDRESS_LINE_2}",
                                                    "address_status": "${ADDRESS_STATUS}",
                                                    "application_id": "${APPLICATION_ID}",
                                                    "city": "${CITY}",
                                                    "email": "${EMAIL}",
                                                    "father_name": "${FATHER_NAME}",
                                                    "first_name": "${FIRST_NAME}",
                                                    "gender": "${GENDER}",
                                                    "last_name": "${LAST_NAME}",
                                                    "middle_name": "${MIDDLE_NAME}",
                                                    "pincode": "${PINCODE}",
                                                    "state": "${STATE}",
                                                    "type_of_customer": "${type_of_customer}",
                                                    "type_of_entity": "${type_of_entity}"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "/update-application",
                                                "stateKey": "${secondUpdateApplication}"
                                            },
                                            {
                                                "actionType": "apiCall",
                                                "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "application_id": "${APPLICATION_ID}"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "/v1/consent-document/",
                                                "stateKey": "${consentLog}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${CATEGORY_ID}",
                                                    "6"
                                                ],
                                                "true": [
                                                    {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "address_line_1": "${ADDRESS_LINE_1}",
                                                            "address_line_2": "${ADDRESS_LINE_2}",
                                                            "address_line_3": "${ADDRESS_LINE_3}",
                                                            "applicant_type": 1,
                                                            "application_id": "${APPLICATION_ID}",
                                                            "city": "${CITY}",
                                                            "consent": "Y",
                                                            "dob": "${DATE_OF_BIRTH}",
                                                            "document_type": "PAN_DETAILED",
                                                            "first_name": "${FIRST_NAME}",
                                                            "gender": "1",
                                                            "last_name": "${LAST_NAME}",
                                                            "loan_amount": "${LOAN_AMOUNT}",
                                                            "mobile_number": "${MOBILE_NUMBER}",
                                                            "pan_card": "${PAN_NUMBER}",
                                                            "pincode": "${PINCODE}",
                                                            "queue": true,
                                                            "request_type": "customer",
                                                            "state": "${STATE}",
                                                            "url": "https://bureauuat.creditfair.in/api/get-credit-response"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/check-bureau",
                                                        "waitForResponse": false
                                                    }
                                                ]
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${CATEGORY_ID}",
                                                    "6"
                                                ],
                                                "false": [
                                                    {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "address_line_1": "${ADDRESS_LINE_1}",
                                                            "address_line_2": "${ADDRESS_LINE_2}",
                                                            "address_line_3": "${ADDRESS_LINE_3}",
                                                            "applicant_type": 1,
                                                            "application_id": "${APPLICATION_ID}",
                                                            "city": "${CITY}",
                                                            "consent": "Y",
                                                            "dob": "${DATE_OF_BIRTH}",
                                                            "document_type": "PAN_DETAILED",
                                                            "first_name": "${FIRST_NAME}",
                                                            "gender": "1",
                                                            "last_name": "${LAST_NAME}",
                                                            "loan_amount": "${LOAN_AMOUNT}",
                                                            "mobile_number": "${MOBILE_NUMBER}",
                                                            "pan_card": "${PAN_NUMBER}",
                                                            "pincode": "${PINCODE}",
                                                            "queue": false,
                                                            "request_type": "customer",
                                                            "state": "${STATE}",
                                                            "url": "https://bureauuat.creditfair.in/api/get-credit-response"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/check-bureau"
                                                    },
                                                    {
                                                        "actionType": "apiCall",
                                                        "baseUrl": "https://bureauuat.creditfair.in",
                                                        "data": {
                                                            "applicant_type": "1",
                                                            "application_id": "${APPLICATION_ID}",
                                                            "dob": "${DATE_OF_BIRTH}",
                                                            "document_type": "PAN_DETAILED",
                                                            "first_name": "${FIRST_NAME}",
                                                            "last_name": "${LAST_NAME}",
                                                            "pan_card": "${PAN_NUMBER}",
                                                            "vendor": "No_touch"
                                                        },
                                                        "path": "/api/validate-pan",
                                                        "waitForResponse": false
                                                    }
                                                ]
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${INSTALLATION_ADDRESS}",
                                                    true
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "address_line_1": "${ADDRESS_LINE_1}",
                                                        "address_line_2": "${ADDRESS_LINE_2}",
                                                        "address_status": "${ADDRESS_STATUS}",
                                                        "application_id": "${APPLICATION_ID}",
                                                        "city": "${CITY}",
                                                        "pincode": "${PINCODE}",
                                                        "state": "${STATE}"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/store-installation-address",
                                                    "stateKey": "${secondUpdateApplication}"
                                                }
                                            }
                                        ]
                                    },
                                    "previousButton": {
                                        "enabled": false,
                                        "onPrevious": []
                                    }
                                },
                                {
                                    "condition": [
                                        "equalsTo",
                                        "${INSTALLATION_ADDRESS}",
                                        false
                                    ],
                                    "true": {
                                        "fields": [
                                            {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Address Line 1",
                                                "value": "${INSTALLATION_ADDRESS_LINE_1}"
                                            },
                                            {
                                                "component": "textField",
                                                "label": "Address Line 2",
                                                "value": "${INSTALLATION_ADDRESS_LINE_2}"
                                            },
                                            {
                                                "component": "dropdown",
                                                "full": false,
                                                "isRequired": true,
                                                "items": [
                                                    "Rented",
                                                    "Owned",
                                                    "Parents house",
                                                    "Self Owned",
                                                    "Parent Owned",
                                                    "Rented with family",
                                                    "Rented with friend",
                                                    "Company Allotted"
                                                ],
                                                "label": "Address Status",
                                                "value": "${INSTALLATION_ADDRESS_STATUS}"
                                            },
                                            {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Pincode",
                                                "onChangedAction": [
                                                    {
                                                        "actionType": "apiCall",
                                                        "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                        "data": {
                                                            "pincode": "${INSTALLATION_PINCODE}"
                                                        },
                                                        "path": "/v1/pincode/details/",
                                                        "stateKey": "${INSTALLATION_pincodeResponse}"
                                                    },
                                                    {
                                                        "actionType": "updateData",
                                                        "key": "${INSTALLATION_CITY}",
                                                        "value": "${INSTALLATION_pincodeResponse.data.city}"
                                                    },
                                                    {
                                                        "actionType": "updateData",
                                                        "key": "${INSTALLATION_STATE}",
                                                        "value": "${INSTALLATION_pincodeResponse.data.state}"
                                                    }
                                                ],
                                                "validationRegex": "^\\d{6}$",
                                                "value": "${INSTALLATION_PINCODE}"
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${INSTALLATION_CITY}"
                                                ],
                                                "true": {
                                                    "component": "text",
                                                    "text": "City : ${INSTALLATION_CITY}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "isNotNull",
                                                    "${INSTALLATION_STATE}"
                                                ],
                                                "true": {
                                                    "component": "text",
                                                    "text": "State : ${INSTALLATION_STATE}"
                                                }
                                            }
                                        ],
                                        "nextButton": {
                                            "onNext": [
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${INSTALLATION_ADDRESS}",
                                                        false
                                                    ],
                                                    "true": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "address_line_1": "${INSTALLATION_ADDRESS_LINE_1}",
                                                            "address_line_2": "${INSTALLATION_ADDRESS_LINE_2}",
                                                            "address_status": "${INSTALLATION_ADDRESS_STATUS}",
                                                            "application_id": "${APPLICATION_ID}",
                                                            "city": "${INSTALLATION_CITY}",
                                                            "pincode": "${INSTALLATION_PINCODE}",
                                                            "state": "${INSTALLATION_STATE}"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/store-installation-address",
                                                        "stateKey": "${storeInstallationAddress}"
                                                    }
                                                }
                                            ]
                                        },
                                        "pageSubTitle": "Please Provide Installation Address",
                                        "pageTitle": "Installation Address"
                                    }
                                }
                            ],
                            "sectionIcon": "work_rounded",
                            "sectionName": "Personal Details"
                        },
                        {
                            "pageSubTitle": "Please provide your income details",
                            "pageTitle": "Income Details",
                            "pages": [
                                {
                                    "fields": [
                                        {
                                            "component": "dropdown",
                                            "full": true,
                                            "isRequired": true,
                                            "items": [
                                                "Salaried",
                                                "Self Employed - Professional",
                                                "Self Employed - Business",
                                                "Unemployed"
                                            ],
                                            "label": "Employment Type",
                                            "value": "${EMPLOYMENT_TYPE}"
                                        },
                                        {
                                            "condition": [
                                                "in",
                                                "${EMPLOYMENT_TYPE}",
                                                [
                                                    "Salaried",
                                                    "Self Employed - Professional",
                                                    "Self Employed - Business"
                                                ]
                                            ],
                                            "true": {
                                                "component": "textField",
                                                "isRequired": true,
                                                "keyboardType": "number",
                                                "label": "Net Monthly Income",
                                                "value": "${MONTHLY_INCOME}",
                                                "valueType": "int"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "in",
                                                "${EMPLOYMENT_TYPE}",
                                                [
                                                    "Salaried",
                                                    "Self Employed - Professional",
                                                    "Self Employed - Business"
                                                ]
                                            ],
                                            "true": {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Company Name",
                                                "value": "${COMPANY_NAME}"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "in",
                                                "${EMPLOYMENT_TYPE}",
                                                [
                                                    "Self Employed - Professional",
                                                    "Self Employed - Business"
                                                ]
                                            ],
                                            "true": {
                                                "component": "textField",
                                                "isRequired": false,
                                                "label": "Office Contact Number",
                                                "value": "${OFFICE_CONTACT_NUMBER}"
                                            }
                                        }
                                    ],
                                    "nextButton": {
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "application_id": "${APPLICATION_ID}",
                                                    "company_name": "${COMPANY_NAME}",
                                                    "employement_type": "${EMPLOYMENT_TYPE}",
                                                    "mobile_number": "${OFFICE_CONTACT_NUMBER}",
                                                    "net_monthyl_income": "${MONTHLY_INCOME}"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "/employement-details",
                                                "stateKey": "${empDetailsResponse}"
                                            },
                                            {
                                                "condition": [
                                                    "notEqualsTo",
                                                    "${CATEGORY_ID}",
                                                    "6"
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "inverter_to_be_installed": null,
                                                        "kw_installation": null,
                                                        "loan_amount": null,
                                                        "other_inverter": null,
                                                        "other_panel": null,
                                                        "panel_to_be_installed": null,
                                                        "project": null
                                                    },
                                                    "errorHandling": {
                                                        "CF301": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageArgs": {
                                                                    "AUTH_TOKEN": "${AUTH_TOKEN}",
                                                                    "application_id": "${APPLICATION_ID}"
                                                                },
                                                                "pageUrl": "/onboarding/bank-statement"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ],
                                                        "CF302": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageArgs": {
                                                                    "application_id": "${APPLICATION_ID}",
                                                                    "source": "${source}"
                                                                },
                                                                "pageUrl": "/onboarding/auto-reject"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ],
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/product-details",
                                                    "stateKey": "${productDetailsResponse}"
                                                }
                                            }
                                        ]
                                    },
                                    "previousButton": {
                                        "enabled": "${NEW_APPLICATION}",
                                        "onPrevious": [
                                            {
                                                "actionName": {
                                                    "actionType": "updateData",
                                                    "key": "${MONTHLY_INCOME}",
                                                    "keyInRoot": true,
                                                    "value": null
                                                }
                                            },
                                            {
                                                "actionName": {
                                                    "actionType": "updateData",
                                                    "key": "${OFFICE_CONTACT_NUMBER}",
                                                    "keyInRoot": true,
                                                    "value": null
                                                }
                                            },
                                            {
                                                "actionName": {
                                                    "actionType": "updateData",
                                                    "key": "${EMPLOYMENT_TYPE}",
                                                    "keyInRoot": true,
                                                    "value": null
                                                }
                                            },
                                            {
                                                "actionName": {
                                                    "actionType": "updateData",
                                                    "key": "${COMPANY_NAME}",
                                                    "keyInRoot": true,
                                                    "value": null
                                                }
                                            }
                                        ]
                                    }
                                }
                            ],
                            "sectionIcon": "work_rounded",
                            "sectionName": "Income Details"
                        },
                        {
                            "condition": [
                                "equalsTo",
                                "${CATEGORY_ID}",
                                "6"
                            ],
                            "true": {
                                "pageSubTitle": "Provide Product and offer details",
                                "pageTitle": "Product Details",
                                "pages": [
                                    {
                                        "fields": [
                                            {
                                                "apiForItems": {
                                                    "actionType": "apiCall",
                                                    "data": {},
                                                    "innerKey": "${data.service}",
                                                    "path": "/get-serviceprovider-list"
                                                },
                                                "component": "dropdown",
                                                "full": true,
                                                "isRequired": true,
                                                "itemDisplayKey": "${name}",
                                                "itemValueKey": "${id}",
                                                "label": "Service Provider",
                                                "searchable": true,
                                                "value": "${SERVICE_PROVIDER}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "OTH"
                                                ],
                                                "true": {
                                                    "component": "textField",
                                                    "isRequired": true,
                                                    "label": "Service Provider Name",
                                                    "value": "${SERVICE_PROVIDER_NAME}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "UPPCL"
                                                ],
                                                "true": {
                                                    "apiForItems": {
                                                        "actionType": "apiCall",
                                                        "data": {},
                                                        "innerKey": "${data.service}",
                                                        "path": "/get-serviceprovider-list?district=UP"
                                                    },
                                                    "component": "dropdown",
                                                    "full": true,
                                                    "isRequired": true,
                                                    "itemDisplayKey": "${name}",
                                                    "itemValueKey": "${id}",
                                                    "label": "District",
                                                    "searchable": true,
                                                    "value": "${DISTRICT}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "KERALA"
                                                ],
                                                "true": {
                                                    "component": "textField",
                                                    "full": true,
                                                    "isRequired": true,
                                                    "label": "Provider linked mobile number",
                                                    "value": "${REG_MOBILE_NUMBER}"
                                                }
                                            },
                                            {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Customer ID",
                                                "value": "${CUSTOMER_ID}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "OTH"
                                                ],
                                                "true": {
                                                    "component": "textField",
                                                    "isRequired": true,
                                                    "keyboardType": "number",
                                                    "label": "Monthly Bill Amount",
                                                    "value": "${MONTHLY_BILL_AMOUNT}",
                                                    "valueType": "double"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "OTH"
                                                ],
                                                "true": {
                                                    "allowMultiple": false,
                                                    "component": "imagePicker",
                                                    "folderPath": "${APPLICATION_ID}",
                                                    "full": true,
                                                    "imagePath": "${ELECTRICITY_BILL_PHOTO_PATH}",
                                                    "isRequired": true,
                                                    "label": "Electricity Bill",
                                                    "localPreview": true,
                                                    "maxUploadSize": 18409,
                                                    "public": true,
                                                    "signedUrlApi": {
                                                        "contentTypeKey": "${CONTENT_TYPE}",
                                                        "data": {
                                                            "action": "getUploadSignedURL",
                                                            "s3_file_name": "electricity_bill_photo",
                                                            "workflow": "file"
                                                        },
                                                        "filePathKey": "${FILE_PATH}",
                                                        "path": "/upload-presigned-url",
                                                        "resultUrlKey": "${data.url}"
                                                    }
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SERVICE_PROVIDER}",
                                                    "OTH"
                                                ],
                                                "true": {
                                                    "children": [
                                                        {
                                                            "component": "text",
                                                            "size": 16,
                                                            "text": "Is Electricity bill of the applicant?"
                                                        },
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${OWNER}",
                                                                "yes"
                                                            ],
                                                            "false": {
                                                                "actionName": {
                                                                    "actionType": "updateData",
                                                                    "key": "${OWNER}",
                                                                    "value": "yes"
                                                                },
                                                                "borderColor": "primary",
                                                                "component": "button",
                                                                "label": "Yes",
                                                                "large": false,
                                                                "type": "outlined"
                                                            },
                                                            "true": {
                                                                "actionName": {
                                                                    "actionType": "updateData",
                                                                    "key": "${OWNER}",
                                                                    "value": "yes"
                                                                },
                                                                "component": "button",
                                                                "label": "Yes",
                                                                "large": false,
                                                                "type": "filled"
                                                            }
                                                        },
                                                        {
                                                            "condition": [
                                                                "equalsTo",
                                                                "${OWNER}",
                                                                "no"
                                                            ],
                                                            "false": {
                                                                "actionName": {
                                                                    "actionType": "updateData",
                                                                    "key": "${OWNER}",
                                                                    "value": "no"
                                                                },
                                                                "borderColor": "primary",
                                                                "component": "button",
                                                                "label": "No",
                                                                "large": false,
                                                                "type": "outlined"
                                                            },
                                                            "true": {
                                                                "actionName": {
                                                                    "actionType": "updateData",
                                                                    "key": "${OWNER}",
                                                                    "value": "no"
                                                                },
                                                                "component": "button",
                                                                "label": "No",
                                                                "large": false,
                                                                "type": "filled"
                                                            }
                                                        }
                                                    ],
                                                    "component": "row",
                                                    "flexibleChildren": false,
                                                    "full": true,
                                                    "runSpacing": 12,
                                                    "spacing": 12,
                                                    "wrap": true
                                                }
                                            }
                                        ],
                                        "nextButton": {
                                            "onNext": [
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SERVICE_PROVIDER}",
                                                        "OTH"
                                                    ],
                                                    "false": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "application_id": "${APPLICATION_ID}",
                                                            "customer_id": "${CUSTOMER_ID}",
                                                            "district": "${DISTRICT}",
                                                            "mobile_number": "${REG_MOBILE_NUMBER}",
                                                            "monthly_bill_amount": "${MONTHLY_BILL_AMOUNT}",
                                                            "owner": "${OWNER}",
                                                            "provider": "${SERVICE_PROVIDER}"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ],
                                                            "FAIL": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "path": "/auto-reject"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/electricity-bill",
                                                        "stateKey": "${electricityResponse}"
                                                    },
                                                    "true": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "application_id": "${APPLICATION_ID}",
                                                            "customer_id": "${CUSTOMER_ID}",
                                                            "electricity_bill_photo": "${ELECTRICITY_BILL_PHOTO_PATH}",
                                                            "monthly_bill_amount": "${MONTHLY_BILL_AMOUNT}",
                                                            "oth_provider": "${SERVICE_PROVIDER_NAME}",
                                                            "provider": "${SERVICE_PROVIDER}"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ],
                                                            "FAIL": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "path": "/auto-reject"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/electricity-bill",
                                                        "stateKey": "${electricityResponse}"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "notEqualsTo",
                                                        "${ELECTRICITY_BILL_PHOTO_PATH}",
                                                        null
                                                    ],
                                                    "true": {
                                                        "actionType": "apiCall",
                                                        "customHeaders": {
                                                            "Authorization": "Bearer ${AUTH_TOKEN}"
                                                        },
                                                        "data": {
                                                            "application_id": "${APPLICATION_ID}",
                                                            "electricity_bill_photo": "${ELECTRICITY_BILL_PHOTO_PATH}",
                                                            "owner": "${OWNER}"
                                                        },
                                                        "errorHandling": {
                                                            "CF401": [
                                                                {
                                                                    "actionType": "navigate",
                                                                    "navigationType": "go",
                                                                    "pageUrl": "/onboarding/invalid-auth"
                                                                },
                                                                {
                                                                    "actionType": "refresh"
                                                                }
                                                            ]
                                                        },
                                                        "path": "/upload-solar-docs",
                                                        "stateKey": "${saveResponse}"
                                                    }
                                                }
                                            ]
                                        },
                                        "pageSubTitle": "Please provide your Electricity Bill",
                                        "pageTitle": "Electricity Bill",
                                        "previousButton": {
                                            "enabled": "${NEW_APPLICATION}",
                                            "onPrevious": [
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${DISTRICT}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${SERVICE_PROVIDER_NAME}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${SERVICE_PROVIDER}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${MONTHLY_BILL_AMOUNT}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${CUSTOMER_ID}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "fields": [
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${BORROWER_PHOTO_PATH}",
                                                "label": "Borrower Photo",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "borrower_photo",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            },
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${WORK_PLACE_PHOTO_PATH}",
                                                "label": "Work place (MSME unit) Photo",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "work_place_photo",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            },
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${ROOF_PHOTO_PATH}",
                                                "label": "Terrace/ Roof ",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "roof_photo",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            },
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${HOME_ENTRANCE_PHOTO_PATH}",
                                                "label": "Home Entrance",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "home_entrance_photo",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            },
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${ENTIRE_HOUSE_PHOTO_PATH}",
                                                "label": "Entire House from a distance ",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "entire_house_photo",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            },
                                            {
                                                "allowMultiple": false,
                                                "component": "imagePicker",
                                                "folderPath": "${APPLICATION_ID}",
                                                "imagePath": "${OTHER_DOC_PHOTO_PATH}",
                                                "imageTaggingKey": "${DOCUMENT_NAME}",
                                                "imageTaggingLabel": "Add Document Name",
                                                "imageTaggingTextFieldLabel": "Document Name",
                                                "label": "Others",
                                                "localPreview": true,
                                                "maxUploadSize": 18409,
                                                "public": true,
                                                "signedUrlApi": {
                                                    "contentTypeKey": "${CONTENT_TYPE}",
                                                    "data": {
                                                        "action": "getUploadSignedURL",
                                                        "s3_file_name": "other_document",
                                                        "workflow": "file"
                                                    },
                                                    "filePathKey": "${FILE_PATH}",
                                                    "path": "/upload-presigned-url",
                                                    "resultUrlKey": "${data.url}"
                                                }
                                            }
                                        ],
                                        "nextButton": {
                                            "onNext": [
                                                {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "borrower_photo": "${BORROWER_PHOTO_PATH}",
                                                        "entire_house_photo": "${ENTIRE_HOUSE_PHOTO_PATH}",
                                                        "home_entrance_photo": "${HOME_ENTRANCE_PHOTO_PATH}",
                                                        "other_document": {
                                                            "path": "${OTHER_DOC_PHOTO_PATH}",
                                                            "tag": "${DOCUMENT_NAME}"
                                                        },
                                                        "roof_photo": "${ROOF_PHOTO_PATH}",
                                                        "work_place_photo": "${WORK_PLACE_PHOTO_PATH}"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/upload-solar-docs",
                                                    "stateKey": "${saveResponse}"
                                                }
                                            ]
                                        },
                                        "pageSubTitle": "Upload installation place photos",
                                        "pageTitle": "Upload Document"
                                    },
                                    {
                                        "fields": [
                                            {
                                                "component": "dropdown",
                                                "isRequired": true,
                                                "itemDisplayKey": "${value}",
                                                "itemValueKey": "${id}",
                                                "items": [
                                                    {
                                                        "id": 1,
                                                        "value": "On-grid"
                                                    },
                                                    {
                                                        "id": 2,
                                                        "value": "Off-grid"
                                                    },
                                                    {
                                                        "id": 3,
                                                        "value": "Hybrid"
                                                    }
                                                ],
                                                "label": "Solar Power system",
                                                "value": "${SOLAR_POWER_SYSTEM}"
                                            },
                                            {
                                                "component": "dropdown",
                                                "isRequired": true,
                                                "itemDisplayKey": "${value}",
                                                "itemValueKey": "${id}",
                                                "items": [
                                                    {
                                                        "id": 1,
                                                        "value": "Residential"
                                                    },
                                                    {
                                                        "id": 2,
                                                        "value": "Bharat MSME"
                                                    },
                                                    {
                                                        "id": 3,
                                                        "value": "Urban C&I MSME (Factories, Hospitals, Hotels, Offices, etc)"
                                                    },
                                                    {
                                                        "id": 4,
                                                        "value": "Housing Society"
                                                    }
                                                ],
                                                "label": "Solar For",
                                                "value": "${SOLAR_TYPE}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SOLAR_TYPE}",
                                                    2
                                                ],
                                                "true": {
                                                    "component": "dropdown",
                                                    "isRequired": true,
                                                    "items": [
                                                        "Aatta Chakki",
                                                        "Oil Expeller",
                                                        "Others"
                                                    ],
                                                    "label": "Sub-category for Solar",
                                                    "value": "${sub_category_solar}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SOLAR_TYPE}",
                                                    1
                                                ],
                                                "true": {
                                                    "component": "dropdown",
                                                    "isRequired": true,
                                                    "items": [
                                                        "Village cluster project",
                                                        "Subsidy prepayment",
                                                        "Others"
                                                    ],
                                                    "label": "Sub-category for Solar",
                                                    "value": "${sub_category_solar}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${SOLAR_TYPE}",
                                                    3
                                                ],
                                                "true": {
                                                    "component": "dropdown",
                                                    "isRequired": true,
                                                    "items": [
                                                        "School and University",
                                                        "Petrol Pump",
                                                        "Hotels and Restaurants",
                                                        "Cold Storage",
                                                        "Factories",
                                                        "Offices",
                                                        "Hospitals",
                                                        "Others"
                                                    ],
                                                    "label": "Sub-category for Solar",
                                                    "value": "${sub_category_solar}"
                                                }
                                            },
                                            {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "KW installation",
                                                "validationRegex": "^(\\d+(\\.\\d*)?|\\.\\d+)$",
                                                "value": "${KW_INSTALLATION}"
                                            },
                                            {
                                                "component": "textField",
                                                "isRequired": true,
                                                "label": "Subsidy Amount",
                                                "value": "${SUBSIDY_AMOUNT}",
                                                "valueType": "int"
                                            },
                                            {
                                                "apiForItems": {
                                                    "actionType": "apiCall",
                                                    "data": {},
                                                    "innerKey": "${data.service}",
                                                    "path": "/get-inverters-list"
                                                },
                                                "component": "dropdown",
                                                "isRequired": true,
                                                "itemDisplayKey": "${name}",
                                                "itemValueKey": "${name}",
                                                "label": "Inverter to be Installed",
                                                "value": "${LIST_INVERTER}"
                                            },
                                            {
                                                "apiForItems": {
                                                    "actionType": "apiCall",
                                                    "data": {
                                                        "panel": 1
                                                    },
                                                    "innerKey": "${data.service}",
                                                    "path": "/get-inverters-list"
                                                },
                                                "component": "dropdown",
                                                "isRequired": true,
                                                "itemDisplayKey": "${name}",
                                                "itemValueKey": "${name}",
                                                "label": "Panel to be Installed (Brand)",
                                                "value": "${LIST_PANEL}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${LIST_INVERTER}",
                                                    "Other"
                                                ],
                                                "true": {
                                                    "component": "textField",
                                                    "isRequired": true,
                                                    "label": "Other Inverter",
                                                    "value": "${OTHER_INVERTER}"
                                                }
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${LIST_PANEL}",
                                                    "Other"
                                                ],
                                                "true": {
                                                    "component": "textField",
                                                    "isRequired": true,
                                                    "label": "Other Panel",
                                                    "value": "${OTHER_PANEL}"
                                                }
                                            }
                                        ],
                                        "nextButton": {
                                            "onNext": [
                                                {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "inverter_to_be_installed": "${LIST_INVERTER}",
                                                        "kw_installation": "${KW_INSTALLATION}",
                                                        "loan_amount": "${LOAN_AMOUNT}",
                                                        "other_inverter": "${OTHER_INVERTER}",
                                                        "other_panel": "${OTHER_PANEL}",
                                                        "panel_to_be_installed": "${LIST_PANEL}",
                                                        "project": "${SOLAR_TYPE}",
                                                        "project_sub_category": "${sub_category_solar}",
                                                        "solar_power_type": "${SOLAR_POWER_SYSTEM}",
                                                        "subsidy_amount": "${SUBSIDY_AMOUNT}"
                                                    },
                                                    "errorHandling": {
                                                        "CF301": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageArgs": {
                                                                    "AUTH_TOKEN": "${AUTH_TOKEN}",
                                                                    "application_id": "${APPLICATION_ID}"
                                                                },
                                                                "pageUrl": "/onboarding/bank-statement"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ],
                                                        "CF302": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageArgs": {
                                                                    "application_id": "${APPLICATION_ID}",
                                                                    "source": "${source}"
                                                                },
                                                                "pageUrl": "/onboarding/auto-reject"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ],
                                                        "CF303": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageArgs": {
                                                                    "application_id": "${APPLICATION_ID}"
                                                                },
                                                                "pageUrl": "/onboarding/bureau-failure"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ],
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/product-details",
                                                    "stateKey": "${productDetailsResponse}"
                                                }
                                            ]
                                        },
                                        "pageSubTitle": "Provide Product Details.",
                                        "pageTitle": "Product Details",
                                        "previousButton": {
                                            "enabled": "${NEW_APPLICATION}",
                                            "onPrevious": [
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${SOLAR_POWER_SYSTEM}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${SOLAR_TYPE}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${KW_INSTALLATION}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${LIST_INVERTER}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${LIST_PANEL}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${OTHER_INVERTER}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                },
                                                {
                                                    "actionName": {
                                                        "actionType": "updateData",
                                                        "key": "${OTHER_PANEL}",
                                                        "keyInRoot": true,
                                                        "value": null
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                ],
                                "sectionIcon": "solar_power_rounded",
                                "sectionName": "Product Details"
                            }
                        },
                        {
                            "pageSubTitle": "Select the plans available.",
                            "pageTitle": "Plan Details",
                            "pages": [
                                {
                                    "fields": [
                                        {
                                            "children": [
                                                {
                                                    "assetPath": "assets/MoneyBag.png",
                                                    "component": "image",
                                                    "height": 250,
                                                    "width": 250
                                                },
                                                {
                                                    "color": "primary",
                                                    "component": "text",
                                                    "full": true,
                                                    "size": 26,
                                                    "text": "Congratulations, you're approved for loan",
                                                    "weight": 800
                                                }
                                            ],
                                            "component": "column",
                                            "crossAxisAlignment": "center",
                                            "full": true
                                        }
                                    ],
                                    "nextButton": {
                                        "label": "Go to Offers",
                                        "onNext": [
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${productDetailsResponse}",
                                                    null
                                                ],
                                                "true": {
                                                    "actionType": "apiCall",
                                                    "customHeaders": {
                                                        "Authorization": "Bearer ${AUTH_TOKEN}"
                                                    },
                                                    "data": {
                                                        "application_id": "${APPLICATION_ID}"
                                                    },
                                                    "errorHandling": {
                                                        "CF401": [
                                                            {
                                                                "actionType": "navigate",
                                                                "navigationType": "go",
                                                                "pageUrl": "/onboarding/invalid-auth"
                                                            },
                                                            {
                                                                "actionType": "refresh"
                                                            }
                                                        ]
                                                    },
                                                    "path": "/get-available-offers",
                                                    "stateKey": "${productDetailsResponse}"
                                                }
                                            }
                                        ]
                                    },
                                    "pageSubTitle": " ",
                                    "pageTitle": " ",
                                    "previousButton": {
                                        "enabled": false,
                                        "onPrevious": []
                                    }
                                },
                                {
                                    "fields": [
                                        {
                                            "allowMultipleSelectRow": false,
                                            "canSelectRow": true,
                                            "columns": [
                                                {
                                                    "flex": 2,
                                                    "key": "tenure",
                                                    "title": "Tenure"
                                                },
                                                {
                                                    "flex": 2,
                                                    "key": "emi",
                                                    "title": "EMI AMOUNT"
                                                },
                                                {
                                                    "flex": 2,
                                                    "key": "interest_rate",
                                                    "title": "Interest"
                                                },
                                                {
                                                    "flex": 3,
                                                    "key": "total",
                                                    "title": "Total Amount"
                                                }
                                            ],
                                            "component": "table",
                                            "data": "${productDetailsResponse.data}",
                                            "full": true,
                                            "onSelectRow": [
                                                {
                                                    "actionType": "updateData",
                                                    "key": "${SELECTED_OFFER_ID}",
                                                    "keyInRoot": true,
                                                    "value": "${SELECTED_OFFER.offer_id}"
                                                }
                                            ],
                                            "selectedRowKey": "${SELECTED_OFFER}"
                                        }
                                    ],
                                    "nextButton": {
                                        "enabled": {
                                            "condition": [
                                                "isNotNull",
                                                "${SELECTED_OFFER_ID}"
                                            ],
                                            "false": false,
                                            "true": true
                                        },
                                        "label": "Click to Proceed",
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "application_id": "${APPLICATION_ID}",
                                                    "offer_id": "${SELECTED_OFFER_ID}",
                                                    "source": "no_touch"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "/v1/loan_offer_update/",
                                                "stateKey": "${saveResponse}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${saveResponse.message}",
                                                    "Loan offer updated"
                                                ],
                                                "true": {
                                                    "actionType": "navigate",
                                                    "navigationType": "go",
                                                    "pageArgs": {
                                                        "application_id": "${APPLICATION_ID}",
                                                        "source": "${source}"
                                                    },
                                                    "pageUrl": "/onboarding/final-success"
                                                }
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "You are purchasing a product with Creditfair's easy EMI payment options.",
                                    "pageTitle": "Congratulations, ${FIRST_NAME} !"
                                },
                                {
                                    "fields": [
                                        {
                                            "children": [
                                                {
                                                    "color": "onSurface",
                                                    "component": "text",
                                                    "size": 24,
                                                    "text": "Hey, ${FIRST_NAME} ",
                                                    "weight": 700
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 8
                                                },
                                                {
                                                    "color": "outlineVariant",
                                                    "component": "text",
                                                    "maxLines": 2,
                                                    "size": 15,
                                                    "text": "You are purchasing a product with Creditfair's easy EMI payment options",
                                                    "weight": 500
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 16
                                                },
                                                {
                                                    "color": "primaryContainer",
                                                    "component": "smallCard",
                                                    "line1": {
                                                        "color": "onPrimaryContainer",
                                                        "component": "text",
                                                        "size": 16,
                                                        "text": "Product: ${SELECTED_OFFER.product}",
                                                        "weight": 600
                                                    },
                                                    "line2": {
                                                        "color": "onSurface",
                                                        "component": "text",
                                                        "size": 15,
                                                        "text": "Tenure: ${SELECTED_OFFER.tenure} Months",
                                                        "weight": 400
                                                    },
                                                    "line3": {
                                                        "collapsible": false,
                                                        "color": "onPrimaryContainer",
                                                        "component": "text",
                                                        "size": 16,
                                                        "text": "Loan Amount: \u20b9 ${LOAN_AMOUNT}",
                                                        "weight": 600
                                                    }
                                                }
                                            ],
                                            "component": "column",
                                            "spacing": 0
                                        },
                                        {
                                            "children": [
                                                {
                                                    "color": "onSurface",
                                                    "component": "text",
                                                    "size": 15,
                                                    "text": "Selected EMI with transaction details",
                                                    "weight": 500
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 8
                                                },
                                                {
                                                    "color": "primaryContainer",
                                                    "component": "smallCard",
                                                    "line1": {
                                                        "color": "onPrimaryContainer",
                                                        "component": "text",
                                                        "size": 16,
                                                        "text": "${SELECTED_OFFER.tenure} Months",
                                                        "weight": 600
                                                    },
                                                    "line2": {
                                                        "color": "onSurface",
                                                        "component": "text",
                                                        "size": 15,
                                                        "text": "EMI Amount: \u20b9${SELECTED_OFFER.emi}",
                                                        "weight": 400
                                                    },
                                                    "line3": {
                                                        "collapsible": false,
                                                        "color": "onSurface",
                                                        "component": "text",
                                                        "size": 15,
                                                        "text": "${SELECTED_OFFER.interest_rate}% Interest",
                                                        "weight": 400
                                                    },
                                                    "line4": {
                                                        "color": "onPrimaryContainer",
                                                        "component": "text",
                                                        "size": 16,
                                                        "text": "Total Amount: \u20b9${SELECTED_OFFER.total}",
                                                        "weight": 600
                                                    }
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 16
                                                },
                                                {
                                                    "children": [
                                                        {
                                                            "color": "onSurface",
                                                            "component": "text",
                                                            "size": 15,
                                                            "text": "Processing fee",
                                                            "weight": 400
                                                        },
                                                        {
                                                            "color": "onSurface",
                                                            "component": "text",
                                                            "size": 15,
                                                            "text": "\u20b9${SELECTED_OFFER.processing_fee}",
                                                            "weight": 400
                                                        }
                                                    ],
                                                    "component": "row",
                                                    "mainAxisAlignment": "spaceBetween",
                                                    "wrap": false
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 8
                                                },
                                                {
                                                    "children": [
                                                        {
                                                            "color": "onSurface",
                                                            "component": "text",
                                                            "size": 15,
                                                            "text": "Down payment",
                                                            "weight": 400
                                                        },
                                                        {
                                                            "color": "onSurface",
                                                            "component": "text",
                                                            "size": 15,
                                                            "text": "\u20b9${SELECTED_OFFER.up_front_from_customer}",
                                                            "weight": 400
                                                        }
                                                    ],
                                                    "component": "row",
                                                    "mainAxisAlignment": "spaceBetween",
                                                    "wrap": false
                                                },
                                                {
                                                    "component": "spacing",
                                                    "height": 12
                                                },
                                                {
                                                    "color": "outline",
                                                    "component": "text",
                                                    "maxLines": 5,
                                                    "size": 15,
                                                    "text": "D Note: We will send you payment instructions via SMS,Email or whatsapp two days before the EMI date",
                                                    "weight": 400
                                                }
                                            ],
                                            "component": "column",
                                            "spacing": 0
                                        }
                                    ],
                                    "hideMainTitleAndSubtitle": true,
                                    "hideSidebar": true,
                                    "nextButton": {
                                        "enabled": true,
                                        "label": "Click to submit",
                                        "onNext": [
                                            {
                                                "actionType": "navigate",
                                                "navigationType": "go",
                                                "pageArgs": {
                                                    "AUTH_TOKEN": "${AUTH_TOKEN}",
                                                    "application_id": "${APPLICATION_ID}"
                                                },
                                                "pageUrl": "/onboarding/payment"
                                            }
                                        ]
                                    },
                                    "previousButton": {
                                        "enabled": "${NEW_APPLICATION}",
                                        "onPrevious": []
                                    }
                                },
                                {
                                    "fields": [
                                        {
                                            "children": [
                                                {
                                                    "assetPath": "assets/thankYou.png",
                                                    "component": "image",
                                                    "height": 250,
                                                    "width": 250
                                                },
                                                {
                                                    "color": "primary",
                                                    "component": "text",
                                                    "full": true,
                                                    "size": 26,
                                                    "text": "Payment successful.",
                                                    "weight": 800
                                                }
                                            ],
                                            "component": "column",
                                            "crossAxisAlignment": "center",
                                            "full": true
                                        }
                                    ],
                                    "hideMainTitleAndSubtitle": true,
                                    "hideSidebar": true,
                                    "nextButton": {
                                        "label": "Continue",
                                        "onNext": [
                                            {
                                                "actionType": "updateData",
                                                "key": "${paymentFail}",
                                                "value": "False"
                                            },
                                            {
                                                "actionType": "navigate",
                                                "navigationType": "go",
                                                "pageArgs": {
                                                    "application_id": "${APPLICATION_ID}",
                                                    "source": "${source}"
                                                },
                                                "pageUrl": "/onboarding/final-success"
                                            }
                                        ]
                                    },
                                    "pageSubTitle": " ",
                                    "pageTitle": " "
                                },
                                {
                                    "condition": [
                                        "equalsTo",
                                        "${paymentFail}",
                                        "True"
                                    ],
                                    "true": {
                                        "fields": [
                                            {
                                                "children": [
                                                    {
                                                        "assetPath": "assets/auto-reject.png",
                                                        "component": "image",
                                                        "height": 250,
                                                        "width": 250
                                                    },
                                                    {
                                                        "color": "primary",
                                                        "component": "text",
                                                        "full": true,
                                                        "size": 26,
                                                        "text": "Payment Failed.",
                                                        "weight": 800
                                                    }
                                                ],
                                                "component": "column",
                                                "crossAxisAlignment": "center",
                                                "full": true
                                            }
                                        ],
                                        "hideMainTitleAndSubtitle": true,
                                        "hideSidebar": true,
                                        "nextButton": {
                                            "label": "Retry",
                                            "onNext": [
                                                {
                                                    "actionType": "navigate",
                                                    "navigationType": "go",
                                                    "pageArgs": {
                                                        "AUTH_TOKEN": "${AUTH_TOKEN}",
                                                        "application_id": "${APPLICATION_ID}"
                                                    },
                                                    "pageUrl": "/onboarding/payment"
                                                }
                                            ]
                                        },
                                        "pageSubTitle": " ",
                                        "pageTitle": " "
                                    }
                                },
                                {
                                    "fields": [
                                        {
                                            "color": "onSurface",
                                            "component": "text",
                                            "full": true,
                                            "size": 16,
                                            "text": "Reference 1",
                                            "weight": 700
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Reference Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${FIRST_REFERENCE_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Mobile Number",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${FIRST_REFERENCE_MOBILE}"
                                        },
                                        {
                                            "color": "primary",
                                            "component": "text",
                                            "full": true,
                                            "size": 14,
                                            "text": "Relationship*",
                                            "weight": 500
                                        },
                                        {
                                            "children": [
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF1_RELATION}",
                                                        "Father"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Father"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Father",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Father"
                                                        },
                                                        "component": "button",
                                                        "label": "Father",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF1_RELATION}",
                                                        "Mother"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Mother"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Mother",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Mother"
                                                        },
                                                        "component": "button",
                                                        "label": "Mother",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF1_RELATION}",
                                                        "Brother"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Brother"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Brother",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Brother"
                                                        },
                                                        "component": "button",
                                                        "label": "Brother",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF1_RELATION}",
                                                        "Sister"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Sister"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Sister",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Sister"
                                                        },
                                                        "component": "button",
                                                        "label": "Sister",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF1_RELATION}",
                                                        "Other"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Other"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Other",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF1_RELATION}",
                                                            "value": "Other"
                                                        },
                                                        "component": "button",
                                                        "label": "Other",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": false,
                                            "full": true,
                                            "runSpacing": 12,
                                            "spacing": 12,
                                            "wrap": true
                                        },
                                        {
                                            "color": "onSurface",
                                            "component": "text",
                                            "full": true,
                                            "size": 16,
                                            "text": "Reference 2",
                                            "weight": 700
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Reference Name",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${SECOND_REFERENCE_NAME}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Mobile Number",
                                            "validationRegex": "^[A-Za-z\\s'-]+$",
                                            "value": "${SECOND_REFERENCE_MOBILE}"
                                        },
                                        {
                                            "color": "primary",
                                            "component": "text",
                                            "full": true,
                                            "size": 14,
                                            "text": "Relationship*",
                                            "weight": 500
                                        },
                                        {
                                            "children": [
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF2_RELATION}",
                                                        "Father"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Father"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Father",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Father"
                                                        },
                                                        "component": "button",
                                                        "label": "Father",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF2_RELATION}",
                                                        "Mother"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Mother"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Mother",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Mother"
                                                        },
                                                        "component": "button",
                                                        "label": "Mother",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF2_RELATION}",
                                                        "Brother"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Brother"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Brother",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Brother"
                                                        },
                                                        "component": "button",
                                                        "label": "Brother",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF2_RELATION}",
                                                        "Sister"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Sister"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Sister",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Sister"
                                                        },
                                                        "component": "button",
                                                        "label": "Sister",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                },
                                                {
                                                    "condition": [
                                                        "equalsTo",
                                                        "${SELECTED_REF2_RELATION}",
                                                        "Other"
                                                    ],
                                                    "false": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Other"
                                                        },
                                                        "borderColor": "primary",
                                                        "component": "button",
                                                        "label": "Other",
                                                        "large": false,
                                                        "type": "outlined"
                                                    },
                                                    "true": {
                                                        "actionName": {
                                                            "actionType": "updateData",
                                                            "key": "${SELECTED_REF2_RELATION}",
                                                            "value": "Other"
                                                        },
                                                        "component": "button",
                                                        "label": "Other",
                                                        "large": false,
                                                        "type": "filled"
                                                    }
                                                }
                                            ],
                                            "component": "row",
                                            "flexibleChildren": false,
                                            "full": true,
                                            "runSpacing": 12,
                                            "spacing": 12,
                                            "wrap": true
                                        }
                                    ],
                                    "nextButton": {
                                        "label": "Submit",
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "application_id": "${APPLICATION_ID}",
                                                    "references": [
                                                        {
                                                            "name": "${FIRST_REFERENCE_NAME}",
                                                            "phone_number": "${FIRST_REFERENCE_MOBILE}",
                                                            "relationship": "${SELECTED_REF1_RELATION}"
                                                        },
                                                        {
                                                            "name": "${SECOND_REFERENCE_NAME}",
                                                            "phone_number": "${SECOND_REFERENCE_MOBILE}",
                                                            "relationship": "${SELECTED_REF2_RELATION}"
                                                        }
                                                    ]
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "v1/references-update/",
                                                "stateKey": "${referenceResponse}"
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "Please provide personal details",
                                    "pageTitle": "Reference Details"
                                },
                                {
                                    "fields": [
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "Account Number",
                                            "validationRegex": "^\\d+$",
                                            "value": "${BANK_ACCOUNT_NUMBER}"
                                        },
                                        {
                                            "component": "textField",
                                            "isRequired": true,
                                            "label": "IFSC Code",
                                            "onChangedAction": [
                                                {
                                                    "actionType": "apiCall",
                                                    "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                    "data": {
                                                        "ifsc_code": "${BANK_IFSC_CODE}"
                                                    },
                                                    "path": "/v1/ifsc-details/",
                                                    "stateKey": "${ifscResponse}"
                                                },
                                                {
                                                    "actionType": "updateData",
                                                    "key": "${BANK_NAME}",
                                                    "value": "${ifscResponse.data.bank}"
                                                },
                                                {
                                                    "actionType": "updateData",
                                                    "key": "${BRANCH_NAME}",
                                                    "value": "${ifscResponse.data.branch}"
                                                }
                                            ],
                                            "validationRegex": "^[A-Z]{4}0[A-Z0-9]{6}$",
                                            "value": "${BANK_IFSC_CODE}"
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${BANK_NAME}"
                                            ],
                                            "true": {
                                                "component": "text",
                                                "text": "Bank : ${BANK_NAME}"
                                            }
                                        },
                                        {
                                            "condition": [
                                                "isNotNull",
                                                "${BRANCH_NAME}"
                                            ],
                                            "true": {
                                                "component": "text",
                                                "text": "Branch : ${BRANCH_NAME}"
                                            }
                                        }
                                    ],
                                    "hideSidebar": true,
                                    "listKey": "${RELATION_MAPING}",
                                    "nextButton": {
                                        "label": "Proceed For Mandate",
                                        "onNext": [
                                            {
                                                "actionType": "apiCall",
                                                "baseUrl": "https://checkoutapi-uat.creditfair.in",
                                                "customHeaders": {
                                                    "Authorization": "Bearer ${AUTH_TOKEN}"
                                                },
                                                "data": {
                                                    "account_number": "${BANK_ACCOUNT_NUMBER}",
                                                    "application_id": "${APPLICATION_ID}",
                                                    "bank_name": "${BANK_NAME}",
                                                    "branch_name": "${BRANCH_NAME}",
                                                    "ifsc_code": "${BANK_IFSC_CODE}",
                                                    "source": "no_touch"
                                                },
                                                "errorHandling": {
                                                    "CF401": [
                                                        {
                                                            "actionType": "navigate",
                                                            "navigationType": "go",
                                                            "pageUrl": "/onboarding/invalid-auth"
                                                        },
                                                        {
                                                            "actionType": "refresh"
                                                        }
                                                    ]
                                                },
                                                "path": "v1/bank-update/",
                                                "stateKey": "${bankResponse}"
                                            },
                                            {
                                                "condition": [
                                                    "equalsTo",
                                                    "${bankResponse.message}",
                                                    "success"
                                                ],
                                                "true": [
                                                    {
                                                        "actionType": "navigate",
                                                        "navigationType": "go",
                                                        "pageArgs": {
                                                            "application_id": "${APPLICATION_ID}",
                                                            "source": "${source}"
                                                        },
                                                        "pageUrl": "/onboarding/final-success"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    "pageSubTitle": "Provide your bank details",
                                    "pageTitle": "Bank Details"
                                }
                            ],
                            "sectionIcon": "monetization_outlined",
                            "sectionName": "Plan Details"
                        }
                    ]
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/auto-reject": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/auto-reject.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Sorry, we couldn't approve your application.",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "color": "secondary",
                    "component": "text",
                    "size": 16,
                    "text": "Please re-apply after 3 months.",
                    "weight": 500
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "component": "spacing",
                    "height": 200
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/bank-statement": {
            "actions": {
                "init": [
                    {
                        "actionType": "apiCall",
                        "data": {
                            "application_id": "${application_id}",
                            "type": "temporary"
                        },
                        "path": "/get-token",
                        "stateKey": "${tokenResponse}"
                    }
                ]
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/Receipt.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "component": "dropdown",
                    "isRequired": true,
                    "itemDisplayKey": "${value}",
                    "itemValueKey": "${id}",
                    "items": [
                        {
                            "id": 11,
                            "value": "AU Small Finance Bank"
                        },
                        {
                            "id": 9,
                            "value": "Bank of Baroda"
                        },
                        {
                            "id": 20,
                            "value": "Bank of India"
                        },
                        {
                            "id": 22,
                            "value": "Bank of Maharashtra"
                        },
                        {
                            "id": 23,
                            "value": "Central Bank"
                        },
                        {
                            "id": 24,
                            "value": "City Union Bank"
                        },
                        {
                            "id": 6,
                            "value": "Canara Bank"
                        },
                        {
                            "id": 14,
                            "value": "Federal Bank"
                        },
                        {
                            "id": 7,
                            "value": "Fincare Bank"
                        },
                        {
                            "id": 3,
                            "value": "HDFC Bank"
                        },
                        {
                            "id": 19,
                            "value": "Indian Bank"
                        },
                        {
                            "id": 1,
                            "value": "Indian Overseas Bank"
                        },
                        {
                            "id": 8,
                            "value": "Indusind Bank"
                        },
                        {
                            "id": 2,
                            "value": "Axis Bank"
                        },
                        {
                            "id": 13,
                            "value": "KVB"
                        },
                        {
                            "id": 25,
                            "value": "Kotak Mahindra Bank"
                        },
                        {
                            "id": 15,
                            "value": "Karnataka Bank"
                        },
                        {
                            "id": 16,
                            "value": "Punjab National Bank"
                        },
                        {
                            "id": 21,
                            "value": "Punjab & Sind Bank"
                        },
                        {
                            "id": 17,
                            "value": "SBI Bank"
                        },
                        {
                            "id": 18,
                            "value": "Union Bank of India"
                        },
                        {
                            "id": 12,
                            "value": "Uco Bank"
                        },
                        {
                            "id": 4,
                            "value": "ICICI Bank"
                        },
                        {
                            "id": 10,
                            "value": "IDFC First Bank"
                        },
                        {
                            "id": 5,
                            "value": "Yes Bank"
                        }
                    ],
                    "label": "Select Bank",
                    "value": "${BANK}",
                    "width": 380
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "spacing",
                        "height": 20
                    }
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "dropdown",
                        "isRequired": true,
                        "itemDisplayKey": "${value}",
                        "itemValueKey": "${id}",
                        "items": [
                            {
                                "id": "savings",
                                "value": "Savings"
                            },
                            {
                                "id": "current",
                                "value": "Current"
                            },
                            {
                                "id": "cc",
                                "value": "Cash Credit"
                            },
                            {
                                "id": "nre",
                                "value": "Savings - NRE"
                            },
                            {
                                "id": "nro",
                                "value": "Savings - NRO"
                            }
                        ],
                        "label": "Select Account Type",
                        "value": "${BANK_ACCOUNT_TYPE}",
                        "width": 380
                    }
                },
                {
                    "component": "spacing",
                    "height": 20
                },
                {
                    "actionName": [
                        {
                            "condition": [
                                "isNotNull",
                                "${BANK_ACCOUNT_TYPE}"
                            ],
                            "true": {
                                "actionType": "apiCall",
                                "customHeaders": {
                                    "Authorization": "Bearer ${tokenResponse.data.token}"
                                },
                                "data": {
                                    "application_id": "${application_id}",
                                    "bank_account_type": "${BANK_ACCOUNT_TYPE}"
                                },
                                "errorHandling": {
                                    "CF401": [
                                        {
                                            "actionType": "navigate",
                                            "navigationType": "go",
                                            "pageUrl": "/onboarding/invalid-auth"
                                        },
                                        {
                                            "actionType": "refresh"
                                        }
                                    ]
                                },
                                "path": "/update-application",
                                "stateKey": "${secondUpdateApplication}"
                            }
                        },
                        {
                            "actionType": "openUrl",
                            "url": "https://test3.creditfair.in/bank-statement?application_id=${application_id}&merchant_sse=6990",
                            "webOpeningBehaviour": "currentTab"
                        }
                    ],
                    "component": "button",
                    "label": "Fetch Bank Statement"
                },
                {
                    "component": "spacing",
                    "height": 20
                },
                {
                    "actionName": {
                        "actionType": "navigate",
                        "navigationType": "go",
                        "pageArgs": {
                            "AUTH_TOKEN": "${tokenResponse.data.token}",
                            "application_id": "${application_id}",
                            "merchant_sse": "${merchant_sse}"
                        },
                        "pageUrl": "/onboarding/upload-bank-statement"
                    },
                    "component": "button",
                    "label": "Or upload bank statement",
                    "padding": [
                        6,
                        1,
                        6,
                        0
                    ],
                    "type": "text"
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/bureau-failure": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/auto-reject.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Application Submitted",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "color": "secondary",
                    "component": "text",
                    "size": 16,
                    "text": "We couldn't fetch your bureau score. Our team will reach out to you within 24 hrs",
                    "weight": 500
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/existing-customer": {
      "actions": {
        "init": []
      },
      "bgColor": "circles",
      "body": [
        {
          "component": "progressForm",
          "mainHeading": {
            "assetPath": "assets/cfc_logo_full.png",
            "component": "image"
          },
          "mainSubTitle": "Let's get started",
          "mainTitle": "${MERCHANT_NAME}",
          "sections": [
            {
              "pageSubTitle": "Please validate the mobile number",
              "pageTitle": "Mobile Verification",
              "pages": [
                {
                  "condition": [
                    "equalsTo",
                    "${IS_EXISTING}",
                    1],
                  "false": {
                    "fields": [
                      {
                        "component": "textField",
                        "isRequired": true,
                        "label": "Mobile Number",
                        "full": true,
                        "validationRegex": "^^[0-9]\\d{9}$",
                        "value": "${MOBILE_NUMBER}"
                      }
                    ],
                    "nextButton": {
                      "label": "Submit",
                      "enabled": true,
                      "onNext": [
                        {
                          "actionType": "apiCall",
                          "data": {
                            "mobile_number": "${MOBILE_NUMBER}"
                          },
                          "path": "/otp",
                          "stateKey": "${otpResponse}"
                        },
                        {
                          "actionType": "updateData",
                          "key": "${mobile_number}",
                          "value": "${MOBILE_NUMBER}"
                        }
                      ]
                    },
                    "pageSubTitle": "Provide application details",
                    "pageTitle": "Application Details"
                  }
                },
                {
                  "pageSubTitle": "Please validate the mobile number",
                  "pageTitle": "Mobile Verification",
                  "fields": [
                    {
                      "component": "textField",
                      "enabled": false,
                      "full": true,
                      "isRequired": true,
                      "label": "Mobile Number",
                      "value": "${mobile_number}"
                    },
                    {
                      "component": "textField",
                      "full": true,
                      "isRequired": true,
                      "keyboardType": "number",
                      "label": "OTP",
                      "value": "${OTP}",
                      "valueType": "int"
                    },
                    {
                      "children": [
                        {
                          "color": "onSurface",
                          "component": "text",
                          "size": 15,
                          "text": "Didn't receive an OTP yet?",
                          "weight": 400
                        },
                        {
                          "actionName": [
                            {
                              "actionType": "apiCall",
                              "data": {
                                "mobile_number": "${mobile_number}"
                              },
                              "path": "/otp",
                              "stateKey": "${otpResponse}"
                            },
                            {
                              "actionType": "updateData",
                              "key": "${OTP}",
                              "value": ""
                            }
                          ],
                          "component": "button",
                          "label": "Resend OTP",
                          "type": "text"
                        }
                      ],
                      "component": "row",
                      "full": true
                    }
                  ],
                  "nextButton": {
                    "label": "Verify OTP",
                    "onNext": [
                      {
                        "actionType": "apiCall",
                        "data": {
                          "mobile_number": "${mobile_number}",
                          "otp": "${OTP}",
                          "consumer_app": 1
                        },
                        "path": "/verify-otp",
                        "stateKey": "${verifyOtpResponse}"
                      },
                      {
                        "condition": [
                          "platform",
                          "web"
                        ],
                        "true": [
                          {
                            "condition": [
                              "equalsTo",
                              "${verifyOtpResponse.message}",
                              "Existing Customer"
                            ],
                            "true": [
                              {
                                "actionType": "signIn",
                                "userId": "${mobile_number}",
                                "token": "Bearer ${verifyOtpResponse.data.token}"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "actionType": "updateData",
                        "key": "${AUTH_TOKEN}",
                        "value": "${verifyOtpResponse.data.token}"
                      },
                      {
                        "condition": [
                          "equalsTo",
                          "${mobile_number}",
                          "1437593750"
                        ],
                        "false": {
                          "actionType": "apiCall",
                          "data": {
                            "mobile_number": "${mobile_number}"
                          },
                          "customHeaders": {
                            "Authorization": "Bearer ${AUTH_TOKEN}"
                          },
                          "path": "/get-user-details",
                          "stateKey": "${userDetails}",
                          "errorHandling": {
                            "CF401": [
                              {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageUrl": "/onboarding/invalid-auth"
                              },
                              {
                                "actionType": "refresh"
                              }
                            ]
                          }
                        },
                        "true": [
                          {
                            "actionType": "navigate",
                            "navigationType": "pushReplacement",
                            "pageUrl": "/onboarding",
                            "pageArgs": {
                              "sectionIndex": 0,
                              "pageIndex": 2,
                              "IS_EXISTING": 0,
                              "NEW_APPLICATION": true,
                              "APPLICATION_ID": "${userDetails.data.application_id}",
                              "MERCHANT_ID": "${userDetails.data.merchant_id}",
                              "merchant_slug": "${merchant_slug}",
                              "center_slug": "${center_slug}",
                              "FIRST_NAME": "${userDetails.data.basic_details.first_name}",
                              "LAST_NAME": "${userDetails.data.basic_details.last_name}",
                              "EMAIL": "${userDetails.data.basic_details.email}",
                              "PINCODE": "${userDetails.data.basic_details.pincode}",
                              "ADDRESS_LINE_1": "${userDetails.data.basic_details.addr1}",
                              "ADDRESS_LINE_2": "${userDetails.data.basic_details.addr2}",
                              "ADDRESS_LINE_3": "${userDetails.data.basic_details.addr3}",
                              "ADDRESS_STATUS": "${userDetails.data.basic.details.address_status}",
                              "CITY": "${userDetails.data.basic_details.city}",
                              "STATE": "${userDetails.data.basic_details.state}",
                              "MOBILE_NUMBER": "1437593750",
                              "DATE_OF_BIRTH": "${userDetails.data.basic_details.dob}",
                              "PAN_NUMBER": "${userDetails.data.basic_details.pan_number}",
                              "CATEGORY_ID": "${userDetails.data.category_id}",
                              "GENDER": "${userDetails.data.basic_details.gender}",
                              "LOAN_AMOUNT": "${userDetails.data.basic_details.loan_amount}",
                              "AUTH_TOKEN": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MzMwNDg0MzEsImlkIjozODgsIm1vYmlsZV9udW1iZXIiOiIxNDM3NTkzNzUwIiwibmJmIjoxNzMzMDQ3ODMxLCJleHAiOjE3NjQ1ODQ1ODMsInRva2VuX3R5cGUiOiJ0ZW1wb3JhcnkifQ.3ZonpHQkmpoOi2LtKN1cEHkVjYl8bmr9O6VJPJD8Dcdw-9cmrklrm239T33zAw4MN7PF7XOqaI9D13_vE23eDA"
                            }
                          }
                        ]
                      },
                      {
                        "condition": [
                          "equalsTo",
                          "${userDetails.data.decision.status}",
                          false],
                        "true": {
                          "actionType": "navigate",
                          "navigationType": "pushReplacement",
                          "pageUrl": "/onboarding",
                          "pageArgs": {
                            "sectionIndex": "${userDetails.data.section}",
                            "pageIndex": "${userDetails.data.page}",
                            "IS_EXISTING": 1,
                            "NEW_APPLICATION": false,
                            "APPLICATION_ID": "${userDetails.data.application_id}",
                            "MERCHANT_ID": "${userDetails.data.merchant_id}",
                            "merchant_slug": "${merchant_slug}",
                            "center_slug": "${center_slug}",
                            "FIRST_NAME": "${userDetails.data.basic_details.first_name}",
                            "LAST_NAME": "${userDetails.data.basic_details.last_name}",
                            "EMAIL": "${userDetails.data.basic_details.email}",
                            "PINCODE": "${userDetails.data.basic_details.pincode}",
                            "ADDRESS_LINE_1": "${userDetails.data.basic_details.addr1}",
                            "ADDRESS_LINE_2": "${userDetails.data.basic_details.addr2}",
                            "ADDRESS_LINE_3": "${userDetails.data.basic_details.addr3}",
                            "ADDRESS_STATUS": "${userDetails.data.basic.details.address_status}",
                            "CITY": "${userDetails.data.basic_details.city}",
                            "STATE": "${userDetails.data.basic_details.state}",
                            "MOBILE_NUMBER": "${userDetails.data.basic_details.mobile_number}",
                            "DATE_OF_BIRTH": "${userDetails.data.basic_details.dob}",
                            "PAN_NUMBER": "${userDetails.data.basic_details.pan_number}",
                            "CATEGORY_ID": "${userDetails.data.category_id}",
                            "GENDER": "${userDetails.data.basic_details.gender}",
                            "LOAN_AMOUNT": "${userDetails.data.basic_details.loan_amount}",
                            "AUTH_TOKEN": "${AUTH_TOKEN}"
                          }
                        },
                        "false": [
                          {
                            "condition": [
                              "equalsTo",
                              "${userDetails.data.decision.value}",
                              "/onboarding/not-approved"
                            ],
                            "true": {
                              "actionType": "navigate",
                              "navigationType": "pushReplacement",
                              "pageUrl": "/onboarding/not-approved",
                              "pageArgs": {
                                "APPLICATION_ID": "${userDetails.data.application_id}"
                              }
                            }
                          },
                          {
                            "condition": [
                              "equalsTo",
                              "${userDetails.data.decision.value}",
                              "/onboarding/final-success"
                            ],
                            "true": {
                              "actionType": "navigate",
                              "navigationType": "pushReplacement",
                              "pageUrl": "/onboarding/final-success",
                              "pageArgs": {
                                "application_id": "${userDetails.data.application_id}"
                              }
                            }
                          },
                          {
                            "condition": [
                              "equalsTo",
                              "${userDetails.data.decision.value}",
                              "/onboarding/auto-reject"
                            ],
                            "true": {
                              "actionType": "navigate",
                              "navigationType": "pushReplacement",
                              "pageUrl": "/onboarding/auto-reject",
                              "pageArgs": {
                                "APPLICATION_ID": "${userDetails.data.application_id}"
                              }
                            }
                          },
                          {
                            "condition": [
                              "equalsTo",
                              "${userDetails.data.decision.value}",
                              "/onboarding/bank-statement"
                            ],
                            "true": {
                              "actionType": "navigate",
                              "navigationType": "pushReplacement",
                              "pageUrl": "/onboarding/bank-statement",
                              "pageArgs": {
                                "application_id": "${userDetails.data.application_id}",
                                "AUTH_TOKEN": "${AUTH_TOKEN}"
                              }
                            }
                          },
                          {
                            "condition": [
                              "equalsTo",
                              "${userDetails.data.decision.value}",
                              "/onboarding/bureau-failure"
                            ],
                            "true": {
                              "actionType": "navigate",
                              "navigationType": "pushReplacement",
                              "pageUrl": "/onboarding/bureau-failure",
                              "pageArgs": {
                                "application_id": "${userDetails.data.application_id}",
                                "AUTH_TOKEN": "${AUTH_TOKEN}"
                              }
                            }
                          }
                        ]
                      }
                    ]
                  },
                  "previousButton": {
                    "enabled": true,
                    "onPrevious": [
                      {
                        "actionType": "navigate",
                        "navigationType": "pushReplacement",
                        "pageUrl": "/onboarding/existing-customer",
                        "pageArgs": {
                          "MOBILE_NUMBER": "${mobile_number}"
                        }
                      }
                    ]
                  }
                }
              ],
              "sectionIcon": "call",
              "sectionName": "Mobile Verification"
            }
          ]
        }
      ],
      "bodySpacing": 16,
      "component": "page",
      "pageLayout": "cardWithBg"
        },
        "/onboarding/final-success": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/thankYou.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Thank You",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "color": "secondary",
                    "component": "text",
                    "size": 16,
                    "text": "Your application was successfully submitted",
                    "weight": 500
                },
                {
                    "component": "spacing",
                    "height": 24
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/invalid-auth": {
            "actions": {
                "init": [
                    {
                        "actionType": "showPopup",
                        "popup": {
                            "cancelButtonAction": [
                                {
                                    "actionType": "navigate",
                                    "navigationType": "go",
                                    "pageUrl": "/onboarding"
                                }
                            ],
                            "cancelButtonLabel": "Yes",
                            "title": "Session Expired. Click Yes to login again"
                        }
                    }
                ]
            },
            "bgColor": "circles",
            "body": [],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/loan-agreement": {
            "actions": {
                "init": [
                    {
                        "actionType": "apiCall",
                        "baseUrl": "https://checkoutapi-uat.creditfair.in",
                        "customHeaders": {
                            "Authorization": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MjQ2NjY2NzEsImlkIjoyMzM1NjEsIm5iZiI6MTcyNDY2NjA3MSwiZXhwIjoxNzI3NTg5NDY2LCJ0b2tlbl90eXBlIjoiYWNjZXNzIn0.y0TH0BRNPH2ZKYBoEVFHfSxqc5UjCvawWrymHC4rZXWli_F_JnRrP7SsxagBv4w-uG95F2mVnWMpg7k_S57aeg"
                        },
                        "data": {
                            "application_id": "2881"
                        },
                        "errorHandling": {
                            "CF401": [
                                {
                                    "actionType": "navigate",
                                    "navigationType": "go",
                                    "pageUrl": "/onboarding/invalid-auth"
                                },
                                {
                                    "actionType": "refresh"
                                }
                            ]
                        },
                        "innerKey": "${data}",
                        "path": "/v1/get-loan-summary/",
                        "stateKey": "${loanSummary}"
                    }
                ]
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 30
                },
                {
                    "assetPath": "assets/thankYou.png",
                    "component": "image",
                    "height": 250,
                    "width": 250
                },
                {
                    "component": "spacing",
                    "height": 20
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 30,
                    "text": "Loan Agreement Signing",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "color": "secondary",
                    "component": "text",
                    "size": 16,
                    "text": "Below are the application summary details, please click submit to sign the loan agreement",
                    "weight": 500
                },
                {
                    "component": "spacing",
                    "height": 30
                },
                {
                    "children": [
                        {
                            "color": "primaryContainer",
                            "component": "smallCard",
                            "line1": {
                                "color": "onPrimaryContainer",
                                "component": "text",
                                "size": 16,
                                "text": "Loan Details",
                                "weight": 600
                            },
                            "width": 400
                        },
                        {
                            "component": "spacing",
                            "height": 10
                        },
                        {
                            "color": "primaryContainer",
                            "component": "smallCard",
                            "line1": {
                                "collapsible": false,
                                "color": "onPrimaryContainer",
                                "component": "text",
                                "size": 16,
                                "text": "Loan Amount: \u20b9 ${loanSummary.offer.emi_summary.total}",
                                "weight": 300
                            },
                            "line2": {
                                "collapsible": false,
                                "color": "onPrimaryContainer",
                                "component": "text",
                                "size": 16,
                                "text": "Interest Rate: ${loanSummary.offer.emi_summary.interest_rate} %",
                                "weight": 300
                            },
                            "line3": {
                                "collapsible": false,
                                "color": "onPrimaryContainer",
                                "component": "text",
                                "size": 16,
                                "text": "EMI Amount: \u20b9 ${loanSummary.offer.emi_summary.emi}",
                                "weight": 300
                            },
                            "line4": {
                                "collapsible": false,
                                "color": "onPrimaryContainer",
                                "component": "text",
                                "size": 16,
                                "text": "Loan Tenure: ${loanSummary.offer.emi_summary.tenure} Months",
                                "weight": 300
                            },
                            "width": 400
                        },
                        {
                            "component": "spacing",
                            "height": 20
                        },
                        {
                            "actionName": {
                                "actionType": "apiCall",
                                "data": {
                                    "application_id": "",
                                    "click_time": "",
                                    "load_time": ""
                                },
                                "path": "/sign-agreement",
                                "stateKey": "${agreementResponse}"
                            },
                            "color": "primary",
                            "component": "button",
                            "full": false,
                            "label": "Click to sign the loan agreement"
                        }
                    ],
                    "component": "column",
                    "crossAxisAlignment": "center",
                    "full": false,
                    "mainAxisAlignment": "center",
                    "spacing": 0
                },
                {
                    "component": "spacing",
                    "height": 30
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/not-approved": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/thankYou.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Application Submitted",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "false": {
                        "color": "secondary",
                        "component": "text",
                        "size": 16,
                        "text": "Application submitted. Our team will reach out to you within 24 hrs",
                        "weight": 500
                    },
                    "true": {
                        "color": "secondary",
                        "component": "text",
                        "size": 16,
                        "text": "Application submitted and under review",
                        "weight": 500
                    }
                },
                {
                    "component": "spacing",
                    "height": 24
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/payment": {
            "actions": {
                "init": [
                    {
                        "actionType": "apiCall",
                        "baseUrl": "https://checkoutapi-uat.creditfair.in",
                        "customHeaders": {
                            "Authorization": "Bearer ${AUTH_TOKEN}"
                        },
                        "data": {
                            "application_id": "${application_id}",
                            "redirect_url": "https://test10.creditfair.in/onboarding?application=${application_id}",
                            "source": "no_touch"
                        },
                        "errorHandling": {
                            "CF401": [
                                {
                                    "actionType": "navigate",
                                    "navigationType": "go",
                                    "pageUrl": "/onboarding/invalid-auth"
                                },
                                {
                                    "actionType": "refresh"
                                }
                            ]
                        },
                        "path": "/v1/generate-payment-link/",
                        "stateKey": "${paymentLink}"
                    },
                    {
                        "condition": [
                            "isNull",
                            "${paymentLink.data.payment_link}"
                        ],
                        "false": {
                            "actionType": "openUrl",
                            "url": "${paymentLink.data.payment_link}",
                            "webOpeningBehaviour": "currentTab"
                        },
                        "true": {
                            "actionType": "navigate",
                            "navigationType": "go",
                            "pageArgs": {
                                "application_id": "${application_id}"
                            },
                            "pageUrl": "/onboarding/final-success"
                        }
                    }
                ]
            },
            "body": [],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/success": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/thankYou.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Thankyou",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 8
                },
                {
                    "color": "secondary",
                    "component": "text",
                    "size": 16,
                    "text": "Your application was successfully submitted.",
                    "weight": 500
                },
                {
                    "component": "spacing",
                    "height": 24
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/upload-bank-statement": {
            "actions": {
                "init": []
            },
            "bgColor": "circles",
            "body": [
                {
                    "component": "spacing",
                    "height": 60
                },
                {
                    "assetPath": "assets/UploadDocuments.png",
                    "component": "image",
                    "height": 150,
                    "width": 150
                },
                {
                    "component": "spacing",
                    "height": 40
                },
                {
                    "component": "spacing",
                    "height": 24
                },
                {
                    "color": "primary",
                    "component": "text",
                    "size": 26,
                    "text": "Upload Bank Statement",
                    "weight": 800
                },
                {
                    "component": "spacing",
                    "height": 32
                },
                {
                    "allowMultiple": false,
                    "allowedExtensions": [
                        "jpg",
                        "png",
                        "jpeg",
                        "pdf"
                    ],
                    "component": "imagePicker",
                    "folderPath": "${application_id}",
                    "full": false,
                    "imagePath": "${BANK_STATEMENT}",
                    "label": "Bank Statement",
                    "localPreview": true,
                    "maxUploadSize": 18406,
                    "public": true,
                    "signedUrlApi": {
                        "contentTypeKey": "${CONTENT_TYPE}",
                        "data": {
                            "action": "getUploadSignedURL",
                            "s3_file_name": "bank_statement",
                            "workflow": "file"
                        },
                        "filePathKey": "${FILE_PATH}",
                        "path": "/upload-presigned-url",
                        "resultUrlKey": "${data.url}"
                    },
                    "width": 380
                },
                {
                    "component": "spacing",
                    "height": 20
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "dropdown",
                        "isRequired": true,
                        "itemDisplayKey": "${value}",
                        "itemValueKey": "${id}",
                        "items": [
                            {
                                "id": "AU Small Finance Bank",
                                "value": "AU Small Finance Bank"
                            },
                            {
                                "id": "Bank of Baroda",
                                "value": "Bank of Baroda"
                            },
                            {
                                "id": "Bank of India",
                                "value": "Bank of India"
                            },
                            {
                                "id": "Bank of Maharashtra",
                                "value": "Bank of Maharashtra"
                            },
                            {
                                "id": "Central Bank",
                                "value": "Central Bank"
                            },
                            {
                                "id": "City Union Bank",
                                "value": "City Union Bank"
                            },
                            {
                                "id": "Canara Bank",
                                "value": "Canara Bank"
                            },
                            {
                                "id": "Federal Bank",
                                "value": "Federal Bank"
                            },
                            {
                                "id": "Fincare Bank",
                                "value": "Fincare Bank"
                            },
                            {
                                "id": "HDFC Bank",
                                "value": "HDFC Bank"
                            },
                            {
                                "id": "Indian Bank",
                                "value": "Indian Bank"
                            },
                            {
                                "id": "Indian Overseas Bank",
                                "value": "Indian Overseas Bank"
                            },
                            {
                                "id": "Indusind Bank",
                                "value": "Indusind Bank"
                            },
                            {
                                "id": "Axis Bank",
                                "value": "Axis Bank"
                            },
                            {
                                "id": "KVB",
                                "value": "KVB"
                            },
                            {
                                "id": "Kotak Mahindra Bank",
                                "value": "Kotak Mahindra Bank"
                            },
                            {
                                "id": "Karnataka Bank",
                                "value": "Karnataka Bank"
                            },
                            {
                                "id": "Punjab National Bank",
                                "value": "Punjab National Bank"
                            },
                            {
                                "id": "Punjab & Sind Bank",
                                "value": "Punjab & Sind Bank"
                            },
                            {
                                "id": "SBI Bank",
                                "value": "SBI Bank"
                            },
                            {
                                "id": "Union Bank of India",
                                "value": "Union Bank of India"
                            },
                            {
                                "id": "Uco Bank",
                                "value": "Uco Bank"
                            },
                            {
                                "id": "ICICI Bank",
                                "value": "ICICI Bank"
                            },
                            {
                                "id": "IDFC First Bank",
                                "value": "IDFC First Bank"
                            },
                            {
                                "id": "Yes Bank",
                                "value": "Yes Bank"
                            }
                        ],
                        "label": "Select Bank",
                        "value": "${BANK_NAME}",
                        "width": 380
                    }
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "spacing",
                        "height": 20
                    }
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "dropdown",
                        "isRequired": true,
                        "itemDisplayKey": "${value}",
                        "itemValueKey": "${id}",
                        "items": [
                            {
                                "id": "savings",
                                "value": "Savings"
                            },
                            {
                                "id": "current",
                                "value": "Current"
                            },
                            {
                                "id": "cc",
                                "value": "Cash Credit"
                            },
                            {
                                "id": "nre",
                                "value": "Savings - NRE"
                            },
                            {
                                "id": "nro",
                                "value": "Savings - NRO"
                            }
                        ],
                        "label": "Select Account Type",
                        "value": "${BANK_ACCOUNT_TYPE}",
                        "width": 380
                    }
                },
                {
                    "condition": [
                        "isNotNull",
                        "${merchant_sse}"
                    ],
                    "true": {
                        "component": "spacing",
                        "height": 20
                    }
                },
                {
                    "component": "textField",
                    "full": false,
                    "isRequired": false,
                    "label": "Password",
                    "value": "${bank_statement_password}",
                    "width": 380
                },
                {
                    "component": "spacing",
                    "height": 5
                },
                {
                    "component": "text",
                    "size": 10,
                    "text": "*If the uploaded statement is password protected then please enter the password",
                    "weight": 400
                },
                {
                    "component": "spacing",
                    "height": 20
                },
                {
                    "actionName": [
                        {
                            "actionType": "apiCall",
                            "baseUrl": "https://checkoutapi-uat.creditfair.in/V2",
                            "customHeaders": {
                                "Authorization": "Bearer ${AUTH_TOKEN}"
                            },
                            "data": {
                                "application_id": "${application_id}",
                                "bank_account_type": "${BANK_ACCOUNT_TYPE}",
                                "bank_name": "${BANK_NAME}",
                                "bank_statement": "${BANK_STATEMENT}",
                                "bank_statement_password": "${bank_statement_password}"
                            },
                            "errorHandling": {
                                "CF401": [
                                    {
                                        "actionType": "navigate",
                                        "navigationType": "go",
                                        "pageUrl": "/onboarding/invalid-auth"
                                    },
                                    {
                                        "actionType": "refresh"
                                    }
                                ]
                            },
                            "path": "/upload-solar-docs",
                            "stateKey": "${saveBankResponse}"
                        },
                        {
                            "actionType": "navigate",
                            "navigationType": "go",
                            "pageArgs": {
                                "application_id": "${APPLICATION_ID}",
                                "merchant_sse": "${merchant_sse}"
                            },
                            "pageUrl": "/onboarding/not-approved"
                        }
                    ],
                    "component": "button",
                    "label": "Submit"
                },
                {
                    "component": "spacing",
                    "height": 100
                }
            ],
            "bodySpacing": 16,
            "component": "page",
            "crossAxisAlignment": "center",
            "mainAxisAlignment": "center",
            "pageLayout": "cardWithBg"
        },
        "/onboarding/consent": {
              "actions": {
                  "init": [
                      {
                          "condition": [
                              "isNotNull",
                              "${merchant_slug}"
                          ],
                          "true": [
                              {
                                  "actionType": "apiCall",
                                  "data": {
                                      "merchant_slug": "${merchant_slug}"
                                  },
                                  "innerKey": "${data}",
                                  "path": "/get-merchant-name",
                                  "stateKey": "${merchant}"
                              },
                              {
                                  "actionType": "updateData",
                                  "key": "${MERCHANT_NAME}",
                                  "value": "${merchant.name}"
                              },
                              {
                                  "actionType": "updateData",
                                  "key": "${MERCHANT_ID}",
                                  "value": "${merchant.id}"
                              }
                          ]
                      },
                      {
                          "condition": [
                              "isNotNull",
                              "${center_slug}"
                          ],
                          "true": {
                              "actionType": "apiCall",
                              "data": {
                                  "merchant_center_slug": "${center_slug}"
                              },
                              "innerKey": "${data}",
                              "path": "/get-merchant-center-name",
                              "stateKey": "${center}"
                          }
                      },
                      {
                          "condition": [
                              "isNotNull",
                              "${center.id}"
                          ],
                          "true": {
                              "actionType": "updateData",
                              "key": "${CENTER_ID}",
                              "value": "${center.id}"
                          }
                      },
                      {
                          "actionType": "updateData",
                          "key": "${CONSENT_BUTTON_ENABLED}",
                          "value": false
                      },
                      {
                          "actionType": "captureLocation",
                          "result": "${locationPrompt}"
                      }
                  ]
              },
              "bgColor": "circles",
              "body": [
                  {
                      "component": "progressForm",
                      "mainHeading": {
                          "assetPath": "assets/cfc_logo_full.png",
                          "component": "image"
                      },
                      "mainSubTitle": "",
                      "mainTitle": "${MERCHANT_NAME}",
                      "sections": [
                          {
                              "pageSubTitle": "Please provide mobile number to provide consent",
                              "pageTitle": "Consent",
                              "pages": [
                                  {
                                      "fields": [
                                          {
                                              "component": "textField",
                                              "full": true,
                                              "isRequired": true,
                                              "label": "Mobile Number",
                                              "validationRegex": "^^[0-9]\\d{9}$",
                                              "value": "${MOBILE_NUMBER}"
                                          },
                                          {
                                              "children": [
                                                  {
                                                      "actionName": [
                                                          {
                                                              "condition": [
                                                                  "equalsTo",
                                                                  "${CONSENT}",
                                                                  true
                                                              ],
                                                              "true": [
                                                                  {
                                                                      "actionType": "updateData",
                                                                      "key": "${CONSENT_DENY}",
                                                                      "value": false
                                                                  },
                                                                  {
                                                                      "actionType": "updateData",
                                                                      "key": "${CONSENT_BUTTON_ENABLED}",
                                                                      "value": true
                                                                  }
                                                              ],
                                                              "false": {
                                                                  "actionType": "updateData",
                                                                  "key": "${CONSENT_BUTTON_ENABLED}",
                                                                  "value": false
                                                              }
                                                          }
                                                      ],
                                                      "component": "checkbox",
                                                      "full": true,
                                                      "value": "${CONSENT}"
                                                  },
                                                  {
                                                      "component": "spacing",
                                                      "width": 8
                                                  },
                                                  {
                                                      "component": "text",
                                                      "maxLines": 2,
                                                      "text": "By clicking on submit you agree to our"
                                                  },
                                                  {
                                                      "actionName": {
                                                          "actionType": "openUrl",
                                                          "url": "https://creditfair.in/privacy-policy"
                                                      },
                                                      "component": "button",
                                                      "label": "Privacy Policy",
                                                      "padding": [
                                                          6,
                                                          1,
                                                          6,
                                                          0
                                                      ],
                                                      "type": "text"
                                                  },
                                                  {
                                                      "component": "text",
                                                      "text": "and"
                                                  },
                                                  {
                                                      "actionName": {
                                                          "actionType": "openUrl",
                                                          "url": "https://creditfair.in/kyc-policy"
                                                      },
                                                      "component": "button",
                                                      "label": "T&C",
                                                      "padding": [
                                                          6,
                                                          1,
                                                          6,
                                                          0
                                                      ],
                                                      "type": "text"
                                                  }
                                              ],
                                              "component": "row",
                                              "flexibleChildren": true,
                                              "full": true
                                          },
                                          {
                                              "children": [
                                                  {
                                                      "actionName": [
                                                          {
                                                              "condition": [
                                                                  "equalsTo",
                                                                  "${CONSENT_DENY}",
                                                                  true
                                                              ],
                                                              "true": [
                                                                  {
                                                                      "actionType": "updateData",
                                                                      "key": "${CONSENT}",
                                                                      "value": false
                                                                  },
                                                                  {
                                                                      "actionType": "updateData",
                                                                      "key": "${CONSENT_BUTTON_ENABLED}",
                                                                      "value": true
                                                                  }
                                                              ],
                                                              "false": {
                                                                  "actionType": "updateData",
                                                                  "key": "${CONSENT_BUTTON_ENABLED}",
                                                                  "value": false
                                                              }
                                                          }
                                                      ],
                                                      "component": "checkbox",
                                                      "full": true,
                                                      "value": "${CONSENT_DENY}"
                                                  },
                                                  {
                                                      "component": "spacing",
                                                      "width": 8
                                                  },
                                                  {
                                                      "component": "text",
                                                      "maxLines": 2,
                                                      "text": "I Deny"
                                                  }
                                              ],
                                              "component": "row",
                                              "flexibleChildren": true,
                                              "full": true
                                          }
                                      ],
                                      "nextButton": {
                                          "enabled": "${CONSENT_BUTTON_ENABLED}",
                                          "label": "Submit",
                                          "onNext": [
                                              {
                                                  "actionType": "apiCall",
                                                  "data": {
                                                      "mobile_number": "${MOBILE_NUMBER}",
                                                      "merchant_id": "${MERCHANT_ID}"
                                                  },
                                                  "path": "/consent-otp",
                                                  "stateKey": "${otpResponse}"
                                              }
                                          ]
                                      },
                                      "pageSubTitle": "Please provide mobile number to provide consent",
                                      "pageTitle": "Consent Details"
                                  },
                                  {
                                      "fields": [
                                          {
                                              "component": "textField",
                                              "enabled": false,
                                              "full": true,
                                              "isRequired": true,
                                              "label": "Mobile Number",
                                              "value": "${MOBILE_NUMBER}"
                                          },
                                          {
                                              "component": "textField",
                                              "full": true,
                                              "isRequired": true,
                                              "keyboardType": "number",
                                              "label": "OTP",
                                              "value": "${OTP}",
                                              "valueType": "int"
                                          },
                                          {
                                              "children": [
                                                  {
                                                      "color": "onSurface",
                                                      "component": "text",
                                                      "size": 15,
                                                      "text": "Didn't receive an OTP yet?",
                                                      "weight": 400
                                                  },
                                                  {
                                                      "actionName": {
                                                          "actionType": "apiCall",
                                                          "data": {
                                                              "mobile_number": "${MOBILE_NUMBER}",
                                                              "merchant_id": "${MERCHANT_ID}"
                                                          },
                                                          "path": "/consent-otp",
                                                          "stateKey": "${otpResponse}"
                                                      },
                                                      "component": "button",
                                                      "label": "Resend OTP",
                                                      "type": "text"
                                                  }
                                              ],
                                              "component": "row",
                                              "full": true
                                          }
                                      ],
                                      "nextButton": {
                                          "label": "Verify OTP",
                                          "onNext": [
                                              {
                                                  "actionType": "apiCall",
                                                  "data": {
                                                      "mobile_number": "${MOBILE_NUMBER}",
                                                      "otp": "${OTP}",
                                                      "application_id": "${otpResponse.data.application_id}",
                                                      "latitude": "${locationPrompt.lat}",
                                                      "longitude": "${locationPrompt.long}",
                                                      "consent": "${CONSENT}"
                                                  },
                                                  "path": "/verify-consent-otp",
                                                  "stateKey": "${verifyOtpResponse}"
                                              },
                                              {
                                                  "condition": [
                                                      "equalsTo",
                                                      "${verifyOtpResponse.message}",
                                                      "Success"
                                                  ],
                                                  "true": {
                                                      "actionType": "navigate",
                                                      "navigationType": "go",
                                                      "pageUrl": "/onboarding/consent-success"
                                                  }
                                              }
                                          ]
                                      },
                                      "pageSubTitle": "Please provide mobile number to provide consent",
                                      "pageTitle": "Consent Details",
                                      "previousButton": {
                                          "enabled": true,
                                          "onPrevious": [
                                              {
                                                  "actionName": {
                                                      "actionType": "updateData",
                                                      "key": "${OTP}",
                                                      "keyInRoot": true,
                                                      "value": null
                                                  }
                                              }
                                          ]
                                      }
                                  }
                              ],
                              "sectionIcon": "person",
                              "sectionName": "Consent Details"
                          }
                      ]
                  }
              ],
              "bodySpacing": 16,
              "component": "page",
              "pageLayout": "cardWithBg"
          },
        "/onboarding/consent-success": {
              "actions": {
                  "init": []
              },
              "bgColor": "circles",
              "body": [
                  {
                      "component": "spacing",
                      "height": 60
                  },
                  {
                      "assetPath": "assets/thankYou.png",
                      "component": "image",
                      "height": 150,
                      "width": 150
                  },
                  {
                      "component": "spacing",
                      "height": 40
                  },
                  {
                      "color": "primary",
                      "component": "text",
                      "size": 26,
                      "text": "Thank You",
                      "weight": 800
                  },
                  {
                      "component": "spacing",
                      "height": 8
                  },
                  {
                      "color": "secondary",
                      "component": "text",
                      "size": 16,
                      "text": "Your consent was successfully captured",
                      "weight": 500
                  },
                  {
                      "component": "spacing",
                      "height": 24
                  },
                  {
                      "component": "spacing",
                      "height": 32
                  },
                  {
                      "component": "spacing",
                      "height": 100
                  }
              ],
              "bodySpacing": 16,
              "component": "page",
              "crossAxisAlignment": "center",
              "mainAxisAlignment": "center",
              "pageLayout": "cardWithBg"
          }
        }
    },
    "message": "Success",
    "status": "success"
}