Smile Data Bundle
User Validation:
A customer must be validated before processing subscription. This will return the customer’s name.
Request can be made using the smart card number.
Command:
https://mobilenig.com/API/bills/user_check?username=****&api_key=****&service=****&number=****
//where username: Use your MobileNig Username, api_key: Your api_key, service: SMILE_DATA, number: Decoder or Smart Number.
You can use this smart number 1402000567 for testing on SMILE_DATA
SMILE_DATA JSON return format:
{"details":{"firstName":"Sunday","lastName":"Ojo","middleName":""}}
Command:
https://mobilenig.com/API/bills/smile_data?username=****&api_key=****&smartno=****&product_code=****&price=****&trans_id=****
//Replace **** with your username, api_key...
For Api test use https://mobilenig.com/API/bills/smile_data_test?username=****&api_key=****&smartno=1402000567&product_code=APV150&price=4000&trans_id=128233240003
Api Example: https://mobilenig.com/API/bills/smile_data?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5&smartno=1402000567&product_code=APV150&price=4000&trans_id=128233240003
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, smartno is 1402000567, product_code is APV150, price is 4000 and trans_id is 128233240003.
Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"1224000223","details":{"service":"SMILE_DATA","package":"5GB Anytime plan - 7days Validity","smartno":"1402000567","price":"4000","status":"SUCCESSFUL","balance":"7931"}}
Else, one of the responses below will be displayed in this format {"code": "ERR101", "description": "Invalid username or api_key"}
Query:
https://mobilenig.com/API/bills/query?username=****&api_key=****&trans_id=****
//Replace **** with your username, api_key...
Api Example: https://mobilenig.com/API/bills/query?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5trans_id=128233240003
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, trans_id is 128233240003.
Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"1283240003","details":{"service":"SMILE_DATA","package":"5GB Anytime plan - 7days Validity","smartno":"1402000567","price":"4000","status":"SUCCESSFUL"}}
Else, response will be displayed in this format {"code": "ERR204", "description": "Could't find transaction on MobileNig"}