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
(Created page with '==Module Reseller > Modify Contact== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Command n…')
(→Raw XML)
 
(4 intermediate revisions not shown)
Line 19: Line 19:
*'''[[API Format Name|name]]'''
*'''[[API Format Name|name]]'''
*'''gender'''
*'''gender'''
-
*'''[[API Format Address|address]]'''
+
*[[API Format Address|address]]
*'''[[API Format Phone|phone]]'''
*'''[[API Format Phone|phone]]'''
*'''email'''
*'''email'''
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Output'''
|'''Output'''
-
|-
+
|
 +
-
|}
|}
Line 62: Line 63:
===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.''
  <?xml version="1.0" encoding="UTF-8"?>
  <?xml version="1.0" encoding="UTF-8"?>
  <openXML>
  <openXML>
Line 96: Line 98:
  <openXML>
  <openXML>
   <reply>
   <reply>
-
     <code >0</code>
+
     <nowiki><code>0</code></nowiki>
     <desc />
     <desc />
     <data>1</data>
     <data>1</data>
   </reply>
   </reply>
  </openXML>
  </openXML>

Current revision as of 11:58, 17 June 2016

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

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>
  <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