---
title: "Changes to Close an account"
method: DELETE
path: "/api/creditcontrol/accounts/{creditAccountId}"
---

# Changes to Close an account

`DELETE /api/creditcontrol/accounts/{creditAccountId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 8 of 130 revisions.

- **2023-11-27** `25c08deef792`: 1 breaking, 3 warning, 4 info
- **2023-11-27** `c8735f67eb83`: 4 info
- **2022-01-29** `7cf2039cbf73`: 2 warning
- **2020-08-20** `c0e244bfb1c1`: 3 info
- **2020-03-13** `4e317cd41082`: 3 info
- **2020-02-06** `687f86d4f3bd`: 2 breaking
- **2020-01-14** `e792b1a9f3a9`: 2 breaking
- **2020-01-02** `eeff5a3266b8`: 1 info

## Changes

- **2023-11-27** `25c08deef792`: 1 breaking, 3 warning, 4 info
  - request property `documentType` was restricted to a list of enum values
  - added the new `CNPJ` enum value to the `documentType` response property for the response status `200`
  - added the new `CPF` enum value to the `documentType` response property for the response status `200`
  - added the new `Other` enum value to the `documentType` response property for the response status `200`
  - added the new `CNPJ` enum value to the request property `documentType`
  - added the new `CPF` enum value to the request property `documentType`
  - added the new `Other` enum value to the request property `documentType`
  - response property `description` deprecated
- **2023-11-27** `c8735f67eb83`: 4 info
  - the `document` request property default value `99999999999` was removed
  - the `documentType` request property default value `CPF` was removed
  - the `email` request property default value `email@domain.com` was removed
  - added the media type `application/json` for the response with the status `200`
- **2022-01-29** `7cf2039cbf73`: 2 warning
  - deleted the `path` request parameter `accountName`
  - deleted the `path` request parameter `environment`
- **2020-08-20** `c0e244bfb1c1`: 3 info
  - the `document` request property default value `99999999999` was added
  - the `documentType` request property default value `CPF` was added
  - the `email` request property default value `email@domain.com` was added
- **2020-03-13** `4e317cd41082`: 3 info
  - the request property `document` became optional
  - the request property `documentType` became optional
  - the request property `email` became optional
- **2020-02-06** `687f86d4f3bd`: 2 breaking
  - added the new required `header` request parameter `Accept`
  - added the new required `header` request parameter `Content-Type`
- **2020-01-14** `e792b1a9f3a9`: 2 breaking
  - added the new path request parameter `accountName`
  - added the new path request parameter `environment`
- **2020-01-02** `eeff5a3266b8`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/vtex/apis/customer-credit-api/docs/api/creditcontrol/accounts/:creditAccountId/delete.md) - [API](https://skmtc.dev/vtex/apis/customer-credit-api.md) - [Page](https://skmtc.dev/vtex/apis/customer-credit-api/changes/api/creditcontrol/accounts/:creditAccountId/delete)
