Developer Center

Client

Default Parameters

In the following parameters "/" slash character is used to determine the array data under an array data.

Name Type Description
id int Client ID number
name string Client Name
surname string Client Surname
full_name string Client Full Name
company_name string Client Company Name
company_tax_number string Client's Corporate Tax Number
company_tax_office string Client's Corporate Tax Office
email string Client E-Mail Address
password string Client Password
(It only exists when the account is created and the password is changed.)
phone int Client GSM number with country code.
gsm_cc int Client's GSM Country Code Ex: 90
gsm int Client's GSM Number without Country Code
landline_cc int Client's Fixed Line Country Code Ex:90
landline_phone int Client's Fixed Line Number Without Country Code
identity int Client's Citizenship Identity Country Code
kind string Client's Account Type;
individual or corporate
taxation int | null Client's Tax Exemption Status; If the value '1' comes, it means it is exempt from tax.
currency int Currency defined in client's account
lang string Language defined in client's account
address array Saved address information (not up-to-date) of client when invoice is created.
address / country_name string Client address country name
address / country_code string Client address country code (Alpha-2)
address / city string Client address city name
address / counti string Client address counti name
address / address string Client address
address / zipcode string Client address postal Code

Sample Usage

Hook::add("ClientCreated",1,function($params=[]){

    $name           = $params['name'];
    $surname        = $params['surname'];
    $email          = $params['email'];
    $phone          = $params['phone'];

    // users_informations  add/edit field
    // User::setInfo($params["id"],['gsm_cc' => '44','gsm' => '12345678' , 'custom_field1' => 'test']);
    // users_informations remove field
    // User::deleteInfo($params["id"],'custom_field1');
    // users data edit field
    // User::setData($params["id"],['name' => "John", 'surname' => "Sterling" , 'full_name' => "John Sterling"]);

    // Write the code here...
});

 

ClientCreated

Called when a client account is created.

Return

Not supported

 

ClientInformationModified

Called after the client modifies information in its account, called after the administrator modifies client information.

Return

Not supported

 

PreClientDeleted

Called before client account is deleted.

Return

Not supported

 

ClientDeleted

Called after client account is deleted.

Return

Not supported

 

ClientChangePassword

Called when client's account password is changed.

Return

Not supported

 

ClientBlocked

Called when client account is blocked.

Return

Not supported

 

ClientActivated

Called when client account is activated.

Return

Not supported

 

ClientDetailsValidation

Called when an account is created or updated in the administrator and client field, you can forward an optional error message as a return.

Return

Hook::add("ClientDetailsValidation",1,function($params=[]){
    return ['error' => 'Response error message'];
});

 

ClientEmailVerificationCompleted

Called when client's email address is verified.

Return

Not supported

 

ClientSMSVerificationCompleted

Called when client's gsm number is verified.

Return

Not supported

Order

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top