Decode QR code

Overview

This endpoint allows you to decode the extracted EMVCo string from a QR Code and return structured information required to initiate a payment including amount, key details, merchant information, taxes, and channel indicators.

QR Codes Types

The supported types are: Dynamic and Static QR codes.

Endpoint Details

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

Request Body

ParameterTypeRequiredDescription
customer_idStringYesThe unique identifier of the customer (merchant) initiating the transaction.
qr_code_dataStringYesThe EMVCo-compliant QR string to be decoded.

Example Request

JSON
Copy

Response Body

  • HTTP Status Code: 200 OK.

Example of Response

JSON
Copy

The decoding does not create the qr_code_image parameter

Common Errors and Handling

HTTP Status CodeMeaningDescription
400 Bad RequestInvalid DataMissing or malformed customer_id or qr_code_data.
401 UnauthorizedExpired TokenThe access token is invalid or has expired.
403 ForbiddenAccess DeniedThe request is not authorized to validate the entity.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while validating the entity.

Best Practices

  • Validate input: Ensure qr_code_data is properly formatted before sending the request.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard