API Commands
[All Commands]

Command: Update_Contact



command Update_Contact

Update contact

Input Parameters ($data):

string ssid Token from Login
array contact Data about contact
string id ID of updating contact
string name Name of person (optionally)
string surname Surname of person (optionally)
string street Address of contact (optionally)
string city City of contact (optionally)
string pc ZIP code of contact (optionally)
string sp State of contact (optionally)
string cc ISO Country Code of contact (optionally)
string phone Phone of contact in format +1.234567890 (optionally)
string fax Faxsimile of contact in format +1.234567890 (optionally)
string email Email of contact (optionally)

Output Responses:

string    status    ok | error
array    orders    Order details if order is created.
string    register    Affected register.
int    orderid    Order ID.
 

Sample:


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

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

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

$token $response["data"]["ssid"];

unset(
$params);

$con["name"] = "Pepa";
$con["surname"] = "Novák";
$con["org"] = "domena s.r.o.";
$con["street"] = "Bořivojova 35";
$con["city"] = "Prague";
$con["cc"] = "CZ";
$con["pc"] = "130 00";
$con["phone"] = "+1.234567890";
$con["email"] = "info@domena.tld";
$con["id"] = "G-000008";

$params = array (
    
"data" => array (
        
"ssid" => $token,
        
"contact" => $con
    
)
);

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

?>
INPUT: [data] => Array ( [ssid] => abcdef123 [contact] => Array ( [name] => Pepa [surname] => Novák [org] => Firma s.r.o. [street] => Bořivojova 35 [city] => Prague [cc] => CZ [pc] => 130 00 [phone] => +1.234567890 [email] => info@domena.tld [id] => �G-000008 ) ) OUTPUT: [status] => ok

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