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 modifyResellerRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
Line 53: Line 53:
===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>

Revision as of 11:16, 23 March 2012

Contents

Module Reseller > Modify

Module reseller
Command name modifyResellerRequest
Use Modifies the reseller data in your reseller account
Input
Output

-

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('modifyResellerRequest')
 ->setAuth(array('username' => $username, 'password' => $password))
 ->setArgs(array(
   'address' => array(
     'street' => 'Willem Buytewechstraat',
     'number' => '40',
     'zipcode' => '3024 BN',
     'city' => 'Rotterdam',
     'state' => 'Zuid-Holland',
     'country' => 'NL',
   ),
       
   'phone' => array(
     'countryCode' => '+31',
     'areaCode' => '10',
     'subscriberNumber' => '4482292'
   ),
       
   'fax' => array(
     'countryCode' => '+31',
     'areaCode' => '10',
     'subscriberNumber' => '2440250'
   ),
));

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>
  <modifyResellerRequest>
    <address>
      <street>Willem Buytewechstraat</street>
      <number>40</number>
      <zipcode>3024 BN</zipcode>
      <city>Rotterdam</city>
      <state>Zuid-Holland</state>
      <country>NL</country>
    </address>
    <phone>
      <countryCode>+31</countryCode>
      <areaCode>10</areaCode>
      <subscriberNumber>4482292</subscriberNumber>
    </phone>
    <fax>
      <countryCode>+31</countryCode>
      <areaCode>10</areaCode>
      <subscriberNumber>2440250</subscriberNumber>
    </fax>
  </modifyResellerRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>1</data>
  </reply>
</openXML>
Views
Personal tools