Validate a betting customer
curl --request POST \
--url https://api.platnova.com/v1/bills/betting/validate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"biller": "bet9ja",
"customer_id": "Hassan3330"
}
'import requests
url = "https://api.platnova.com/v1/bills/betting/validate"
payload = {
"biller": "bet9ja",
"customer_id": "Hassan3330"
}
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'})
};
fetch('https://api.platnova.com/v1/bills/betting/validate', 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/validate",
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'
]),
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/validate"
payload := strings.NewReader("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\"\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/validate")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/bills/betting/validate")
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}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"biller": "<string>",
"customer_id": "<string>",
"customer_name": "HASSANA SAIDU",
"can_vend": true,
"min_amount": 100,
"max_amount": 500000
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}Bills
Validate Betting Customer
Ask the biller who owns a customer ID. Show customer_name to the payer and have them confirm it before you create a top-up.
POST
/
v1
/
bills
/
betting
/
validate
Validate a betting customer
curl --request POST \
--url https://api.platnova.com/v1/bills/betting/validate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"biller": "bet9ja",
"customer_id": "Hassan3330"
}
'import requests
url = "https://api.platnova.com/v1/bills/betting/validate"
payload = {
"biller": "bet9ja",
"customer_id": "Hassan3330"
}
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'})
};
fetch('https://api.platnova.com/v1/bills/betting/validate', 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/validate",
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'
]),
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/validate"
payload := strings.NewReader("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\"\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/validate")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"biller\": \"bet9ja\",\n \"customer_id\": \"Hassan3330\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/bills/betting/validate")
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}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"biller": "<string>",
"customer_id": "<string>",
"customer_name": "HASSANA SAIDU",
"can_vend": true,
"min_amount": 100,
"max_amount": 500000
}
}{
"status": true,
"message": "<string>",
"error": [
"<string>"
],
"data": {
"code": "<string>"
}
}Overview
Ask the biller who owns a customer ID. Show the returnedcustomer_name to the payer and have them confirm it before creating a top-up: a mistyped ID is often someone else’s real account. The ID’s format depends on the biller (SportyBet takes a phone number); a refused ID answers 422 invalid_customer with the biller’s reason in message.Authorizations
API key for authentication.
Body
application/json

