Spectranet Pin :: API

Spectranet Pin

Parameters:

Parameter_Name Type Description
username String Your MobileNig username
api_key String The api_key generated on MobileNig
product_code String The product code of the selected plan, see plans here
price Number The price of the selected plan
trans_id Number Unique transaction id e.g 128233250003

Command:

https://mobilenig.com/API/bills/spectranet?username=****&api_key=****&product_code=****&price=****&trans_id=****
//Replace **** with your username, api_key...

For Api test use https://mobilenig.com/API/bills/spectranet_test?username=****&api_key=****&product_code=SPEC50price=5000&trans_id=128233250003
Api Example: https://mobilenig.com/API/bills/spectranet?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5&product_code=SPEC50price=5000&trans_id=128233250003
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, product_code is SPEC50, price is 5000 and trans_id is 128233250003.

Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"128217008803","details":{"service":"SPECTRANET","package":"#5000 Spectranet Pin","pins":{"serial_number":"2301005000043530","pin":"1119190125","value":5000,"expiresOn":"2020-05-31"},"price":"5000","status":"SUCCESSFUL","balance":"15256"}}
Else, one of the responses below will be displayed in this format {"code": "ERR101", "description": "Invalid username or api_key"}

Responses:

Code Description
ERR101 Invalid username or api_key
ERR102 Api service is currently unavailable
ERR103 Requested service is currently unavailable
ERR104 User Suspended
ERR105 Transaction id already exist, kindly generate a unique id
ERR106 Insufficient Balance
ERR107 Transaction Unsuccessful
ERR202 Incomplete Parameters
ERR206 Duplicate transaction, same order details had been made few minutes ago
ERR208 Product code does not tally with price

Query:

https://mobilenig.com/API/spectranet_query?username=****&api_key=****&trans_id=****
//Replace **** with your username, api_key...
Api Example: https://mobilenig.com/API/spectranet_query?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5trans_id=128233250003
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, trans_id is 128233250003.

Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"128217008803","details":{"service":"SPECTRANET","package":"#5000 Spectranet Pin","pins":{"serial_number":"2301005000043530","pin":"1119190125","value":"5000"},"price":"5000","status":"SUCCESSFUL"}}
Else, response will be displayed in this format {"code": "ERR204", "description": "Could't find transaction on MobileNig"}

Packages:

Package Product Code Price
#1000 Spectranet Pin SPEC10 1000
#2000 Spectranet Pin SPEC20 2000
#5000 Spectranet Pin SPEC50 5000
#7000 Spectranet Pin SPEC70 7000
#10000 Spectranet Pin SPEC100 10000