const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Transactions fetched",
"data": {
"items": [
{
"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"
}
}
],
"count": 150,
"startDate": "2025-01-01",
"endDate": "2025-01-31"
}
}List transactions within a date range. Both startDate and endDate are required. Results are returned in descending order by creation time.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Transactions fetched",
"data": {
"items": [
{
"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"
}
}
],
"count": 150,
"startDate": "2025-01-01",
"endDate": "2025-01-31"
}
}Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Start date for the query range (ISO 8601 format, e.g., 2025-01-01).
End date for the query range (ISO 8601 format, e.g., 2025-01-31).
Filter by transaction type.
charge, transfer, payment, settlement, airtime, reversal, bank_deposit, bank_withdrawal Filter by transaction status.
pending, completed, failed, settled, initiated, rejected Filter by account type.
collections, payouts Filter by specific account number.
Filter by customer ID.
[Enterprise] Filter transactions by dedicated shortcode number. Returns only transactions routed through the specified shortcode. The shortcode must belong to your organization.
Maximum number of results to return.
1 <= x <= 10000Transactions fetched successfully
"success"
"Transactions fetched"
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
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 Number of transactions returned
150
"2025-01-01"
"2025-01-31"
Was this page helpful?