API Commands
[All Commands]

Get_Pricelist



Command Get_Pricelist


Return all price information in specified pricelist.

Input Parameters ($params):

string ssid Token from Login. (required)
string pricelist Identificator of the pricelist you want to download. (required)

Output data:

string status ok | error
array data Array of TLDs, array key is the TLD.
 
string currency Currency code the prices use.
array prices List of operations with price (associative array).

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,
    
'pricelist' => 'MYPRICELIST',
  ),
);

$response $client->__call("Get_Pricelist",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [pricelist] => MYPRICELIST ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [com] => Array ( [currency] => USD [prices] => Array ( [register] => 20.50 [renew] => 20.50 [transfer] => 20.50 [restore] => 135.00 ) ) [org] => Array ( [currency] => EUR [prices] => Array ( [register] => 18.00 [renew] => 18.00 [transfer] => 0 [restore] => 18.00 ) ) ) )

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