Retrieve QR Code

Overview

This endpoint retrieves detailed information about a specific QR Code by its unique identifier. It provides metadata such as payment amount, merchant details, QR Code payload, image, and configuration attributes.

Endpoint Details

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/qrcodes/:qr_code_id
MethodGET
HeadersContent-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Request Body

This endpoint does not require a request body.

Example Request

JSON
Copy

Response

  • HTTP Status Code: 200 OK.

Example of Response

JSON
Copy

Common Errors and Handling

HTTP Status CodeMeaningDescription
400Bad RequestMalformed id or invalid request
401UnauthorizedMissing/expired bearer token, or token lacks paas.core.qrcodes.get scope
403ForbiddenCaller not permitted to retrieve this QR Code
404Not FoundQR Code with the given id does not exist
500Server ErrorUnexpected error; retry or contact support

Best Practices

  • Use qr_code_image (Base64) when embedding in mobile apps or web UIs; decode it into a PNG/JPEG for rendering.
  • Pair this with Cancel QR Code (DELETE /qrcodes/{id}) to revoke compromised or unused QR Codes.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard