API Module Reseller modifyContactRequest
From Openprovider API documentation
(Difference between revisions)
(→Raw XML) |
|||
| (2 intermediate revisions not shown) | |||
| Line 63: | Line 63: | ||
===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 97: | Line 98: | ||
<openXML> | <openXML> | ||
<reply> | <reply> | ||
| - | <code >0</code> | + | <nowiki><code>0</code></nowiki> |
<desc /> | <desc /> | ||
<data>1</data> | <data>1</data> | ||
</reply> | </reply> | ||
</openXML> | </openXML> | ||
Current revision as of 11:58, 17 June 2016
Contents |
Module Reseller > Modify Contact
| Module | reseller |
| Command name | modifyContactResellerRequest |
| Use | Modifies data of an existing contact in your reseller account |
| Input | |
| Output |
- |
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('modifyContactRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'id' => 5390,
'type' => 'billing',
'companyName' => 'Billing Co',
'name' => array(
'initials' => 'M.',
'firstName' => 'Mark',
'lastName' => 'Dollar',
),
'address' => array(
'street' => 'Pennylane',
'number' => '40',
'zipcode' => '1024 AN',
'city' => 'Amsterdam',
'country' => 'NL',
),
'phone' => array(
'countryCode' => '+31',
'areaCode' => '20',
'subscriberNumber' => '4482299'
),
'email' => 'billing@openprovider.nl',
));
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>
<modifyContactRequest>
<id>5390</id>
<type>billing</type>
<companyName>Billing Co</companyName>
<name>
<initials>M.</initials>
<firstName>Mark</firstName>
<lastName>Dollar</lastName>
</name>
<address>
<street>Pennylane</street>
<number>40</number>
<zipcode>1024 AN</zipcode>
<city>Amsterdam</city>
<country>NL</country>
</address>
<phone>
<countryCode>+31</countryCode>
<areaCode>20</areaCode>
<subscriberNumber>4482299</subscriberNumber>
</phone>
<email>billing@openprovider.nl</email>
</modifyContactRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
<code>0</code>
<desc />
<data>1</data>
</reply>
</openXML>