From Openprovider API documentation
Module Reseller > Modify Contact
Module
| reseller
|
Command name
| modifyContactResellerRequest
|
Use
| Modifies data of an existing contact in your reseller account
|
Input
|
- id
- role (can be admin, tech or billing)
- isActive (can be 0 or 1)
- companyName
- name
- gender
- address
- phone
- email
|
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
<?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>
0
<desc />
<data>1</data>
</reply>
</openXML>