POST: Service Wallet Top Up
This API is used to enable you to top up your service wallet via MPESA
You will make a POST request as described below and the phone number you provided will get an MPESA prompt to enter PIN to complete the top-up request to your service wallet.
API Method
This endoint enable you to top up your service wallet on Pay Hero
POST
https://backend.payhero.co.ke/api/v2/topup
Headers
Name | Type | Description |
---|---|---|
Authorization:* | String | Basic basicAuthToken |
Request Body
Name | Type | Description |
---|---|---|
amount* | Integer | Pass in the amount you want to top up eg: 100 |
phone_number* | String | Pass in the phone number that will be used to facilitate the top up payment via MPESA eg: 0787677676 |
Code Sample
This represents PHP Curl example of how to make the request, you can implement this in your specific language of choice
Last updated