Developer Center

ValidateClient

You can use this action to check/verify the email and password of any customer registered in WISECP.

Method / Endpoint

POST/ {{API_URL}} Clients/ValidateClient

Request Parameters

Parameter Name Type Description
email String E-mail Address of the Client
password String Password of the Client

External Sample

curl --location 'https://example.com/api/Clients/ValidateClient' \
--header 'Content-Type: application/json' \
--header 'Apikey: [YOUR_API_KEY]' \
--data-raw '{
    "email": "[email protected]",
    "password": "test123"
}'

Internal Sample

Helper::Load("Api");
try {
    $result = Api::Clients()->ValidateClient([
        "email"     => "[email protected]",
        "password"  => "test123",
    ]);

    print_r($result);
}
catch (Exception $e)
{
    echo 'Error: '.$e->getMessage();
}

Sample JSON Response

{
    "status": "successful",
    "data": {
        "user_id": 19,
        "hash": "ZmozNFdUNy8wMGM4bkVKK01IeUF5d2tSNzU0d1E1VThLZUJmZXNzdVNkK2dvWEgwdmdOTDE4YldmMzFCTVdheVY3bjhRTDBxSVNOb1FXcjBhVEhiTlE9PQ=="
    }
}

Response Parameters

Parameter Name Type Description
status String Action Status "successful" or "error"
message String Error message if the action status is "error"
data.user_id Integer Client's ID information
data.hash String Client's password hash value
CreateClientSsoToken

Do you have any questions?

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

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024