Verify Betting Customer
LIVEQuick Summary
Verify a betting account and retrieve the registered customer name before funding. This endpoint helps you confirm the account is valid and see who it belongs to before committing to a wallet funding transaction.
Endpoint
Send a POST request with the provider and customer ID in the request body.
https://pairgate.com/api/v1/bet/verify
https://pairgate.com/api/v1/test/bet/verify
Authentication
This request requires a valid Bearer token.
| Header | Value | Description |
|---|---|---|
Authorization |
Bearer {token}
|
Your unique API authorization token |
Content-Type |
application/json
|
Required for POST requests |
Body Parameters
Both parameters are required. Send them as JSON in the request body.
| Parameter | Type | Required | Description |
|---|---|---|---|
provider_id |
string | Yes | Provider slug (e.g. bet9ja, sportybet) |
customer_id |
string | Yes | Betting account ID / customer reference |
Code Examples
Choose your preferred language below. Replace the parameters and YOUR_API_KEY with your actual values.
// Verify Betting Customer
$response = Http::withHeaders([
'Authorization' => 'Bearer YOUR_API_KEY',
'Content-Type' => 'application/json',
])->post('https://pairgate.com/api/v1/bet/verify', [
'provider_id' => 'bet9ja',
'customer_id' => '1234567890',
]);
$result = $response->json();
dd($result);
curl -X POST "https://pairgate.com/api/v1/bet/verify" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider_id": "bet9ja",
"customer_id": "1234567890"
}'
const axios = require('axios');
const verifyBettingCustomer = async () => {
try {
const response = await axios.post(
'https://pairgate.com/api/v1/bet/verify',
{
provider_id: 'bet9ja',
customer_id: '1234567890'
},
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
);
console.log(response.data);
} catch (error) {
console.error(error.response?.data || error.message);
}
};
verifyBettingCustomer();
import requests
import json
url = "https://pairgate.com/api/v1/bet/verify"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"provider_id": "bet9ja",
"customer_id": "1234567890"
}
try:
response = requests.post(url, headers=headers, json=payload)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2))
except requests.exceptions.RequestException as e:
print(f"Error: {e}")
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
HttpClient client = HttpClient.newHttpClient();
String jsonBody = "{"
+ "\"provider_id\": \"bet9ja\","
+ "\"customer_id\": \"1234567890\""
+ "}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://pairgate.com/api/v1/bet/verify"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(jsonBody))
.build();
try {
HttpResponse response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
} catch (Exception e) {
System.err.println("Error: " + e.getMessage());
}
Example Request Body
{
"provider_id": "bet9ja",
"customer_id": "1234567890"
}
Response Format
Success Response (200)
{
"code": 200,
"status": "success",
"data": {
"status": true,
"customer_name": "John Doe"
}
}
Test Response (200)
{
"code": 200,
"status": "success",
"data": {
"test_mode": true,
"message": "This is a test — no API call made.",
"status": true,
"customer_name": "Test Customer (Sandbox)"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
status |
boolean | true if the account is valid |
customer_name |
string | Name registered on the betting account |
Error Responses
The following errors may occur when calling this endpoint.
| Status | Code | Description |
|---|---|---|
| 422 | Invalid provider |
Provider not found or inactive |
| 401 | Missing API key |
No Bearer token provided |
| 401 | Invalid API key |
Token does not match any active key |
| 403 | Suspended |
API key or account has been suspended |
| 429 | Rate limited |
Too many requests |