Overview
This section outlines the recommended flow for integrating IUC Verification services on the @jannah_opt('site_name') RESTful API.
Available Endpoints
To integrate the @jannah_opt('site_name') IUC Verification Payment RESTful API, the following parameters apply:
- iuc - The decoder IUC number
- cable - The cable provider ID
Verify IUC Number
To verify an IUC number, use a GET request with the endpoint below:
@jannah_opt('site_url')/api/cable/cable-validation?iuc=12345555&cable=1
Code Sample
$url = '@jannah_opt('site_url')/api/cable/cable-validation?iuc=12345555&cable=1';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [
"Authorization: Bearer {{ $user->api_token }}",
'Content-Type: application/json'
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
Expected Response
{
"status": "success",
"name": "UIKING CO"
}