Специально для наших партнеров разработан API интерфейс
                            
                            API Запросы
                                            - my_balance
 - add_service
 - get_service_info
 - suspend_service
 - unsuspend_service
 - terminate_service
 - get_account_services
 - set_type_cancel
 - prolong_service
 - del_ips_from_service
 - add_typecancel
 - terminate_typecancel
 - applycredit
 - get_ips_access_list
 - update_ips_access_list
 - change_service_pass
 - get_available_locations
 
applycredit
                                    Оплата счета с кредитного баланса
Параметры запроса
                                        | Parameter | Type | Description | Required | 
|---|---|---|---|
| action | string | applycredit | Обязательный | 
| hash | string | Ваш хеш для работы с API | Обязательный | 
| userid | int | Ваш номер клиента | Обязательный | 
| invoiceid | int | ID счета дл оплаты | Обязательный | 
Example Request (CURL)
                                        $postfields = array(
				"userid"=>$userid,
				"hash"=>$hash,
				"action"=>"applycredit",
				"invoiceid"=>"123"
				);
$result = connect_client_api_o2proxycom($postfields);
function connect_client_api_o2proxycom($postfields){
	 $url = "https://my.virty.io/includes/client_api/index.php"; # URL to o2proxy.com API
	 $ch = curl_init();
	 curl_setopt($ch, CURLOPT_URL, $url);
	 curl_setopt($ch, CURLOPT_POST, 1);
	 curl_setopt($ch, CURLOPT_TIMEOUT, 1000);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	 curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
	 $data = curl_exec($ch);
	 curl_close($ch);
	 return $data;
}
                                        Ответ:
                                        
                                            string(121) "{"code":"2001","status":"successful"}"