API Commands
[All Commands]

Command: Get_Credit



command Get_Credit

Get status of your credit

Input Parameters ($data):

string ssid Token from Login

Output Responses:

string status ok | error
array data Details about your request
 
array credit  
string amount Amount of your credit
string users Total sub-users credit
string threshold Credit level, when e-mail notifications will be send
string currency 3-Letter ISO code of your currency

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/soap/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];

unset(
$params);

$params = array (
    
"data" => array (
            
"ssid" => $token,
    )
);

$response $client->__call("Get_Credit",$params);

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [credit] => Array ( [amount] => 638754.00 [threshold] => 0.00 [users] => 125.00 [currency] => CZK ) )

API Manual - version from 2023-05-12 12:15:50