API Module Customer modifyCustomerRequest
From Openprovider API documentation
(Difference between revisions)
(→Using PHP class) |
(→Raw XML) |
||
Line 87: | Line 87: | ||
===Raw XML=== | ===Raw XML=== | ||
''Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.'' | ''Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.'' | ||
- | + | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <openXML> | ||
+ | <reply> | ||
+ | < code>0</code> | ||
+ | <desc></desc> | ||
+ | </reply> | ||
+ | </openXML> |
Revision as of 12:03, 8 June 2016
Contents |
Module Customer > Modify
Module | customer |
Command name | modifyCustomerRequest |
Use | Changes the data of an existing customer object |
Input |
|
Output |
- |
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('modifyCustomerRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'handle' => 'AJ001927-NL', 'phone' => array( 'countryCode' => '+31', 'areaCode' => '10', 'subscriberNumber' => '4482299' ), 'fax' => array( 'countryCode' => '+31', 'areaCode' => '10', 'subscriberNumber' => '2440250' ), 'address' => array( 'street' => 'Nieuwe Binnenweg', 'number' => '137', 'suffix' => 'a', 'zipcode' => '3014 GJ', 'city' => 'Rotterdam', 'state' => 'Zuid-Holland', 'country' => 'NL', ), 'email' => 'support@openprovider.nl', 'additionalData' => array( 'birthCity' => 'Amsterdam', 'birthDate' => '1971-02-14', 'socialSecurityNumber' => '771268635', 'companyRegistrationNumber' => '115372' ), 'extensionAdditionalData' => array( array( 'name' => 'pro', 'data' => array( 'profession' => 'software developer', 'authorityName' => 'openprovider', 'licenseNumber' => '12345678', 'authorityUrl' => 'http://openprovider.com' ) ), array( 'name' => 'jobs', 'data' => array( 'website' => 'http://openprovider.com' ) ) ), ));
Raw XML
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc></desc> </reply> </openXML>