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));{
"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>",
"riskLevel": "low"
}
}
}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));{
"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>",
"riskLevel": "low"
}
}
}Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Fingo transaction ID (e.g., txn_01j7b6f9p5y9h).
Your merchant transaction ID.
Transaction fetched successfully
"success"
"Transaction fetched"
Transaction object returned in API responses.
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
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?