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.cryptomus.com/v1/wallet/qr
COPY

Request

Query parameters

NameParameter typeDefinition
wallet_address_uuid*string uuidmethods.UUID of a static wallet

Parameter type

string uuid

Definition

methods.UUID of a static wallet

* - mandatory parameter

Request example


curl  https://api.cryptomus.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",
}'
COPY

Response

Response parameters

NameDefinition
imageBase64 encode QR-code image

Definition

Base64 encode QR-code image

Response example


1{
2    "state": 0,
3    "result": {
4        "image": "data:image/png;base64,iVBORw0KGgoAAA..."
5	}
6}
COPY

Generate a QR-code for the invoice address

post
https://api.cryptomus.com/v1/payment/qr
COPY

Request

Query parameters

NameParameter typeDefinition
merchant_payment_uuid*string uuidInvoice uuid

Parameter type

string uuid

Definition

Invoice uuid

* - mandatory parameter

Request example


curl  https://api.cryptomus.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",
}'
COPY

Response

Response parameters

NameDefinition
imageBase64 encode QR-code image

Definition

Base64 encode QR-code image

Response example


1{
2    "state": 0,
3    "result": {
4        "image": "data:image/png;base64,iVBORw0KGgoAAA..."
5	}
6}
COPY