Skip to content

GenerateQRCode

Walter Lara edited this page Apr 7, 2024 · 1 revision

Generate Connect Wallet QR Code

Allows to generate a QR Code image for Wallet connection from a Mobile device.

Request

URL: /v1/wallet-connections/{connectionId}/qrcode

Method: GET

Path Parameters:

Parameter Type Description
connectionId string UUID of the connection.

Query Parameters: None

Headers:

Accept: image/any

g-recaptcha-platform: Web

g-recaptcha-token: {reCAPTCHA Token for "qrcode" action}

Content: None

✅ Success Response

Code: 200 OK

Headers:

Content-Type: image/png (or any other image format)

Content: Image file.

❌ Error Responses

1. Bad Request

Code: 400 BAD REQUEST

Condition: If a mandatory header or content field is missing.

Headers:

Content-Type: application/json

Content example:

{
    "code": 400,
    "description": "Bad Request",
    "cause": "Missing header: g-recaptcha-token"
}

1. Bad Request

Code: 400 BAD REQUEST

Condition: If a mandatory header or content field is missing.

Headers:

Content-Type: application/json

Content example:

{
    "code": 400,
    "description": "Bad Request",
    "cause": "Missing header: g-recaptcha-token"
}

2. Forbidden

Code: 403 FORBIDDEN

Condition: If reCAPTCHA fails.

Headers:

Content-Type: application/json

Content example:

{
    "code": 403,
    "description": "Forbidden",
    "cause": "Recaptcha failed"
}

3. Not Found

Code: 404 NOT FOUND

Condition: If the specified Connection is not found.

Headers:

Content-Type: application/json

Content example:

{
    "code": 404,
    "description": "Not Found",
    "cause": "Entity WalletConnectionEntity, id=d0907e3d-a9a7-43b1-93dc-f3b0ee929021 not found in the database"
}

See Also

Generate Wallet Connection Challenge

Answer Wallet Connection Challenge

Connect Wallet

Disconnect Wallet

Get Wallet Connections

Clone this wiki locally