Actions12
- Account Actions
- B2B Actions
- B2C Actions
- C2B Actions
- Identity Actions
- Pull API Actions
- STK Push Actions
Pull API → Register URL
AI-generatedSummary
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.