API Module Reseller modifyResellerRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module Reseller > Modify== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Command name''' |…') |
(→Module Reseller > Modify) |
||
(7 intermediate revisions not shown) | |||
Line 9: | Line 9: | ||
|- | |- | ||
|'''Use''' | |'''Use''' | ||
- | | | + | |Modify attributes of the reseller |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Input''' | |'''Input''' | ||
| | | | ||
*companyName | *companyName | ||
- | *vat | + | *[[API Format vat|vat]] |
*[[API Format Address|address]] | *[[API Format Address|address]] | ||
*[[API Format Phone|phone]] | *[[API Format Phone|phone]] | ||
Line 20: | Line 20: | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
- | |- | + | | |
+ | - | ||
|} | |} | ||
==Examples== | ==Examples== | ||
===Using PHP class=== | ===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=== | ===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> | ||
+ | <nowiki><code>0</code></nowiki> | ||
+ | <desc /> | ||
+ | <data>1</data> | ||
+ | </reply> | ||
+ | </openXML> |
Current revision as of 11:48, 17 June 2016
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>