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 retrieveContactRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Undo revision 165 by WikiSysop (Talk))
(Raw XML)
 
(4 intermediate revisions not shown)
Line 9: Line 9:
|-
|-
|'''Use'''
|'''Use'''
-
|Retrieves information about a contact in your reseller account
+
|Retrieves information about responsible contacts (administrative, technical or billing) in your reseller account
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Input'''
|'''Input'''
Line 22: Line 22:
*[[API Format Phone|phone]]
*[[API Format Phone|phone]]
*email
*email
-
*role
+
*role ''(can be admin, tech or billing)''
*isActive
*isActive
*username
*username
Line 37: Line 37:
===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 51: Line 52:
  <openXML>
  <openXML>
   <reply>
   <reply>
-
     <code >0</code>
+
     <nowiki><code>0</code></nowiki>
     <desc />
     <desc />
     <data>
     <data>

Current revision as of 11:49, 17 June 2016

Contents

Module Reseller > Retrieve Contact

Module reseller
Command name retrieveContactResellerRequest
Use Retrieves information about responsible contacts (administrative, technical or billing) in your reseller account
Input
  • id
Output
  • companyName
  • name
  • address
  • phone
  • email
  • role (can be admin, tech or billing)
  • isActive
  • username

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('retrieveContactRequest')
 ->setAuth(array('username' => 'username', 'password' => 'password'))
 ->setArgs(array(
   'id' => 2292
));

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>
  <retrieveContactRequest>
    <id>2292</id>
  </retrieveContactRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    <code>0</code>
    <desc />
    <data>
      <id>2292</id>
      <companyName></companyName>
      <name>
        <initials></initials>
        <firstName>Will</firstName>
        <prefix></prefix>
        <lastName>Black</lastName>
      </name>
      <gender>M</gender>
      <phone>
        <countryCode>+31</countryCode>
        <areaCode>10</areaCode>
        <subscriberNumber>4482292</subscriberNumber>
      </phone>
      <address>
        <street></street>
        <number></number>
        <zipcode></zipcode>
        <city></city>
        <country>NL</country>
      </address>
      <email>support@openprovider.nl</email>
      <role>admin</role>
      <isActive>1</isActive>
      <username>willb</username>
    </data>
  </reply>
</openXML>
Views
Personal tools