auth_person
The function authenticates a person.
Parameters:
Person e-mail. Together with password can be replaced with sid. |
|
password |
Person password. Together with email can be replaced with sid. |
ip |
Optional parameter. Customer IP. If specified, the anti-fraud Login Filter is activated. |
sid |
Client CP session ID (SID). Optional parameter. Can be passed instead of email and password and in this case a customer will be authenticated in Store by this session ID. |
login_to_cp |
Optional parameter. The value can be 1 (true) or 0 (false). If true, the function will include the client CP session ID (SID) into the response. |
Returns: PERSON_INFO:
{
'sid' => 'e3b09cb237a41b6867bcbb62ac8899da',
'person' => {
'lang' => 'en',
'person_id' => '5',
'account_list' => [
{
'status' => '0',
'vendor_id' => '1',
'person_id' => '5',
'name' => 'Account Name',
'type' => '3',
'account_id' => '5'
}
],
'middle_name' => '',
'last_name' => 'Smith',
'email' => 'smith@mail.com',
'insertion' => '',
'comment' => '',
'suffix' => '',
'gender' => 'female',
'prefix' => '',
'first_name' => 'Jane'
}
};
SOAP Faults codes:
UserAuthen |
User authentication error. |
The returned hash presents person information:
Parameter |
Means |
||||||||||||||||||||||||||
|
Client CP session ID. Returned in case the |
||||||||||||||||||||||||||
|
Person information. Contains hash:
|
get_person_info
The function returns a registered person details by a person numerical ID assigned on registration in the Parallels Business Automation - Standard database.
Parameters:
person_id |
A registered person numerical identifier assigned in the Parallels Business Automation - Standard database |
SOAP Faults codes:
MissingPerson |
Person not found |
PersonsDenied |
You are not allowed to access persons |
Returns:
$VAR1 = {
'lang' => 'en',
'person_id' => '2',
'account_list' => [
{
'status' => '0',
'vendor_id' => '1',
'person_id' => '2',
'name' => 'First Last',
'type' => '3',
'account_id' => '2'
}
],
'middle_name' => '',
'last_name' => 'Last',
'email' => 'mail@provider.com',
'insertion' => '',
'comment' => '',
'suffix' => '',
'gender' => 'M',
'prefix' => '',
'first_name' => 'First'
};