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 createContactRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Reseller > Retrieve Contact== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Command…')
Line 1: Line 1:
-
==Module Reseller > Retrieve Contact==
+
==Module Reseller > Retrieve Create==
{| border="1" cellpadding="4"
{| border="1" cellpadding="4"
|- style="background-color:#BBBBBB;"
|- style="background-color:#BBBBBB;"
Line 6: Line 6:
|- style="background-color:#EEEEEE;"
|- style="background-color:#EEEEEE;"
|'''Command name'''
|'''Command name'''
-
|retrieveContactResellerRequest
+
|createContactResellerRequest
|-
|-
|'''Use'''
|'''Use'''
-
|Retrieves information about a contact in your reseller account
+
|Creates a new contact in your reseller account
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Input'''
|'''Input'''
Line 18: Line 18:
*'''isActive''' ''(can be 0 or 1)''
*'''isActive''' ''(can be 0 or 1)''
*companyName
*companyName
-
*vat
 
*'''[[API Format Name|name]]'''
*'''[[API Format Name|name]]'''
*'''gender'''
*'''gender'''

Revision as of 09:19, 26 January 2011

Contents

Module Reseller > Retrieve Create

Module reseller
Command name createContactResellerRequest
Use Creates a new contact in your reseller account
Input
  • username
  • password
  • role (can be admin, tech or billing)
  • isActive (can be 0 or 1)
  • companyName
  • name
  • gender
  • address
  • phone
  • email
Output
  • id

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('createContactRequest')
 ->setAuth(array('username' => 'username', 'password' => 'password'))
 ->setArgs(array(
   'username' => 'newUser',
   'password' => 'newPassword',
   'role'     => 'tech',
   'isActive' => 1,

   'name' => array(
     'initials' => 'J.B.',
     'firstName' => 'John',
     'prefix' => 'van',
     'lastName' => 'Halen',
   ),

   'gender' => 'M', 

   'phone' => array(
     'countryCode' => '+31',
     'areaCode' => '10',
     'subscriberNumber' => '4482299'
   ),

   'email' => 'support@openprovider.nl',
));

Raw XML

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <createContactRequest>
    <username>newUser</username>
    <password>newPassword</password>
    <role>tech</role>
    <isActive>1</isActive>
    <name>
      <initials>J.B.</initials>
      <firstName>John</firstName>
      <prefix>van</prefix>
      <lastName>Halen</lastName>
    </name>
    <gender>M</gender>
    <phone>
      <countryCode>+31</countryCode>
      <areaCode>10</areaCode>
      <subscriberNumber>4482299</subscriberNumber>
    </phone>
    <email>support@openprovider.nl</email>
  </createContactRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    0
    <desc />
    <data>
      <id>5391</id>
    </data>
  </reply>
</openXML>
Views
Personal tools