Resource Guides
Endpoints
Token Management
Customer Management
Account Management
Bre-B Key Management
Recipient Management
Payment Management
QR codes
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Decode QR code
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
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
JSON
7
1
curl --location --request POST 'https://api.paas.sandbox.co.passportfintech.com/v1/qrcodes/decode' \2
--header 'Content-Type: application/json' \3
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \4
--data '{5
"customer_id": "050e8ba8-e079-46bd-a052-427a38f35ef0",6
"qr_code_data": "00020101021226330015CO.COM.VISI.LLA0210370222232949270015CO.COM.VISI.RED0104VISI52040412530317054130000014907.005802CO5914Merchant OW3BX6011Bucaramanga610610101062250808PURCHASE100911414310480290017CO.COM.VISI.CANAL0104MPOS81260016CO.COM.VISI.CIVA01020282240015CO.COM.VISI.IVA0101083250016CO.COM.VISI.BASE0101084260016CO.COM.VISI.CINC01020285240015CO.COM.VISI.INC0101090310017CO.COM.VISI.TRXID0106P1490791870015CO.COM.VISI.SEC0164474ba16e2433a928a69b7a6eb54efbabecba7c0aef862d39fca7b379d057ba1b63045B27"7
}'Response Body
- HTTP Status Code: 200 OK.
Example of Response
JSON
35
35
1
{2
"amount": {3
"currency": "COP",4
"value": "14907"5
},6
"additional_info": {7
"transaction_purpose": "PURCHASE"8
},9
"inc": {10
"inc_type": "FIXED",11
"inc_value": "0"12
},13
"key": {14
"key_value": "3702222329",15
"key_type": "PHONE"16
},17
"qr_code_data": "00020101021226330015CO.COM.VISI.LLA02103702222329...63045B27",18
"status": "ACTIVE",19
"acquirer_network_identifier": "VISI",20
"merchant": {21
"merchant_category_code": "0412",22
"merchant_country": "CO",23
"merchant_name": "Merchant OW3BX",24
"merchant_city": "Bucaramanga",25
"merchant_post_code": "101010"26
},27
"channel": "MPOS",28
"vat": {29
"vat_type": "FIXED",30
"vat_value": "0",31
"vat_base_value": "0"32
},33
"qr_code_reference": "14907",34
"type": "DYNAMIC"35
}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 customer_id or qr_code_data. |
| 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.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
Delete QR CodeDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message