M-Pesa Logs

M-Pesa Logs is the raw audit trail of every mobile-money callback received by the suite - successful and failed - with the full payload, result codes and timestamps. It is the technical reference for diagnosing why a deposit did or did not post and for reconciling against the mobile-money statement.

M-Pesa Logs
M-Pesa Logs — live screen from the BridgeERP MFI Suite.

Workflow

  1. Open Savings > Compliance > M-Pesa Logs.
  2. Search by transaction reference, phone number or date.
  3. Open a log entry to read the full callback payload and result code.
  4. Trace whether the callback matched and posted or fell to the queue.
  5. Use the result code to diagnose failed or stalled deposits.

Fields reference

Every field on this screen, drawn from the live data model.

FieldTypeRequiredDescription
M-Pesa Reference
mpesa_reference
TextTransID / ConversationID / CheckoutRequestID / MpesaReceiptNumber
Direction
direction
Choice: Inbound (Callback), Outbound (API Call)YesDirection
Type
type
Choice: C2B Validation, C2B Confirmation, B2C Payment Request, B2C Result, B2C Queue Timeout, STK Push Request, STK Callback, OAuth TokenYesType
Payload
payload
Long textPayload
Response
response
Long textResponse
Result Code
result_code
TextResult Code
Result Description
result_desc
TextResult Description
Savings Account
account_id
Link → mfi.savings.accountSavings Account
Savings Transaction
transaction_id
Link → mfi.savings.transactionSavings Transaction
Loan
loan_id
Link → mfi.loanLoan
Disbursement
disbursement_id
Link → mfi.loan.disbursementDisbursement
Repayment
repayment_id
Link → mfi.loan.repaymentRepayment
Mobile Number
msisdn
TextMobile Number
Amount
amount
MoneyAmount
Currency
currency_id
Link → res.currencyCurrency
HTTP Endpoint
endpoint
TextHTTP Endpoint
Idempotency Key
idempotency_key_id
Link → mfi.mpesa.idempotency.keyIdempotency Key
Replay (idempotent hit)
is_replay
Yes/NoReplay (idempotent hit)
Unmatched Queue Entry
unmatched_id
Link → mfi.mpesa.unmatched.callbackUnmatched Queue Entry

Notes & rules

  • Records on mfi.mpesa.callback.log capturing every callback received.
  • Stores full payload, result codes and timestamps for audit.
  • First place to look when a mobile-money deposit fails to post.

Technical model: mfi.mpesa.callback.log · Record: M-Pesa Callback / API Log

Was this page helpful?