Transactions
Get fleet payment transaction details
Uses the same detail notation as the fleet dashboard and verifies that the transaction belongs to the authenticated fleet.
GET
/
public
/
fleets
/
v1
/
transactions
/
{payment_transaction_id}
Get fleet payment transaction details
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"recipient_name": "HPC Indiranagar",
"recipient_operator_name": "HPC Charging",
"transaction_datetime": "2026-09-17T09:22:41Z",
"fleet_driver_name": "Ananya Rao",
"payment_amount_incl_tax_paise": 47200,
"payment_amount_excl_tax_paise": 40000,
"payment_transaction_type": "DEBIT",
"payment_transaction_id": "TXN20260917_7K4N2P9R5T8V3X6Z",
"payment_method": "Wallet",
"payment_external_reference_id": "pay_R8A2mN7K4vQ9Xs",
"payment_transaction_utr": "HDFC2026091700123456",
"fleet_contract_name": "Acme Logistics India Fleet Contract",
"payment_source_bank": "HDFC Bank",
"session_id": "ses_9df5f4f7b0f64f9e"
}{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "the requested resource was not found"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}Authorizations
Response
Fleet payment transaction details.
Was this page helpful?
Get fleet payment transaction details
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/transactions/{payment_transaction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"recipient_name": "HPC Indiranagar",
"recipient_operator_name": "HPC Charging",
"transaction_datetime": "2026-09-17T09:22:41Z",
"fleet_driver_name": "Ananya Rao",
"payment_amount_incl_tax_paise": 47200,
"payment_amount_excl_tax_paise": 40000,
"payment_transaction_type": "DEBIT",
"payment_transaction_id": "TXN20260917_7K4N2P9R5T8V3X6Z",
"payment_method": "Wallet",
"payment_external_reference_id": "pay_R8A2mN7K4vQ9Xs",
"payment_transaction_utr": "HDFC2026091700123456",
"fleet_contract_name": "Acme Logistics India Fleet Contract",
"payment_source_bank": "HDFC Bank",
"session_id": "ses_9df5f4f7b0f64f9e"
}{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "the requested resource was not found"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}
.png?fit=max&auto=format&n=Q9Mj_7gZzDeQpRZZ&q=85&s=81619203ea2696cfd7251205cfbc5afc)