This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module Reseller modifyContactRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
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
  • id
  • role (can be admin, tech or billing)
  • isActive (can be 0 or 1)
  • companyName
  • name
  • gender
  • address
  • phone
  • email
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>
Views
Personal tools