API Module Reseller modifyContactRequest
From Openprovider API documentation
(Difference between revisions)
Line 97: | Line 97: | ||
<openXML> | <openXML> | ||
<reply> | <reply> | ||
- | <code >0</code> | + | < code>0</code> |
<desc /> | <desc /> | ||
<data>1</data> | <data>1</data> | ||
</reply> | </reply> | ||
</openXML> | </openXML> |
Revision as of 09:23, 26 January 2011
Contents |
Module Reseller > Modify Contact
Module | reseller |
Command name | modifyContactResellerRequest |
Use | Modifies data of an existing contact in your reseller account |
Input | |
Output |
- |
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('modifyContactRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'id' => 5390, 'type' => 'billing', 'companyName' => 'Billing Co', 'name' => array( 'initials' => 'M.', 'firstName' => 'Mark', 'lastName' => 'Dollar', ), 'address' => array( 'street' => 'Pennylane', 'number' => '40', 'zipcode' => '1024 AN', 'city' => 'Amsterdam', 'country' => 'NL', ), 'phone' => array( 'countryCode' => '+31', 'areaCode' => '20', 'subscriberNumber' => '4482299' ), 'email' => 'billing@openprovider.nl', ));
Raw XML
<?xml version="1.0" encoding="UTF-8"?> <openXML> <credentials> <username>username</username> <password>password</password> </credentials> <modifyContactRequest> <id>5390</id> <type>billing</type> <companyName>Billing Co</companyName> <name> <initials>M.</initials> <firstName>Mark</firstName> <lastName>Dollar</lastName> </name> <address> <street>Pennylane</street> <number>40</number> <zipcode>1024 AN</zipcode> <city>Amsterdam</city> <country>NL</country> </address> <phone> <countryCode>+31</countryCode> <areaCode>20</areaCode> <subscriberNumber>4482299</subscriberNumber> </phone> <email>billing@openprovider.nl</email> </modifyContactRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc /> <data>1</data> </reply> </openXML>