Add Credit
Add Credit
POST https://kuwait.uigtc.com/capi/v2/cpanel/recharge
This endpoint provides you the payment URL to proceed with payment for recharge and account get credited with successful payment
Headers
Name
Type
Description
x-api-key
string
The API Key of the account provided in UIGTC SMS Panel
Request Body
Name
Type
Description
points
integer
The points to recharge
pay_method
integer
1->KNET 2->Paypal
password
string
The password of your account
username
string
The username/phone number of your account
{
"url": "https://kpaytest.com.kw/kpg/PaymentHTTP.htm?param=paymentInit&trandata=a232514b49f93f487de877202df975ca703d9fbd33fc01b397f5e051a931f13482863a9488cde47406eca2e0975b823338f4c4d5980fbb6855a5a708f36e5fccd076de068e32ee283957632bb0d0d10de636a86f1a294ec31a0d33594f0d2b04e2ad9a01a0201bf9bbad6be563123e0395e2f62491bb1a9ba2358fda6c7db3b5edfdf81259c5c670f3ad304fc418335d9aa6acc276f059bb2060236e10957943370379db8dac9be194ffb5d45e6324db801f8800aa8d3561efa97993de51b3b7653447633298f2dbffdc3d952649f4764f34db0eeddd20a5f8243d2266abccd433a58d32c8c22cb949abfd51d165bbcd279f7e28c8789289546e15768c77f0832a83ca6c60bf620a427bb9385571a046&tranportalId=154701&responseURL=http://localhost/gcc-front-end/api/web/knet_response&errorURL=http://localhost/gcc-front-end/api/web/knet_result"
}Example Request
curl --location --request POST 'https://kuwait.uigtc.com/capi/cpanel/recharge' \
--form 'points="10000"' \
--form 'pay_method="1"' \
--form 'username="XXXXX"' \
--form 'password="********"' \
--form 'api_key="XXXXXX709E808DD188E9167BAFF15E12CD5201E5B185XXXXX"'<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://kuwait.uigtc.com/capi/v2/cpanel/recharge',
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('points' => '10000','pay_method' => '1','username' => 'xxxxxx','password' => '******'),
CURLOPT_HTTPHEADER => array(
'x-api-key: XXXXX0709E808DD188E9167BAFF15E12CD5201E5B185XXXXX'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;Last updated
Was this helpful?