> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/local-governance/v2.8/platform/configure-digit/configuring-digit-services/water-services/water-and-sewerage-service-ui-docs/citizen-disconnection-application-create.md).

# Citizen: Disconnection Application Create

Water and Sewerage disconnection application for citizen users - technical implementation doc

**Objective:** To provide user facilities to disconnect an active W\&S connection when they are not using the service. So, that they don’t have to pay for any charges

#### **Validations** <a href="#validations" id="validations"></a>

* To disconnect, connection should be in **ACTIVE** state. Connections which are under **WORKFLOW** or **INACTIVE** are not eligible for disconnection.
* In cases dues are pending, user has to clear the dues before applying for Disconnection.
* ‘Disconnect’ option itself is not displayed in the action list for the connection which are **INACTIVE**.

![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2Ft9L19ZwS5bLP7fasFsN8%2Fimage.png?alt=media\&token=922688fb-699e-4091-9f44-fabbca530d7e)![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FegwBqNzMyc67OEwgzUSj%2Fimage.png?alt=media\&token=9499b50a-1160-4f1e-9428-57605d0c2437)![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FzODNDM9T20LJdyXKi3pV%2Fimage.png?alt=media\&token=8ad9cdf1-dda3-48b2-8f57-c0566ddd70b4)

&#x20;**Route**&#x20;

My Connections → View Connection Details → Disconnect

Clicking on Disconnect it navigates to the Water and Sewerage Disconnection Application Document required screen.

![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FsXpxyjBoiheTfq2rWYvP%2Fimage.png?alt=media\&token=dd4fd449-af45-4fba-91d5-78208dcfce46)

File Path: <https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pageComponents/WSDisconnectionDocsRequired.js>

&#x20;![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FSZ7CvBGdB9Dw2sBa7mDp%2Fimage.png?alt=media\&token=b59e2add-8a1e-4ae1-b751-0b4149851e0b)

File Path: <https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pageComponents/WSDisconnectionForm.js>

**Date Validation**

On Clicking on Next button in the document required screen,

if the proposed date is after \<slaDays for disconnection> it will route to Application form Water & Sewerage Disconnection, else it will throw an error in the form of toast messgae, “Date should be after \<slaDays for disconnection> from application create Date“.

To get the SLA days `/egov-workflow-v2/egov-wf/businessservice/_search?businessServices=DisconnectWSConnection` API call is made on load of Application Form Page

&#x20;

**Technical Implementation Details:**

Initial MDMS call is being made on page load

**Mdms data :**

Documents: [<img src="https://github.com/fluidicon.png" alt="" data-size="line">egov-mdms-data/DisconnectionDocuments.json at QA · egovernments/egov-mdms-data](https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/ws-services-masters/DisconnectionDocuments.json)

Disconnection Type: [<img src="https://github.com/fluidicon.png" alt="" data-size="line">egov-mdms-data/disconnectionType.json at QA · egovernments/egov-mdms-data](https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/ws-services-masters/disconnectionType.json)

&#x20;

On Clicking on Next button in the Application Form Screen , it will route to Upload Documents Screen

File Path: <https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pageComponents/WSDisconnectionDocumentsForm.js>

![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2Fl9DFkRajSCDUwKeBFe3T%2Fimage.png?alt=media\&token=fe4c29b5-9790-4a5d-9429-a20869c80196)

On Clicking on Next button in the Upload Documents Screen , it will route to Summary Check Page Screen

File Path: <https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/citizen/WSDisconnection/CheckPage.js>

![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FNHoxwOCFeBIiJRqstC2S%2Fimage.png?alt=media\&token=344ad9ee-459c-4504-b687-12145e12ada2)

In Check Page you can edit the entered data for Disconnection.

On Clicking on Submit button in the Check Page Screen , it will make water or sewerage create and update API calls.

**Data fetch , load and render** :

* `ws-services/wc/_create`

**Payload: `WaterConnection: {`**

`...data,`

`isdisconnection : true,`

`isDisconnectionTemporary:` `true (if Temporary Disconnection selected else false)`,

`disconnectionReason`: ““

&#x20;

**`},`**

`disconnectRequest`: true

* `sw-services/swc/_create`

**Payload: `WaterConnection: {`**

`...data,`

`isdisconnection : true,`

`isDisconnectionTemporary:` `true (if Temporary Disconnection selected else false)`,

`disconnectionReason`: ““

&#x20;

**`},`**

`disconnectRequest`: true

* `ws-services/wc/_update`

**Payload: `WaterConnection: {`**

`...data,`

`isdisconnection : true,`

`isDisconnectionTemporary:` `true (if Temporary Disconnection selected else false)`,

`disconnectionReason`: ““

&#x20;

**`},`**

`disconnectRequest`: true

* `sw-services/swc/_update`

**Payload: `WaterConnection: {`**

`...data,`

`applicationType: if(Water Application) "DISCONNECT_WATER_CONNECTION" else (if Sewerage Application) "DISCONNECT_SEWERAGE_CONNECTION",`   &#x20;

`processInstance: {`

`...data?.processInstance,`

`businessService: if(Water Application) "DisconnectWSConnection" else (if Sewerage Application) "DisconnectSWConnection",`

`action: "SUBMIT_APPLICATION",     }`

&#x20;

**`},`**

After the Success of the Create and Update calls it routes users to the Disconnection Acknowledgement screen.

File Path: <https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pageComponents/WSDisconnectAcknowledgement.js>

![](https://1885278393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYtUmELy66UydIQtJOn5%2Fuploads%2FGNzQrTyUXMaWWatghkfw%2Fimage.png?alt=media\&token=47740c2e-5311-4f13-ac09-9ac095bd2ba7)

Clicking on the Download Acknowledgement Form button downloads the Water or Sewerage Disconnection Acknowledgement PDF.

&#x20;

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/local-governance/v2.8/platform/configure-digit/configuring-digit-services/water-services/water-and-sewerage-service-ui-docs/citizen-disconnection-application-create.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
