# Block static wallet

**POST** `https://api.heleket.com/v1/wallet/block-address`

When you need to block your clients static wallet, all the further payments will not be credited to his balance. You can make a refund of this funds only once. The funds will be returned to the addresses from which they came.

## Request

### Body parameters

| Name | Parameter type | Default value | Definition |
| --- | --- | --- | --- |
| uuid | string<br>uuid<br>required\_without: order\_id|  | uuid of a static wallet |
| order\_id | string<br>min:1<br>max:32<br>alpha\_dash<br>required\_without: uuid|  | Order ID of a static wallet |
| is\_force\_refund | boolean | false | Refund all incoming payments to sender’s address |

> You need to pass one of the required parameters, if you pass both, the account will be identified by **order\_id**

### Request example

```
curl https://api.heleket.com/v1/wallet/block-address \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
    "order_id": "1"
}'
```

## Response

### Response parameters

| Name | Definition |
| --- | --- |
| uuid | uuid of the static wallet |
| status | Status of the static wallet.<br>Available options:<br>• blocked<br>• active<br>• in\_active|

### Response example

```
{
	"state": 0,
	"result": {
		"uuid": "fcc40793-39f9-4fa9-85b2-93148039a72b",
		"status": "blocked"
	}
}
```

## Possible errors

### Validation errors

code : 422

example responses:

```
{
	"state": 1
}
```

```
{
	"state": 1,
	"errors": {
		"uuid": ["validation.required_without"],
		"order_id": ["validation.required_without"]
	}
}
```

### Internal server error

code : 500

example responses:

```
{
	"message": "Server error, #1",
	"code": 500,
	"error": null
}
```
