M-Pesa icon

M-Pesa

Consume M-Pesa Daraja 3.0 APIs

Actions12

Pull API → Register URL

AI-generated

Summary

Register the callback URL to receive pull transaction notifications for a specified M-Pesa shortcode.

Inputs

  • Short Code (required) — Your M-Pesa shortcode for pull transactions.
  • Request Type (required) — Type of pull request, typically 'Pull' by default.
  • Nominated Number (required) — Phone number designated to receive pull transaction notifications.
  • Callback URL (required) — The callback URL where pull transaction notifications will be sent.

Output shape

a single JSON object

Returns the API response confirming registration success or failure.

Examples

Example 1: Register a callback URL to receive pull transaction notifications for a given shortcode.

Set the Short Code to your M-Pesa pull transaction shortcode, Request Type to 'Pull', Nominated Number to the notification recipient phone number, and specify the HTTPS-accessible Callback URL to receive notifications.

Links

Discussion