Auto TopUp

API used to top up airtime when the balance is below a particular amount

Create a new user

POST {{baseUrl}/mtn/autotopup/subscription

Headers

Name
Value

Content-Type

application/json

client-id

your valid client-id

x-api-key

your valid x-api-key

Sample Request

{ "subscriberMSISDN": "08021483214", "thresholdType": "Airtime" }
For MTN Only
{ "subscriberMSISDN": "08021483214", "thresholdType": "Airtime", "airtimeThreshold": "5" }

Body

Name
Type
Description

subscriberMSISDN

string

subscriber phoneNumber

thresholdType

string

Airtime

airtimeThreshold

string

This is only for MTN

Response

{
    "status": 200,
    "description": "Your top up amount has been update successfully.",
    "data": null,
    "responseCode": "00"
}

Last updated