---
updatedAt: 2025-02-12T17:48:10.000Z
agentTools:
  projectIndex: https://documentation.lemonway.com/llms.txt
---

# Update Payment Account Status

## UpdateWalletStatus

### Update Payment Account Status

> 📘 Note
>
> This functionality is available depending on your contract.

### How it works

With this method, **UpdateWalletStatus** payment account status can be updated and closed.

> 📘 Closing Accounts
>
> You can only close an account in **KYC 1** status. If you require an account to be closed that has a KYC 2 status, contact our support team.

#### XML

```xml
<!-- Request -->
<UpdateWalletStatus xmlns="Service_mb">
  <wlLogin>string</wlLogin>
  <wlPass>string</wlPass>
  <language>string</language>
  <version>string</version>
  <walletIp>string</walletIp>
  <walletUa>string</walletUa>
  <wallet>string</wallet>
  <newStatus>string</newStatus>
</UpdateWalletStatus>
```
```xml
<!-- Response -->
<?xml version="1.0" encoding="utf-8"?>
<WALLET>
	<ID>string</ID>
</WALLET>
```

#### JSON

```json
// Request
{   
    "wlLogin":"string",
    "wlPass":"string",
    "language":"string",
    "version":"string",
    "walletIp":"string",
    "walletUa":"string",
    "wallet":"string",
    "newStatus":"string"
}
```
```json
// Response
{  
    "WALLET":{  
        "ID":"string"
    }
}
```

#### Request Inputs

| Item      | Description                                                                                                                               | Required | Format        | Example     |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------- | ----------- |
| wallet    | Payment account ID                                                                                                                        | Yes      | \[1:256] char | 33612345678 |
| newStatus | New payment account status. Possible values:                                                                                              | Yes      | int           | 6           |
|           | 5: payment account KYC 1 (status is given right after the call to [RegisterWallet](https://documentation.lemonway.com/reference/registerwallet))                            |          |               |             |
|           | 12: payment account closed. Warning: you cannot reopen a closed payment account. Only a payment account with a balance = 0 can be closed. |          |               |             |

#### Response Outputs

| Item | Description                    | Example     |
| ---- | ------------------------------ | ----------- |
| ID   | The updated payment account ID | 33612345678 |