# Generate a QR-code

You can generate a QR-code for a static wallet address or for an invoice address. Scanning it, the user will receive the address for depositing funds.

## Generate a QR-code for the static wallet address

**POST** `https://api.heleket.com/v1/wallet/qr`

## Request

### Body parameters

| Name | Parameter type | Definition |
| --- | --- | --- |
| wallet\_address\_uuid (required) | string uuid | uuid of a static wallet |

### Request example

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

## Response

### Response parameters

| Name | Definition |
| --- | --- |
| image | Base64 encode QR-code image |

### Response example

```
{
    "state": 0,
    "result": {
        "image": "data:image/png;base64,iVBORw0KGgoAAA..."
	}
}
```

## Generate a QR-code for the invoice address

**POST** `https://api.heleket.com/v1/payment/qr`

## Request

### Body parameters

| Name | Parameter type | Definition |
| --- | --- | --- |
| merchant\_payment\_uuid (required) | string uuid | Invoice uuid |

### Request example

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

## Response

### Response parameters

| Name | Definition |
| --- | --- |
| image | Base64 encode QR-code image |

### Response example

```
{
    "state": 0,
    "result": {
        "image": "data:image/png;base64,iVBORw0KGgoAAA..."
	}
}
```
