const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fingopay.io/v1/transaction"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.fingopay.io/v1/transaction \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fingopay.io/v1/transaction"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fingopay.io/v1/transaction")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fingopay.io/v1/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}using RestSharp;
var options = new RestClientOptions("https://api.fingopay.io/v1/transaction");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"status": "success",
"message": "Transaction fetched",
"data": {
"publicId": "txn_01j7b6f9p5y9h",
"status": "completed",
"currency": "KES",
"accountType": "collections",
"type": "charge",
"paymentMethod": "mobile_money",
"processor": "mpesa",
"createdAt": 1723717200000,
"updatedAt": 1723717320000,
"merchantTransactionId": "mtx_123",
"message": "Payment completed successfully",
"amount": 10000,
"chargedAmount": 10000,
"processorReference": "ODI31ABC123",
"phoneNumber": "+254712345678",
"narration": "Invoice #1234",
"customerId": "<string>",
"customer": {},
"fees": 100,
"metadata": {},
"subMerchantId": "<string>",
"subMerchantDetails": {
"name": "Nairobi West Branch",
"legalName": "Nairobi West Branch Limited",
"businessType": "Limited Liability Company",
"email": "jsmith@example.com",
"phoneNumber": "+254712345678",
"businessCertNo": "<string>",
"taxId": "<string>",
"economicSector": "<string>"
}
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}Get transaction by ID or merchantTransactionId
Retrieve a single transaction by either its Fingo transaction ID or your merchant transaction ID. Provide exactly one of the two parameters.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fingopay.io/v1/transaction"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.fingopay.io/v1/transaction \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fingopay.io/v1/transaction"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fingopay.io/v1/transaction")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fingopay.io/v1/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}using RestSharp;
var options = new RestClientOptions("https://api.fingopay.io/v1/transaction");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"status": "success",
"message": "Transaction fetched",
"data": {
"publicId": "txn_01j7b6f9p5y9h",
"status": "completed",
"currency": "KES",
"accountType": "collections",
"type": "charge",
"paymentMethod": "mobile_money",
"processor": "mpesa",
"createdAt": 1723717200000,
"updatedAt": 1723717320000,
"merchantTransactionId": "mtx_123",
"message": "Payment completed successfully",
"amount": 10000,
"chargedAmount": 10000,
"processorReference": "ODI31ABC123",
"phoneNumber": "+254712345678",
"narration": "Invoice #1234",
"customerId": "<string>",
"customer": {},
"fees": 100,
"metadata": {},
"subMerchantId": "<string>",
"subMerchantDetails": {
"name": "Nairobi West Branch",
"legalName": "Nairobi West Branch Limited",
"businessType": "Limited Liability Company",
"email": "jsmith@example.com",
"phoneNumber": "+254712345678",
"businessCertNo": "<string>",
"taxId": "<string>",
"economicSector": "<string>"
}
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>",
"requestId": "<string>"
}
}Authorizations
Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Query Parameters
Fingo transaction ID (e.g., txn_01j7b6f9p5y9h).
Your merchant transaction ID.
Response
Transaction fetched successfully
"success"
"Transaction fetched"
Transaction object returned in API responses.
Hide child attributes
Hide child attributes
Fingo transaction ID
"txn_01j7b6f9p5y9h"
pending, completed, failed, settled, initiated, rejected "completed"
"KES"
collections, payouts "collections"
charge, transfer, payment, settlement, airtime, reversal, bank_deposit, bank_withdrawal "charge"
mobile_money, bank "mobile_money"
mpesa, choicebank "mpesa"
Unix timestamp in milliseconds
1723717200000
Unix timestamp in milliseconds
1723717320000
Your merchant reference
"mtx_123"
"Payment completed successfully"
Transaction amount in smallest unit
10000
Amount charged to customer
10000
Reference from payment processor
"ODI31ABC123"
"+254712345678"
"Invoice #1234"
Internal customer ID
Customer details if available
Total fees charged (in smallest unit)
100
Metadata echoed from the original request. Can include enterprise keys such as subMerchantDetails.
Organization-scoped sub-merchant identifier supplied in the request.
Optional sub-merchant enrichment details when available.
Hide child attributes
Hide child attributes
Display/trading name for the sub-merchant.
"Nairobi West Branch"
Registered legal name for the sub-merchant.
"Nairobi West Branch Limited"
Optional business entity type.
"Limited Liability Company"
Optional sub-merchant contact email.
Optional sub-merchant contact phone number.
"+254712345678"
Optional business registration certificate number.
Optional tax identifier (for example KRA PIN).
Optional economic sector reference.
Optional risk tier used for reconciliation and post-transaction controls.
low, medium, high Was this page helpful?