Gotv :: API

Gotv

User Validation:

A customer must be validated before processing subscription. This will return the account status and associated information such as the customer’s name, customer's number, invoice period and due date. 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: GOTV, number: Decoder or Smart Number.

You can use this smart number 2005129242 for testing on GOTV
GOTV JSON return format:
{"details":{"accountStatus":"OPEN","firstName":"KENNY","lastName":"AKINTIMEHIN","customerType":"GOTVSUD","invoicePeriod":1,"dueDate":"2001-01-01T00:00:00+01:00","customerNumber":291631845}}

Get Renewal Details:

This will return renewal amount and due date.

Command: https://mobilenig.com/API/bills/get_renewal_details?username=****&api_key=****&service=****&customerNumber=****
//where username: Use your MobileNig Username, api_key: Your api_key, service: GOTV, customerNumber: customer number gotten from user validation.

You can use this customer number 314745760 for testing on GOTV
GOTV JSON return format:
{"details":{"amount":-400.00,"dueDate":"2021-10-26T00:00:00+01:00"}}

Get Package:

This will return the name on client's current package.

Command: https://mobilenig.com/API/bills/get_package?username=****&api_key=****&service=****&customerNumber=****
//where username: Use your MobileNig Username, api_key: Your api_key, service: GOTV, customerNumber: customer number gotten from user validation.

You can use this customer number 314745760 for testing on GOTV
GOTV JSON return format:
{"packageName":"GOtv Jinja Bouquet"}

Parameters:

Parameter_Name Type Description
username String Your MobileNig username
api_key String The api_key generated on MobileNig
smartno Number The decoder smart card number e.g 2005129242
product_code String The product code of the selected plan, see plans here
customer_name String Customer name gotten from user validation
customer_number Number Customer number gotten from user validation
price Number The price of the selected plan
trans_id Number Unique transaction id e.g 12823327903

Command:

RENEW SUBSCRIPTION
https://mobilenig.com/API/bills/gotv?username=****&api_key=****&smartno=****&customer_name=****&customer_number=****&price=****&trans_id=****
NOTE: Do not include product_code for renew subscription. Also, kindly refer to Get Renewal Details to get transaction price.

CHANGE SUBSCRIPTION
https://mobilenig.com/API/bills/gotv?username=****&api_key=****&smartno=****&product_code=****&customer_name=****&customer_number=****&price=****&trans_id=****
//Replace **** with your username, api_key...

For Api test use https://mobilenig.com/API/bills/gotv_test?username=****&api_key=****&smartno=2005129242&product_code=GOLITE&customer_name=K AKINTIMEHIN&customer_number=291631845&price=400&trans_id=12823327903
Api Example: https://mobilenig.com/API/bills/gotv?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5&smartno=2005129242&product_code=GOLITE&customer_name=K AKINTIMEHIN&customer_number=291631845&price=400&trans_id=12823327903
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, smartno is 2005129242, product_code is GOLITE, customer_name is K AKINTIMEHIN, customer_number is 291631845, price is 400 and trans_id is 12823327903.

Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"122790223","details":{"service":"GOTV","package":"GOtv lite","smartno":"2005129242","price":"400","status":"SUCCESSFUL","balance":"7931"}}
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
ERR209 You are trying to recharge the current plan on the smartcard, kindly make PLAN RENEWAL request

Query:

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

Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"128327903","details":{"service":"GOTV","package":"GOtv lite","smartno":"2005129242","price":"400","status":"SUCCESSFUL"}}
Else, response will be displayed in this format {"code": "ERR204", "description": "Could't find transaction on MobileNig"}

Packages:

Package Product Code Price
GOtv Smallie - monthly GOHAN 900
GOtv Smallie - quarterly GOLITE 2400
GOtv Smallie - yearly GOLTANL 7000
GOtv Supa GOTVSUPA 5500
GOtv Jinja Bouquet GOTVNJ1 1900
GOtv Jolli Bouquet GOTVNJ2 2800
GOtv Max GOTVMAX 4150