# Citizen: Disconnection Application Create

**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**.

![](/files/3iOWfxWknhhZlVMsuXg3)![](/files/NzRYVHQPFd9B9cGIRtjz)![](/files/7K2FEbSGC9xHoX0H9ZkU)

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

My Connections → View Connection Details → Disconnect

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

![](/files/yyNooPO8RKv9eTr3aBeV)

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;![](/files/ntlye0xt16QsCpr4Q70U)

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>

![](/files/0gsBKj4DDAeJN4VXF8YD)

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>

![](/files/iNuo1lTljVXYr77pGzl6)

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>

![](/files/mW4pYzeMW2FkdD2uL2LU)

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

&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/local-governance/access/local-governance-stack/water-and-sewerage/water-services/water-and-sewerage-service-ui-docs/citizen-disconnection-application-create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
