Payment intents
Scan merchant QR
Submit the raw EMVCo QR payload for authoritative validation and quote binding.
POST
/
v1
/
payment_intents
/
{intent_id}
/
scan
Scan merchant QR
curl --request POST \
--url https://api.example.com/v1/payment_intents/{intent_id}/scanimport requests
url = "https://api.example.com/v1/payment_intents/{intent_id}/scan"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/payment_intents/{intent_id}/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/payment_intents/{intent_id}/scan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/payment_intents/{intent_id}/scan"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/payment_intents/{intent_id}/scan")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment_intents/{intent_id}/scan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyPOST /v1/payment_intents/{intent_id}/scan
Authorization: Bearer <session_token>
Content-Type: application/json
jti, so the same unexpired token can confirm afterward.
Body
{
"qr_payload": "<raw EMVCo payload>",
"local_amount_minor_units": "3500000"
}
| Field | Type | Required | Rules |
|---|---|---|---|
qr_payload | string | Yes | Raw payload, 1–4096 characters |
local_amount_minor_units | int64 string | Conditional | Required for static QRs; for dynamic QRs it must be absent or equal the embedded amount |
duplicate_confirmed | boolean | No | Send true only after the user acknowledges a recent duplicate scan |
Response
{
"intent_id": "0198f31a-7c2b-7d91-9fa2-112233445566",
"status": "created",
"merchant": {
"scheme": "vietqr",
"name": "Example Merchant",
"city": "HANOI",
"country": "VN",
"mcc": "5812"
},
"qr_kind": "static",
"quote": {
"quote_id": "quote_...",
"quote_version": 1,
"amount_usd_cents": 345,
"local_amount_minor_units": "3500000",
"local_currency": "704",
"expires_at": 1788350430000
}
}
Was this page helpful?
⌘I
Scan merchant QR
curl --request POST \
--url https://api.example.com/v1/payment_intents/{intent_id}/scanimport requests
url = "https://api.example.com/v1/payment_intents/{intent_id}/scan"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/payment_intents/{intent_id}/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/payment_intents/{intent_id}/scan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/payment_intents/{intent_id}/scan"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/payment_intents/{intent_id}/scan")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment_intents/{intent_id}/scan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body