> ## Documentation Index
> Fetch the complete documentation index at: https://developer.embedly.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Close Wallet

> The endpoint allows you to close a specified wallet using the account number and associated details.

## Request Body

<ParamField body="accountNumber" type="string" required>
  The account number to be closed or deleted. **Example:** "3023563113"
</ParamField>

<ParamField body="accountClosureReasonId" type="number" required>
  The ID representing the reason for account closure. **Example:** 0
</ParamField>

<ParamField body="tellerId" type="number">
  The ID of the teller processing the closure. **Example:** 0
</ParamField>

<ParamField body="closeOrDelete" type="boolean" required>
  Specifies whether to close or delete the account. - `true`: Delete the account

  * `false`: Close the account
</ParamField>

<ParamField body="customerOrAccount" type="boolean" required>
  Specifies whether the operation is for a customer or an account. - `true`:
  Customer - `false`: Account
</ParamField>

<ResponseExample>
  ```json Success theme={null}
  {
  	"code": "200",
  	"success": true,
  	"message": "You can close this account.",
  	"data": {
  		// Additional details if applicable
  	}
  }
  ```

  ```json 400 Bad Request theme={null}
  {
  	"code": "400",
  	"success": false,
  	"message": "Invalid request data",
  	"data": null
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
  	"code": "401",
  	"success": false,
  	"message": "You do not have rights to access this account",
  	"data": null
  }
  ```

  ```json 403 Forbidden theme={null}
  {
  	"code": "403",
  	"success": false,
  	"message": "Access denied for this operation",
  	"data": null
  }
  ```

  ```json 500 Internal Server Error theme={null}
  {
  	"code": "500",
  	"success": false,
  	"message": "An unexpected error occurred",
  	"data": null
  }
  ```
</ResponseExample>
