Get payment intent
curl --request GET \
--url https://api.example.com/v1/payment_intents/{intent_id}import requests
url = "https://api.example.com/v1/payment_intents/{intent_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/payment_intents/{intent_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/payment_intents/{intent_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment_intents/{intent_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"intent_id": "<string>",
"status": "<string>",
"amount_usd_cents": 123,
"corridor": "<string>",
"created_at": "<string>",
"captured_at": "<string>"
}Payment Intents
Get payment intent
Fetch the current state of a payment intent.
GET
/
v1
/
payment_intents
/
{intent_id}
Get payment intent
curl --request GET \
--url https://api.example.com/v1/payment_intents/{intent_id}import requests
url = "https://api.example.com/v1/payment_intents/{intent_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/payment_intents/{intent_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/payment_intents/{intent_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment_intents/{intent_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"intent_id": "<string>",
"status": "<string>",
"amount_usd_cents": 123,
"corridor": "<string>",
"created_at": "<string>",
"captured_at": "<string>"
}Path parameters
string
required
Zennopay intent ID, e.g.
zp_AbCd1234EfGh5678.Response
string
The intent ID.
string
One of
created, authorized, captured, failed, expired, or refunded.integer
Authorized amount in USD cents.
string
th_promptpay or vn_vietqr.string
RFC 3339 UTC timestamp.
string
Present only when
status is captured.Example
Example uses the sandbox host. Swap tohttps://api.zennopay.com in
production. The legacy api.zennopay.in hosts are still served for existing
integrations. See Environments.
curl https://api.sandbox.zennopay.com/v1/payment_intents/zp_AbCd1234EfGh5678 \
-H "X-Zennopay-Key-Id: acme_sandbox_2026q2" \
-H "X-Zennopay-Timestamp: 2026-05-21T14:30:00Z" \
-H "X-Zennopay-Nonce: ..." \
-H "X-Zennopay-Signature: ..."
curl https://api.zennopay.com/v1/payment_intents/zp_AbCd1234EfGh5678 \
-H "X-Zennopay-Key-Id: acme_prod_2026q2" \
-H "X-Zennopay-Timestamp: 2026-05-21T14:30:00Z" \
-H "X-Zennopay-Nonce: ..." \
-H "X-Zennopay-Signature: ..."
Response
{
"intent_id": "zp_AbCd1234EfGh5678",
"status": "captured",
"amount_usd_cents": 345,
"corridor": "th_promptpay",
"created_at": "2026-05-21T14:30:00Z",
"captured_at": "2026-05-21T14:31:12Z"
}
Was this page helpful?
⌘I