API Commands
[All Commands]

Set_Prices



Command Set_Prices


Change prices in specified pricelist.

Input Parameters ($params):

string ssid Token from Login. (required)
string pricelist Identificator of the pricelist you want to download. (required)
string tld TLD for which you want to change prices. (required)
string currency Currency code the prices use. (required)
array prices List of operations with price (associative array).

Output data:

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,
    
'pricelist' => 'MYPRICELIST',
    
'tld' => 'com',
    
'currency' => 'USD',
    
'prices' => 
    array (
      
'register' => 10.5,
      
'transfer' => 10.5,
      
'renew' => 10.5,
      
'restore' => 135.0,
    ),
  ),
);

$response $client->__call("Set_Prices",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [pricelist] => MYPRICELIST [tld] => com [currency] => USD [prices] => Array ( [register] => 10.5 [transfer] => 10.5 [renew] => 10.5 [restore] => 135 ) ) ) OUTPUT: Array ( [status] => ok )

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