1app
Create Boldd AccountLogin
  • Introduction
  • Authentication
  • Balance
  • Get Exchange Rate
  • Response Code
  • RECEIVE PAYMENTS
    • Payments
      • Initialize Payment
      • Verify Payment
      • Payment List
      • Payment Details
    • Inline/Popup Checkout
    • Payouts / Settlements
      • Payouts List
      • Settlement Transactions
    • Dispute Management
      • Fetch Disputes
      • Accept a Dispute
      • Decline a Dispute
    • Customers List
    • Webhook Notifications
    • Repush Notification
  • Virtual Accounts
    • Get Available Banks
    • Setup Preferred Bank
    • Generate Account
    • Virtual Account List
    • Account Transactions
    • Virtual Account Webhook
      • Notifications history
  • MAKE PAYMENTS
    • Airtime Purchase
    • Send Money
      • Verify Account Number
      • Make Transfer
    • Data Purchase
      • Data Plans
      • Data Bundle
    • Electricity
      • Electricity Billers
      • Verify Meter Number
      • Vend Electricity
    • Cable TV
      • Cable TV List
      • Verify IUC
      • Vend CableTv
    • Bank List
    • Payment Status
  • CUSTOMERS
    • Create Customer
  • VIRTUAL CARDS
    • Create Card Account
    • Cards Issuance
    • Card Funding
    • Card Transactions
    • Get all Cards
    • Cards Details
    • Cards Pan
    • Freeze and Unfreeze Card
  • USD Account
    • Create USD Account
  • IDENTITY
    • BVN Check
    • NIN Checks
  • SUB-ACCOUNTS
    • Create a Sub-Account
    • Attach Bank to a Sub-Account
    • Attach Payout Account
    • Get All Sub-Accounts
    • Sub-Accounts History
    • Sub-Accounts Wallet
  • Miscellaneous
    • Create Wallet
    • Universal Blacklist
  • Contact
    • Contact Us
Powered by GitBook
On this page
  • Cable Tv
  • Sample Response

Was this helpful?

  1. MAKE PAYMENTS
  2. Cable TV

Vend CableTv

Purchase Cable Tv Subscription

Cable Tv

POST {{base_url}}/cabletv

Headers

Name
Type
Description

authorization*

String

Set value to Bearer SECRET_KEY

Request Body

Name
Type
Description

tvno*

String

Decode IUC number

amount*

String

Amount to buy

tv*

String

e.g GOTV, DSTV, STARTIMES

custname*

String

Customer name as shown on the verify cable tv response

custno*

String

Customer number as shown on the verify cable tv response

{
  "status": true,
  "message": "Success",
  "txref": "API8650294032c698",
  "charged": 5030,
  "newbal": 100064.8
}

Take a look at how you might do this:

curl --location --request POST 'https://api.oneappgo.com/v1/cabletv' \
--header 'Authorization: Bearer SECRET_KEY' \
--form 'tvno="7528393100"' \
--form 'tv="GOTV"' \
--form 'custname="IBRAHIM MARY OPE"' \
--form 'custno="376946518"' \
--form 'amount="5000"' \
--form 'reference="OI8UYTEFYDTYTG7"'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api.oneappgo.com/v1/cabletv',
  'headers': {
    'Authorization': 'Bearer SECRET_KEY'
  },
  formData: {
    'tvno': '7528393100',
    'tv': 'GOTV',
    'custname': 'IBRAHIM MARY OPE',
    'custno': '376946518',
    'amount': '5000',
    'reference': 'OI8UYTEFYDTYTG7'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.oneappgo.com/v1/cabletv',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('tvno' => '7528393100','tv' => 'GOTV','custname' => 'IBRAHIM MARY OPE','custno' => '376946518','amount' => '5000','reference' => 'OI8UYTEFYDTYTG7'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer SECRET_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://api.oneappgo.com/v1/cabletv"

payload={'tvno': '7528393100',
'tv': 'GOTV',
'custname': 'IBRAHIM MARY OPE',
'custno': '376946518',
'amount': '5000',
'reference': 'OI8UYTEFYDTYTG7'}
files=[

]
headers = {
  'Authorization': 'Bearer SECRET_KEY'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
var headers = {
  'Authorization': 'Bearer SECRET_KEY'
};
var request = http.MultipartRequest('POST', Uri.parse('https://api.oneappgo.com/v1/cabletv'));
request.fields.addAll({
  'tvno': '7528398333',
  'tv': 'GOTV',
  'custname': 'OLATUNJI OLAJIDE',
  'custno': '176146518',
  'amount': '200',
  'reference': 'OI8UYTEFYDTYTG7'
});

request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}

Sample Response

{
  "status": true,
  "message": "Success",
  "txref": "API8650294032c698",
  "charged": 5030,
  "newbal": 100064.8
}
PreviousVerify IUCNextBank List

Last updated 2 years ago

Was this helpful?