{
  "data": {
    "routes": {
      "/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": [
                          {
                            "action": {},
                            "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
                      }
                    ],
                    "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}"
                        }
                      },
                      {
                        "component": "text",
                        "full": true,
                        "maxLines": 2,
                        "size": 14,
                        "text": "By clicking on \"Submit\" you agree to give consent to fetch CKYC and Bureau Pull"
                      }
                    ],
                    "nextButton": {
                      "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": "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}"
                          },
                          "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}",
                                "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,
                          "items": [
                            "On-grid",
                            "Off-grid",
                            "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": "Rural C&I MSME ( Attachakki, Oil Expeller etc)"
                            },
                            {
                              "id": 3,
                              "value": "Urban C&I MSME (Factories, Hospitals, Hotels, Offices, etc)"
                            },
                            {
                              "id": 4,
                              "value": "Housing Society"
                            },
                            {
                              "id": 5,
                              "value": "Schools & Universities"
                            }
                          ],
                          "label": "Solar For",
                          "value": "${SOLAR_TYPE}"
                        },
                        {
                          "component": "textField",
                          "isRequired": true,
                          "label": "KW installation",
                          "value": "${KW_INSTALLATION}",
                          "valueType": "int"
                        },
                        {
                          "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": {},
                            "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}",
                              "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}"
                        }
                      ]
                    },
                    "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: ₹ ${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: ₹${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: ₹${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": "₹${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": "₹${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": []
        },
        "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
          },
          {
            "component": "spacing",
            "height": 20
          },
          {
            "actionName": {
              "actionType": "openUrl",
              "url": "https://test7.creditfair.in/bank-statement?application_id=${application_id}",
              "webOpeningBehaviour": "currentTab"
            },
            "component": "button",
            "label": "Fetch Bank Statement"
          },
          {
            "component": "spacing",
            "height": 20
          },
          {
            "actionName": {
              "actionType": "navigate",
              "navigationType": "go",
              "pageArgs": {
                "AUTH_TOKEN": "${AUTH_TOKEN}",
                "application_id": "${application_id}"
              },
              "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",
                          "full": true,
                          "isRequired": true,
                          "label": "Mobile Number",
                          "validationRegex": "^^[0-9]\\d{9}$",
                          "value": "${MOBILE_NUMBER}"
                        }
                      ],
                      "nextButton": {
                        "enabled": true,
                        "label": "Submit",
                        "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"
                    }
                  },
                  {
                    "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}"
                          },
                          "path": "/verify-otp",
                          "stateKey": "${verifyOtpResponse}"
                        },
                        {
                          "actionType": "updateData",
                          "key": "${AUTH_TOKEN}",
                          "value": "${verifyOtpResponse.data.token}"
                        },
                        {
                          "actionType": "apiCall",
                          "customHeaders": {
                            "Authorization": "Bearer ${AUTH_TOKEN}"
                          },
                          "data": {
                            "mobile_number": "${mobile_number}"
                          },
                          "errorHandling": {
                            "CF401": [
                              {
                                "actionType": "navigate",
                                "navigationType": "go",
                                "pageUrl": "/onboarding/invalid-auth"
                              },
                              {
                                "actionType": "refresh"
                              }
                            ]
                          },
                          "path": "/get-user-details",
                          "stateKey": "${userDetails}"
                        },
                        {
                          "condition": [
                            "equalsTo",
                            "${userDetails.data.decision.status}",
                            false
                          ],
                          "false": [
                            {
                              "condition": [
                                "equalsTo",
                                "${userDetails.data.decision.value}",
                                "/onboarding/not-approved"
                              ],
                              "true": {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageArgs": {
                                  "APPLICATION_ID": "${userDetails.data.application_id}"
                                },
                                "pageUrl": "/onboarding/not-approved"
                              }
                            },
                            {
                              "condition": [
                                "equalsTo",
                                "${userDetails.data.decision.value}",
                                "/onboarding/final-success"
                              ],
                              "true": {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageArgs": {
                                  "application_id": "${userDetails.data.application_id}"
                                },
                                "pageUrl": "/onboarding/final-success"
                              }
                            },
                            {
                              "condition": [
                                "equalsTo",
                                "${userDetails.data.decision.value}",
                                "/onboarding/auto-reject"
                              ],
                              "true": {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageArgs": {
                                  "APPLICATION_ID": "${userDetails.data.application_id}"
                                },
                                "pageUrl": "/onboarding/auto-reject"
                              }
                            },
                            {
                              "condition": [
                                "equalsTo",
                                "${userDetails.data.decision.value}",
                                "/onboarding/bank-statement"
                              ],
                              "true": {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageArgs": {
                                  "AUTH_TOKEN": "${AUTH_TOKEN}",
                                  "application_id": "${userDetails.data.application_id}"
                                },
                                "pageUrl": "/onboarding/bank-statement"
                              }
                            },
                            {
                              "condition": [
                                "equalsTo",
                                "${userDetails.data.decision.value}",
                                "/onboarding/bureau-failure"
                              ],
                              "true": {
                                "actionType": "navigate",
                                "navigationType": "pushReplacement",
                                "pageArgs": {
                                  "AUTH_TOKEN": "${AUTH_TOKEN}",
                                  "application_id": "${userDetails.data.application_id}"
                                },
                                "pageUrl": "/onboarding/bureau-failure"
                              }
                            }
                          ],
                          "true": {
                            "actionType": "navigate",
                            "navigationType": "pushReplacement",
                            "pageArgs": {
                              "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}",
                              "APPLICATION_ID": "${userDetails.data.application_id}",
                              "AUTH_TOKEN": "${AUTH_TOKEN}",
                              "CATEGORY_ID": "${userDetails.data.category_id}",
                              "CITY": "${userDetails.data.basic_details.city}",
                              "DATE_OF_BIRTH": "${userDetails.data.basic_details.dob}",
                              "EMAIL": "${userDetails.data.basic_details.email}",
                              "FIRST_NAME": "${userDetails.data.basic_details.first_name}",
                              "GENDER": "${userDetails.data.basic_details.gender}",
                              "IS_EXISTING": 1,
                              "LAST_NAME": "${userDetails.data.basic_details.last_name}",
                              "LOAN_AMOUNT": "${userDetails.data.basic_details.loan_amount}",
                              "MERCHANT_ID": "${userDetails.data.merchant_id}",
                              "MOBILE_NUMBER": "${userDetails.data.basic_details.mobile_number}",
                              "NEW_APPLICATION": false,
                              "PAN_NUMBER": "${userDetails.data.basic_details.pan_number}",
                              "PINCODE": "${userDetails.data.basic_details.pincode}",
                              "STATE": "${userDetails.data.basic_details.state}",
                              "center_slug": "${center_slug}",
                              "SELECTED_OFFER": "${userDetails.data.basic_details.SELECTED_OFFER}",
                              "merchant_slug": "${merchant_slug}",
                              "pageIndex": "${userDetails.data.page}",
                              "sectionIndex": "${userDetails.data.section}"
                            },
                            "pageUrl": "/onboarding"
                          }
                        }
                      ]
                    },
                    "pageSubTitle": "Please validate the mobile number",
                    "pageTitle": "Mobile Verification",
                    "previousButton": {
                      "enabled": true,
                      "onPrevious": [
                        {
                          "actionType": "navigate",
                          "navigationType": "go",
                          "pageArgs": {
                            "MOBILE_NUMBER": "${mobile_number}"
                          },
                          "pageUrl": "/onboarding/existing-customer"
                        }
                      ]
                    }
                  }
                ],
                "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: ₹ ${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: ₹ ${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
          },
          {
            "color": "secondary",
            "component": "text",
            "size": 16,
            "text": "Application submitted,Our team will reach out to you within 24 hrs",
            "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
          },
          {
            "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",
                "customHeaders": {
                  "Authorization": "Bearer ${AUTH_TOKEN}"
                },
                "data": {
                  "application_id": "${application_id}",
                  "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}"
                },
                "pageUrl": "/onboarding/not-approved"
              }
            ],
            "component": "button",
            "label": "Submit"
          },
          {
            "component": "spacing",
            "height": 100
          }
        ],
        "bodySpacing": 16,
        "component": "page",
        "crossAxisAlignment": "center",
        "mainAxisAlignment": "center",
        "pageLayout": "cardWithBg"
      }
    }
  },
  "message": "Success",
  "status": "success"
}