NAME
Kernel::GenericInterface::Operation::CustomerCompany::CustomerCompanyGet – GenericInterface Customer Get Operation backend
_Run()
Perform CustomerCompanyGet Operation. This function is able to return one or more customer company entries in one call.
my $Result = $OperationObject->Run(
Data => {
UserLogin => 'some agent login', # UserLogin or AccessToken is required
AccessToken => 123,
Password => 'some password', # if UserLogin is sent then Password is required
CustomerID => [ 'id1', 'id2', 'id3', ... ], # required; CustomerIDs to be retrieved
},
);
$Result = {
Success => 1, # 0 or 1
ErrorMessage => '', # in case of error
Data => {
CustomerCompany => [
{
'CustomerCompanyCity' => 'Some city',
'ChangeBy' => 1,
'CustomerCompanyComment' => 'some comment',
'ValidID' => 1,
'CompanyString' => 'b67b8ffd-4a1c-11ed ...',
'Source' => 'CustomerCompany',
'CreateTime' => '2022-10-12 10:57:49',
'CustomerCompanyCountry' => 'Germany',
'CustomerCompanyName' => 'ThisThat Systems, Gmbh',
'CustomerCompanyURL' => 'http://example.com',
'ChangeTime' => '2022-10-12 10:57:49',
'CustomerCompanyStreet' => 'Some Street',
'CustomerID' => 'b67b8ffd-4a1c-11ed ...',
'CreateBy' => 1,
'CustomerCompanyZIP' => '12345'
},
{
#. . .
},
]
Error => { # in case of error
ErrorCode => 'ErrorCode',
ErrorMessage => 'Error Description',
},
},
};