# Close an Account source: https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/card-lifecycle-management/close-account/index.md ## Test case -- Success {#test-case--success} This test case describes closing a specified account contract in the CMS. Refer to [Account Contract Status](https://developer.mastercard.com/mastercard-processing-core/documentation/guides/status-changes/index.md#account-contract-status) for more information. For this test case, use the following information in the request: | Field | Available value | |--------------|-----------------| | `statusCode` | 00 | | | 00c | **Sample request** `PUT /accounts/60001/status` ```JSON { "statusCode": "00c" } ``` **Sample response** `204` ## Test case -- Fail -- Invalid statusCode {#test-case--fail--invalid-statuscode} This test case describes an attempt to close a specified account contract using a value of the `statusCode` field in the request body that is not supported by the CMS. For this test case, use the following information in the request: | Field | Available value | |--------------|-----------------| | `statusCode` | INVALID | **Sample request** `PUT /accounts/60001/status` ```JSON { "reason": "COMMENT", "statusCode": "INVALID" } ``` **Sample response** `400` ```JSON { "Errors": { "Error": [ { "Source": "MASTERCARD PROCESSING", "ReasonCode": "STATUS_CODE_NOT_SUPPORTED", "Description": "Status code INVALID is not supported for contract with id 60001.", "Recoverable": false } ] } } ```