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
Request
Query parameters
Name | Parameter type | Definition |
---|---|---|
wallet_address_uuid* | string uuid | uuid of a static wallet |
Parameter type
string uuidDefinition
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"
}'
COPYResponse
Response parameters
Name | Definition |
---|---|
image | Base64 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}
COPYGenerate a QR-code for the invoice address
post
https://api.cryptomus.com/v1/payment/qr
Request
Query parameters
Name | Parameter type | Definition |
---|---|---|
merchant_payment_uuid* | string uuid | Invoice uuid |
Parameter type
string uuidDefinition
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"
}'
COPYResponse
Response parameters
Name | Definition |
---|---|
image | Base64 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