API Commands
[All Commands]

Command: Get_Accountings



command Get_Accountings

Get financial statements from account

Input Parameters ($data):

string ssid Token from Login
string from Date (YYYY-mm-dd)
string to Date (YYYY-mm-dd)

Output Responses:

string status ok | error
array data Details about your request
 
int count Count of items
date from From Date
date to To Date
array accounting
 
datetime date Date of item
string text Text of item
int order Affected OrderID
int sum Accounted amount
int credit Credit

Sample:


<?
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/robot.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,
            
"from" => "2011-10-10",
            
"to" => "2011-10-11"
    
)
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 [from] =>  2011-10-10 [to] =>  2011-10-11 ) OUTPUT: [status] => ok [data] => Array ( [count] =>  1 [from] =>  2011-10-10 [to] =>  2011-10-11 [accounting] => Array ( [date] => 2011-10-10 12:32:12 [text] => Renew_Domain domain.org [order] => 12321 [sum] => 1.32 [credit] => 12.34 ) )

API Manual - version from 2017-11-21 10:46:44