產生二維碼

您可以為靜態錢包地址或發票地址產生二維碼。用戶掃描二維碼後,即可取得存款地址。

為靜態錢包位址產生二維碼

post
https://api.cryptomus.com/v1/wallet/qr
複製

要求

查詢參數

姓名參數類型定義
wallet_address_uuid*string uuid靜態錢包的 uuid

參數類型

string uuid

定義

靜態錢包的 uuid

* - 必需參數

請求範例


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"
}'
複製

回覆

響應參數

姓名定義
imageBase64 編碼二維碼影像

定義

Base64 編碼二維碼影像

回應範例


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

產生發票地址的二維碼

post
https://api.cryptomus.com/v1/payment/qr
複製

要求

查詢參數

姓名參數類型定義
merchant_payment_uuid*string uuid發票 UUID

參數類型

string uuid

定義

發票 UUID

* - 必需參數

請求範例


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"
}'
複製

回覆

響應參數

姓名定義
imageBase64 編碼二維碼影像

定義

Base64 編碼二維碼影像

回應範例


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