# Transfer to business wallet

**POST** `https://api.heleket.com/v1/transfer/to-business`

## Request

### Body parameters

| Name | Parameter type | Definition |
| --- | --- | --- |
| amount (required) | string | Amount to transfer |
| currency (required) | string | Currency code. Only cryptocurrency code is allowed. |

### Request example

```
curl https://api.heleket.com/v1/transfer/to-business \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
        "amount": "15",
        "currency": "USDT"
    }'
```

## Response

### Response parameters

| Name | Definition |
| --- | --- |
| user\_wallet\_transaction\_uuid | Uuid of Personal wallet transaction |
| user\_wallet\_balance | Personal wallet balance |
| merchant\_transaction\_uuid | Uuid of Business wallet transaction |
| merchant\_balance | Business wallet balance |

### Response example

```
{
	"state": 0,
	"result": {
		"user_wallet_transaction_uuid": "26109ba0-b05b-4ee0-93d1-fd62c822ce95",
		"user_wallet_balance": "15.00000000",
		"merchant_transaction_uuid": "95bfcabb-a0ab-48f1-80b3-ce3bc2dbb653",
		"merchant_balance": "20.00000000"
	}
}
```

## Possible errors

### Validation errors

code : 422

example responses:

If some parameter is required and not passed:

```
{
	"state": 1,
	"errors": {
		"amount": ["validation.required"]
	}
}
```

If the payout is blocked on your user, you will receive this error message. This happens, for example, when you change your password and payouts are blocked for 24 hours.

```
{
    "state": 1,
    "message": "You are forbidden"
}
```

If there is no active personal wallet with provided currency:

```
{
    "state": 1,
    "message": "No found user wallet"
}
```

If there is no active business wallet with provided currency

```
{
    "state": 1,
    "message": "Merchant wallet not found"
}
```

If there are not enough funds on your business wallet to transfer the amount

```
{
    "state": 1,
    "message": "Not enough funds"
}
```

If the transfer amount is less than the minimum supported amount for cryptocurrency, you will receive this error message

```
{
    "state": 1,
    "message": "Minimum amount 0.5 USDT"
}
```

If the transfer amount is greater than the maximum supported amount for cryptocurrency, you will receive this error message:

```
{
    "state": 1,
    "message": "Maximum amount 10000000 USDT"
}
```

### Internal server error

code : 500

example responses:

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