Skip to main content
GET
/
v1
/
transaction
Get transaction by ID or merchantTransactionId
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"
    }
  }
}

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.