Topup
POSThttps://vend.ismartghana.com/api/topup/topup
Request airtime or bundle purchase for a mobile number. Bearer authentication required.
Use type: TOPUP for direct airtime purchases and type: BUNDLE for network bundle purchases. For Ismart Global transfers, send network: ISMART_TRANSFER, provider: ISMART, type: AIRTIME, and the Ismart Global SKU in bundlecode; the service maps these values to Ismart Global transfer fields (AccountNumber, SendValue, SkuCode, and an internal DistributorRef).
Request
- application/json
Body
request payload
End user mobile number to receive the topup or bundle.
Purchase amount. For Ismart Global this is sent as SendValue.
ISO currency code for the purchase amount.
ISO country code for the destination mobile number.
Destination network. Use mtn, telecel, or airteltigo for Ghana network purchases; use ISMART_TRANSFER for Ismart Global.
Purchase type. Use TOPUP for airtime, BUNDLE for network bundles, and AIRTIME for Ismart Global transfers.
Optional provider override. Use ISMART for Ismart Global.
Bundle or product code. Required for Ismart Global as the Ismart Global SKU code; required for network bundle products where a bundle code is available.
Optional transaction notes.
Optional client tracking id. The service generates one when it is not supplied.
Optional subscriber URL to asynchronously submit results to.
Examples
MTN bundle
{
"mobile": "233553554911",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "mtn",
"notes": "Testing",
"type": "BUNDLE",
"bundlecode": "DATANVDR5WLY"
}
MTN airtime
{
"mobile": "233553554911",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "mtn",
"notes": "Testing",
"type": "TOPUP"
}
Telecel bundle
{
"mobile": "233507064001",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "telecel",
"notes": "Testing",
"type": "BUNDLE",
"bundlecode": "DATANVDR5WLY"
}
Telecel airtime
{
"mobile": "233507064001",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "telecel",
"notes": "Testing",
"type": "TOPUP"
}
AirtelTigo bundle
{
"mobile": "233268401145",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "airteltigo",
"notes": "Testing",
"type": "BUNDLE",
"bundlecode": ""
}
AirtelTigo airtime
{
"mobile": "233268401145",
"amount": 3,
"currency": "EUR",
"country": "GH",
"network": "airteltigo",
"notes": "Testing",
"type": "TOPUP"
}
Ismart Global
{
"currency": "EUR",
"amount": 1,
"mobile": "233553554911",
"network": "ISMART_TRANSFER",
"type": "AIRTIME",
"provider": "ISMART",
"bundlecode": "12F785GH99730",
"notes": "Ismart Global Testing",
"country": "GH"
}
Responses
- 201
- 400
- 401
- 409
request successful
- application/json
- Schema
- Example (from schema)
Schema
data
object
reference no
request status
additional notes.
{
"success": true,
"code": 0,
"message": "OK",
"data": {
"reference": "string",
"statuscode": "string",
"notes": "string"
},
"trackid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"stamp": "2016-08-29T09:12:33.001Z"
}
invalid input, object invalid
Access token is missing or invalid
request failed