Returns data about customer identified by given token.


Name Type Description
customerToken string Token that identifies the customer (see Must know about API).

- required parameter

Response Parameters:

Name Type Description
id string Customer ID
email string Customer email
displayName string Name to call the customer. Usually it's a full name, but also might be an email when name is missing
firstName string Customer name
lastName string Customer surname
currency string Customer currency: USD, EUR, GBP, CAD, AUD, NZD, SEK, DKK, NOK, TRL, ZAR, XOF
locale string Defines language and text formatting for the user. E.g. "en_US", "fr_FR"
country string 2-letter country code

Error Codes:

Code Description
1 Invalid customer token


    "method": "getCustomer",
    "params": {
        "customerToken": "VIJYHWzJEP4mt1DZThD7DV_FinBG0Yo3Q9oHfCFAjqA22jXP"
    "jsonrpc": "2.0",
    "id": 1


    "result": {
        "id": "761790883",
        "email": "",
        "displayName": "John Doe",
        "firstName": "John",
        "lastName": "Doe",
        "currency": "USD",
        "locale": "en_US",
        "country": "US"
    "id": "1",
    "jsonrpc": "2.0"


    $cleengApi =  new Cleeng_Api();

    $customerInfo = $cleengApi->getCustomer();

    echo $customerInfo->displayName;

Remember! you can always check it by yourself using API Console - getCustomer()

Back to Customer API

We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.