MODATA API Documentation
As paid API user on InstantMobileNG, we will assign an account system for you on our api platform which you need to study the api doc to integrate into your existing vtu portal. kindly study the below integration proces to integrate our api into your solution.
Doc Get your Token here https://modata.com.ng/vtu/developer
Doc Get your Network ID for Integration herehttps://modata.com.ng/vtu/developer
AUTHORIZATIONBearer Token
Token
<token>
POST
Buy Data
modata.com.ng/api/data/
Buy Data Endpoint
make a post request to this endpoint with your authorization header and body
AUTHORIZATIONAPI Key
Key
<key>
Value
<value>
HEADERS
Authorization
Token 56487yipxlmJhCBCCaCCD6bsA2Ac9z0xACHB3Ck8r5txAbnB92BIwv3FEAe3
Content-Type
application/json
BODYraw
{
“network”: network_id,
“mobile_number”: “09037346934”,
“plan”: plan_id,
“Ported_number”: true
}
Example Request
Buy Data
curl –location –request POST ‘modata.com.ng/api/data/’ \
–header ‘Authorization: Token 56487yipxlmJhCBCCaCCD6bsA2Ac9z0xACHB3Ck8r5txAbnB92BIwv3FEAe3’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“network”: network_id,
“mobile_number”: “09037346934”,
“plan”: plan_id,
“Ported_number”: true
}’
POST
Buy Airtime TopUp and Get all Airtime Transaction
modata.com.ng/api/topup/
make a post request to this endpoint to buy airtime and get to get all airtime transaction
AUTHORIZATIONAPI Key
Key
<key>
Value
<value>
HEADERS
Authorization
Token 56487yipxlmJhCBCCaCCD6bsA2Ac9z0xACHB3Ck8r5txAbnB92BIwv3FEAe3
Content-Type
application/json
BODYraw
{
“network”: network_id,
“amount”:amount,
“mobile_number”: phone,
“Ported_number”: true,
“airtime_type”: “VTU” //VTU or Share and Sell
}
Example Request
Buy Airtime TopUp and Get all Airtime Transaction
View More
curl –location –request POST ‘modata.com.ng/api/topup/’ \
–header ‘Authorization: Token 56487yipxlmJhCBCCaCCD6bsA2Ac9z0xACHB3Ck8r5txAbnB92BIwv3FEAe3’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“network”: network_id,
“amount”:amount,
“mobile_number”: phone,
“Ported_number”: true,
“airtime_type”: “VTU” //VTU or Share and Sell
}’
v