Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
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
Definition | Description |
|---|---|
Endpoint | https://api.paas-sandbox.co.passportfintech.com/v1/qrcodes/decode |
Method | POST |
Headers | Content-Type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | String | Yes | The unique identifier of the customer (merchant) initiating the transaction. |
qr_code_data | String | Yes | The EMVCo-compliant QR string to be decoded. |
Example Request
Response Body
HTTP Status Code: 200 OK.
Example of Response
The decoding does not create the qr_code_image parameter
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 Bad Request | Invalid Data | Missing or malformed |
401 Unauthorized | Expired Token | The access token is invalid or has expired. |
403 Forbidden | Access Denied | The request is not authorized to validate the entity. |
500 Internal Server Error | Server Error | An unexpected error occurred while validating the entity. |
Best Practices
Validate input: Ensure
qr_code_datais properly formatted before sending the request.