API Module Customer createCustomerRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Customer > Create== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |customer |- style="background-color:#EEEEEE;" |'''Command name''' |…')
Line 13: Line 13:
|'''Input'''
|'''Input'''
|
|
-
*[[API Format Company|companyName]]
+
*companyName
-
*[[API Format VAT|vat]]
+
*vat
*'''[[API Format Name|name]]'''
*'''[[API Format Name|name]]'''
-
*'''[[API Format Gender|gender]]'''
+
*'''gender'''
*'''[[API Format Address|address]]'''
*'''[[API Format Address|address]]'''
*'''[[API Format Phone|phone]]'''
*'''[[API Format Phone|phone]]'''
*[[API Format Phone|fax]]
*[[API Format Phone|fax]]
-
*'''[[API Format Email|email]]'''
+
*'''email'''
*[[API Format Additional Data|additionalData]]
*[[API Format Additional Data|additionalData]]
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Output'''
|'''Output'''
|
|
-
*'''[[API Format Handle|handle]]'''
+
*'''handle'''
|}
|}

Revision as of 10:12, 6 April 2010

Contents

Module Customer > Create

Module customer
Command name createCustomerRequest
Use Creates an entry for a new customer
Input
Output
  • handle

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('createCustomerRequest')
 ->setAuth(array('username' => 'username', 'password' => 'password'))
 ->setArgs(array(
   'name' => array(
     'initials' => 'J.B.',
     'firstName' => 'John',
     'prefix' => 'van',
     'lastName' => 'Halen',
   ),

   'gender' => 'M', 

   'phone' => array(
     'countryCode' => '+31',
     'areaCode' => '10',
     'subscriberNumber' => '4482299'
   ),

   'fax' => array(
     'countryCode' => '+31',
     'areaCode' => '10',
     'subscriberNumber' => '2440250'
   ),

   'address' => array(
      'street' => 'Nieuwe Binnenweg',
      'number' => '137',
      'suffix' => 'a',
      'zipcode' => '3014 GJ',
      'city' => 'Rotterdam',
      'state' => 'Zuid-Holland',
      'country' => 'NL',
   ),

   'email' => 'support@openprovider.nl',

   'additionalData' => array(
     'birthCity' => 'Amsterdam',
     'birthDate' => '1971-02-14',
     'socialSecurityNumber' => '771268635',
     'companyRegistrationNumber' => '115372'
   )
 ));

Raw XML

to do
Views
Personal tools