API Commands
[All Commands]

Command: Client_Payment



command Client_Payment

Add credit to your sub-user. This command WILL generate invoice, if you want just correct current amount of credit for any reason, please use command Credit_Correction.

Input Parameters ($data):

string ssid Token from Login
string username Login username of the use you want to add credit
string amount Amount of money to add
string currency Currency of added credit

Output Responses:

string status ok | error

Sample:


<?php

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

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

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
    
"data" => array (
            
"ssid" => $token,
            
"username" => "subdemo"
            "amount" 
=> 20
            
"currency" => "EUR"
    
)
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201f12b466c7347a29 [username] => subdemo [amount] => 20 [currency] => EUR ) OUTPUT: [status] => ok

API Manual - version from 2017-09-15 12:54:14