Get Transaction
curl --request GET \
--url http://localhost:8081/transactions/{transaction_id}import requests
url = "http://localhost:8081/transactions/{transaction_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8081/transactions/{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_PORT => "8081",
CURLOPT_URL => "http://localhost:8081/transactions/{transaction_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 := "http://localhost:8081/transactions/{transaction_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("http://localhost:8081/transactions/{transaction_id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8081/transactions/{transaction_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"transaction_id": "txn_123",
"amount": 1000,
"currency": "USD",
"source": "balance_123",
"destination": "balance_456",
"reference": "ref_001",
"description": "Payment",
"status": "applied",
"created_at": "2024-01-15T10:30:00Z",
"meta_data": {
"key": "value"
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Transactions
Get Transaction
Retrieves a transaction by its transaction ID. Use this to check evaluation results, audit transaction details, or verify processing status.
GET
/
transactions
/
{transaction_id}
Get Transaction
curl --request GET \
--url http://localhost:8081/transactions/{transaction_id}import requests
url = "http://localhost:8081/transactions/{transaction_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8081/transactions/{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_PORT => "8081",
CURLOPT_URL => "http://localhost:8081/transactions/{transaction_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 := "http://localhost:8081/transactions/{transaction_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("http://localhost:8081/transactions/{transaction_id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8081/transactions/{transaction_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"transaction_id": "txn_123",
"amount": 1000,
"currency": "USD",
"source": "balance_123",
"destination": "balance_456",
"reference": "ref_001",
"description": "Payment",
"status": "applied",
"created_at": "2024-01-15T10:30:00Z",
"meta_data": {
"key": "value"
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Path Parameters
The unique transaction ID to retrieve
Response
Transaction retrieved successfully
Unique transaction identifier
Transaction amount
Currency code
Source balance identifier
Destination balance identifier
Unique reference identifier
Transaction description
Transaction status
Creation timestamp
Additional metadata
.png?fit=max&auto=format&n=0JF6z69u57hmqsWm&q=85&s=531373acedba0eb783b669f6d558dfd8)