Skip to main content
GET
/
v1
/
transaction
JavaScript
import FingoPay from '@fingoafrica/fingo-pay';

const client = new FingoPay({
  apiKey: process.env['FINGO_PAY_API_KEY'], // This is the default and can be omitted
});

const transaction = await client.transactions.get();

console.log(transaction.data);
{
  "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
  }
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...

Query Parameters

transactionId
string

Fingo transaction ID (e.g., txn_01j7b6f9p5y9h).

merchantTransactionId
string

Your merchant transaction ID.

Response

Transaction fetched successfully

status
string
Example:

"success"

message
string
Example:

"Transaction fetched"

data
object

Transaction object returned in API responses.