API Module Reseller modifyResellerRequest

From Openprovider API documentation

Jump to: navigation, search

Contents

Module Reseller > Modify

Module reseller
Command name modifyResellerRequest
Use Modify attributes of the reseller
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