API Commands
[All Commands]

Command: Order_Payment



command Order_Payment

Set order of your sub-user as paid. This command WILL generate invoice.

Input Parameters ($data):

string ssid Token from Login
string payment Order variable symbol you want to set as paid
string amount Order amount
string currency Order currency

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,
            
"payment" => 545125
            
"amount" => 20
            
"currency" => "EUR"
    
)
);

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

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

API Manual - version from 2020-06-03 13:27:22