API Commands
[All Commands]

Command: Credit_Correction



command Credit_Correction

Correct credit amount of your sub-users. The amount you specify in this command will be added to current amount. Use negative values for subtracting credit. Please note that currency will depend on current user setting.

Input Parameters ($data):

string ssid Token from Login
string username Login username of the user you want to add credit
string amount Amount of money to add/subtract
string reason Human readable reason for this operation

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,
            
"reason" => "Create_Domain example.com - already charged"
    
)
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201f12b466c7347a29 [username] => subdemo [amount] => -20 [reason] => Create_Domain example.com - already charged ) OUTPUT: [status] => ok

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