Get transaction by ID
curl --request GET \
--url https://api.sbx.moduluslabs.io/reports/v1/transactions/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{id}")
.header("X-API-Key", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.sbx.moduluslabs.io/reports/v1/transactions/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"data": {
"id": "<string>",
"amount": 123,
"currency": "PHP",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"card_brand": "<string>",
"card_last_four": "<string>",
"correlation_id": "<string>",
"amount_details": {
"amount_authorized": 123,
"amount_capturable": 123,
"amount_received": 123,
"amount_refunded": 123,
"original_amount": 123,
"tax_amount": 123,
"final_amount": 123
},
"receipt": {
"receipt_number": "<string>",
"auth_number": "<string>",
"batch_number": "<string>",
"approval_code": "<string>",
"reference_number": "<string>"
},
"merchant_details": {
"merchant_name": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_name": "<string>",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_name": "<string>"
},
"terminal_details": {
"terminal_name": "<string>",
"activation_code": "<string>",
"serial_number": "<string>"
},
"partner_name": "<string>",
"activation_code": "<string>",
"approval_code": "<string>",
"reference_number": "<string>",
"settlement_status": "<string>",
"settled_at": "2023-11-07T05:31:56Z",
"events": [
{
"event_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"amount": "<string>",
"description": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Transaction Reporting API
Get Transaction
Retrieve a single transaction with full detail fields including lifecycle events
GET
/
v1
/
transactions
/
{id}
Get transaction by ID
curl --request GET \
--url https://api.sbx.moduluslabs.io/reports/v1/transactions/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{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.sbx.moduluslabs.io/reports/v1/transactions/{id}")
.header("X-API-Key", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.sbx.moduluslabs.io/reports/v1/transactions/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"data": {
"id": "<string>",
"amount": 123,
"currency": "PHP",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"card_brand": "<string>",
"card_last_four": "<string>",
"correlation_id": "<string>",
"amount_details": {
"amount_authorized": 123,
"amount_capturable": 123,
"amount_received": 123,
"amount_refunded": 123,
"original_amount": 123,
"tax_amount": 123,
"final_amount": 123
},
"receipt": {
"receipt_number": "<string>",
"auth_number": "<string>",
"batch_number": "<string>",
"approval_code": "<string>",
"reference_number": "<string>"
},
"merchant_details": {
"merchant_name": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_name": "<string>",
"branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch_name": "<string>"
},
"terminal_details": {
"terminal_name": "<string>",
"activation_code": "<string>",
"serial_number": "<string>"
},
"partner_name": "<string>",
"activation_code": "<string>",
"approval_code": "<string>",
"reference_number": "<string>",
"settlement_status": "<string>",
"settled_at": "2023-11-07T05:31:56Z",
"events": [
{
"event_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"amount": "<string>",
"description": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Returns the full transaction detail including
amount_details, merchant_details, terminal_details, lifecycle events, and settlement information.Transaction IDs
Transaction IDs vary by payment method:| Payment Method | ID Format | Example |
|---|---|---|
| QR | TransNumber | TN-001 |
| Card-Present | UUID | 550e8400-e29b-41d4-a716-446655440000 |
Response Detail
The detail response includes fields not present in the list endpoint:events— lifecycle events (authorization, capture, refund, etc.) with timestampsapproval_code— processor approval codereference_number— external reference numberactivation_code— terminal device identifier
Next Steps
List Transactions
Browse and filter transactions
List Branches
Get branch UUIDs for filtering
Was this page helpful?
⌘I