M-Pesa icon

M-Pesa

Consume M-Pesa Daraja 3.0 APIs

Actions12

Account → Transaction Status

AI-generated

Summary

Query the status of an M-Pesa transaction by providing the required transaction details.

Inputs

  • Initiator Name (required) — The username of the API operator as set on the M-Pesa portal.
  • Sender Shortcode (Party A) (required) — Your organization shortcode initiating the transaction.
  • Remarks (required) — Comments sent along with the transaction.
  • Queue Timeout URL (required) — URL to receive notification if the request times out.
  • Result URL (required) — URL to receive the transaction result callback.
  • Identifier Type (required) — Type of identifier for the account; options include Shortcode, Phone Number (MSISDN), or Till Number.
  • Transaction ID (required) — The M-Pesa transaction ID to query.
  • Occasion — Optional additional information about the transaction.

Output shape

a single JSON object containing the response from the M-Pesa transaction status query endpoint

Requires valid M-Pesa API credentials including a security credential. The response includes details on the given transaction's current status as returned by the M-Pesa API. Errors related to missing credentials will stop execution unless 'Continue On Fail' is enabled, in which case errors are returned in item JSON.

Links

Discussion