# Close an Account
source: https://developer.mastercard.com/mastercard-processing-core/documentation/use-cases/card-lifecycle/close-an-account/index.md

## Overview {#overview}

The use case describes the process to close a specified account contract.

## Sequence diagram {#sequence-diagram}

Diagram close-an-account

### Explanation {#explanation}

1. The server sends a `PUT` request to the `/accounts/account_contract_id}/status` endpoint passing in the request body the `statusCode` field with the value of the expected status to be set. Note: You can use only the `statusCode` values preconfigured in the CMS during the onboarding process. In the generic solution, passing the `00c` value will start the process of the account contract closure. Refer to [Account Contract Status](https://developer.mastercard.com/mastercard-processing-core/documentation/guides/status-changes/index.md#account-contract-status) for more information.
2. The API returns the HTTP status `204`.

Refer to [Sandbox testing](https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/card-lifecycle-management/close-account/index.md) for information on how to execute the use case in the Sandbox environment.

## Endpoint {#endpoint}


API Reference: `PUT /accounts/{account_contract_id}/status`

