API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Debtor_CreateFromData An Internal Error has occured Server Exception (E00000)

0
created May 27, 2014 by sumanh
0% Accept Rate

edited May 27, 2014 by sumanh
Q 1 A 0 C 0

1 Answer

0

You have made some syntax mistake. Try this :

$customerdata = array(
'Handle' => array('Number'=>'1'),
'Number' =>'1',
'DebtorGroupHandle' => array('Number'=>'1'),
'Name'=> 'name',
'VatZone'=> 'HomeCountry' ,
'CurrencyHandle' => array('Code'=>'INR'),
'PriceGroupHandle' => array('Number'=>1),
'IsAccessible' => 'true',
'Ean'=> '',
'PublicEntryNumber'=> '123456',
'Email' => 'customer@email.com',
'TelephoneAndFaxNumber' => '1234567890',
'Website' =>'customer.com',
'Address' => 'customer address',
'PostalCode'=> '123456',
'City'=> 'city',
'Country'=> 'country',
'VatNumber' => ,
'County' => 'county',
'CINumber' => '',
'TermOfPaymentHandle' => array('Id'=>2)
'LayoutHandle' => array('Id'=>3),
'AttentionHandle' => array('Id'=>1),
'YourReferenceHandle' =>array('Id'=>1) 
);

$result = $client->Debtor_CreateFromData(array( "data"=>$customerdata ) );

 

answered Sep 13, 2014 by Wisdmlabs
Visma e-conomic A/S
...