Create a betting top-up
curl --request POST \
--url https://api.platnova.com/v1/bills/betting \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"biller": "bet9ja",
"customer_id": "Hassan3330",
"amount": 1000,
"reference": "order-1042",
"customer_name_confirmation": "HASSANA SAIDU"
}
'import requests
url = "https://api.platnova.com/v1/bills/betting"
payload = {
"biller": "bet9ja",
"customer_id": "Hassan3330",
"amount": 1000,
"reference": "order-1042",
"customer_name_confirmation": "HASSANA SAIDU"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
biller: 'bet9ja',
customer_id: 'Hassan3330',
amount: 1000,
reference: 'order-1042',
customer_name_confirmation: 'HASSANA SAIDU'
})
};
fetch('https://api.platnova.com/v1/bills/betting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platnova.com/v1/bills/betting",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'biller' => 'bet9ja',
'customer_id' => 'Hassan3330',
'amount' => 1000,
'reference' => 'order-1042',
'customer_name_confirmation' => 'HASSANA SAIDU'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platnova.com/v1/bills/betting"
payload := strings.NewReader("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platnova.com/v1/bills/betting")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/bills/betting")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"id": "8b8f0d0e-5d6c-4d8e-9d3c-0f4a1c3b2a10",
"reference": "order-1042",
"transaction_reference": "<string>",
"product": "betting",
"biller": "bet9ja",
"customer_id": "Hassan3330",
"customer_name": "HASSANA SAIDU",
"amount": 1000,
"fee": 0,
"currency": "NGN",
"status": "processing",
"failure_reason": "insufficient_provider_balance",
"completed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}Bills
Create Betting Top-up
Debits your NGN wallet amount + fee and tops up the customer’s betting wallet. Answers 202 with status: processing; the outcome arrives as bill.success, bill.failed or bill.reversed.
POST
/
v1
/
bills
/
betting
Create a betting top-up
curl --request POST \
--url https://api.platnova.com/v1/bills/betting \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"biller": "bet9ja",
"customer_id": "Hassan3330",
"amount": 1000,
"reference": "order-1042",
"customer_name_confirmation": "HASSANA SAIDU"
}
'import requests
url = "https://api.platnova.com/v1/bills/betting"
payload = {
"biller": "bet9ja",
"customer_id": "Hassan3330",
"amount": 1000,
"reference": "order-1042",
"customer_name_confirmation": "HASSANA SAIDU"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
biller: 'bet9ja',
customer_id: 'Hassan3330',
amount: 1000,
reference: 'order-1042',
customer_name_confirmation: 'HASSANA SAIDU'
})
};
fetch('https://api.platnova.com/v1/bills/betting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platnova.com/v1/bills/betting",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'biller' => 'bet9ja',
'customer_id' => 'Hassan3330',
'amount' => 1000,
'reference' => 'order-1042',
'customer_name_confirmation' => 'HASSANA SAIDU'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platnova.com/v1/bills/betting"
payload := strings.NewReader("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platnova.com/v1/bills/betting")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/bills/betting")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\",\n \"amount\": 1000,\n \"reference\": \"order-1042\",\n \"customer_name_confirmation\": \"HASSANA SAIDU\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"id": "8b8f0d0e-5d6c-4d8e-9d3c-0f4a1c3b2a10",
"reference": "order-1042",
"transaction_reference": "<string>",
"product": "betting",
"biller": "bet9ja",
"customer_id": "Hassan3330",
"customer_name": "HASSANA SAIDU",
"amount": 1000,
"fee": 0,
"currency": "NGN",
"status": "processing",
"failure_reason": "insufficient_provider_balance",
"completed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}Overview
Debit your NGN walletamount + fee and top up the customer’s betting wallet. Amounts are ₦100 to ₦500,000. reference must be unique across your business; retry a timed-out request with the same reference, never a new one. The request answers 202 with status: processing; the outcome arrives as bill.success, bill.failed or bill.reversed. See Betting top-ups.Authorizations
API key for authentication.
Body
application/json
Example:
"bet9ja"
Example:
"Hassan3330"
NGN, from 100 to 500,000.
Example:
1000
Your reference, unique across your business. Retry a timed-out request with the same one.
Maximum string length:
100Example:
"order-1042"
The name the payer confirmed. Refused with customer_name_mismatch if it does not match the biller's.
Example:
"HASSANA SAIDU"

