Get details

Check your personal data


Endpoint


Method URI
POST https://apiv2.keliweb.it/api/v2/keliweb/get-clients-details

Request Parameters


Parameter Type Description Required
HTTP headers: Authorization string Bearer + the token to access APIs Required
stats boolean Also return additional client statistics. Optional

Response Parameters


Parameter Type Description
result string The result of the operation: success or error
client array The information on the client.
stats array Additional statistics for the client returned.

Example Request (PHP Curl)

            

                    $curl = curl_init();
                    
                    curl_setopt_array($curl, array(
                      CURLOPT_URL => "https://apiv2.keliweb.it/api/v2/keliweb/get-clients-details",
                      CURLOPT_RETURNTRANSFER => true,
                      CURLOPT_ENCODING => "",
                      CURLOPT_MAXREDIRS => 10,
                      CURLOPT_TIMEOUT => 0,
                      CURLOPT_FOLLOWLOCATION => false,
                      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                      CURLOPT_CUSTOMREQUEST => "POST",
                      CURLOPT_POSTFIELDS =>
                        http_build_query(
                                array(
                                    'clientid' => '1',
                                    'stats'    => true
                                )
                            ),
                      CURLOPT_HTTPHEADER => array(
                        "Content-Type: multipart/form-data",
                        "X-Requested-With: XMLHttpRequest",
                        "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NhMmNlNkNjNhMmU2MmUxIzZDRkODY5MS1mMDMzLTQ1MWMtYjU-3EHc",
                      ),
                    ));
                    
                    $response = curl_exec($curl);
                    $err = curl_error($curl);
                    
                    curl_close($curl);
                    
                    if ($err) {
                      echo "cURL Error #:" . $err;
                    } else {
                      echo $response;
                    }

            
        

Example Request (jQuery AJAX)

            
                    var form = new FormData();
                    form.append("clientid", "1");
                    form.append("stats", true);

                    var settings = {
                        "async": true,
                        "crossDomain": true,
                        "url": "https://apiv2.keliweb.it/api/v2/keliweb/get-clients-details",
                        "method": "POST",
                        "headers": {
                            "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImNjMDEwYWVlYmUzMjMxMmZlZjBiNzRjYTBhMmNlNDc2MjNjNhMMTA1MzJjODk1In0",
                            "cache-control": "no-cache",
                        },
                        "processData": false,
                        "contentType": false,
                        "mimeType": "multipart/form-data",
                        "data": form
                    }

                    $.ajax(settings).done(function (response) {
                        console.log(response);
                    });
            
        

Example Response (JSON payload)

            
                {
                    "result"                          : "success",
                    "client[result]"                  : "success",
                    "client[userid]"                  : "1",
                    "client[id]"                      : "1",
                    "client[uuid]"                    : "f08ea4d1-c578-441a-9b0a-aa3aff8b1acf",
                    "client[firstname]"               : "Test",
                    "client[lastname]"                : "Client",
                    "client[fullname]"                : "Test Client",
                    "client[companyname]"             : "",
                    "client[email]"                   : "test-client@example.com",
                    "client[address1]"                : "123 Test Street",
                    "client[address2]"                : "",
                    "client[city]"                    : "Test",
                    "client[fullstate]"               : "Tester",
                    "client[state]"                   : "Tester",
                    "client[postcode]"                : "TE5 5ST",
                    "client[countrycode]"             : "GB",
                    "client[country]"                 : "GB",
                    "client[phonenumber]"             : "01234567890",
                    "client[password]"                : "$2y$10$17X1fBPpamALcMA9KMiFneH4FYpMkkmFGDxlkxbjGeSnfH8sLqixa",
                    "client[statecode]"               : "Tester",
                    "client[countryname]"             : "United Kingdom",
                    "client[phonecc]"                 : "44",
                    "client[phonenumberformatted]"    : "+44.1234567890",
                    "client[billingcid]"              : "0",
                    "client[notes]"                   : "",
                    "client[twofaenabled]"            : "",
                    "client[currency]"                : "1",
                    "client[defaultgateway]"          : "",
                    "client[cctype]"                  : "",
                    "client[cclastfour]"              : "",
                    "client[securityqid]"             : "0",
                    "client[securityqans]"            : "",
                    "client[groupid]"                 : "0",
                    "client[status]"                  : "Active",
                    "client[credit]"                  : "0.00",
                    "client[taxexempt]"               : "",
                    "client[latefeeoveride]"          : "",
                    "client[overideduenotices]"       : "",
                    "client[separateinvoices]"        : "",
                    "client[disableautocc]"           : "",
                    "client[emailoptout]"             : "",
                    "client[marketing_emails_opt_in]" : "",
                    "client[overrideautoclose]"       : "",
                    "client[allowSingleSignOn]"       : "1",
                    "client[language]"                : "",
                    "client[lastlogin]"               : "Date: 03\/10\/2016 10:26
IP Address:
Host:", "client[currency_code]" : "USD", "stats[numdueinvoices]" : "19", "stats[dueinvoicesbalance]" : "$2645.80 USD", "stats[income]" : "$0.00 USD", "stats[incredit]" : "", "stats[creditbalance]" : "$0.00 USD", "stats[numoverdueinvoices]" : "19", "stats[overdueinvoicesbalance]" : "$2645.80 USD", "stats[numDraftInvoices]" : "0", "stats[draftInvoicesBalance]" : "$0.00 USD", "stats[numpaidinvoices]" : "0", "stats[paidinvoicesamount]" : "$0.00 USD", "stats[numunpaidinvoices]" : "19", "stats[unpaidinvoicesamount]" : "$2645.80 USD", "stats[numcancelledinvoices]" : "0", "stats[cancelledinvoicesamount]" : "$0.00 USD", "stats[numrefundedinvoices]" : "0", "stats[refundedinvoicesamount]" : "$0.00 USD", "stats[numcollectionsinvoices]" : "0", "stats[collectionsinvoicesamount]": "$0.00 USD", "stats[productsnumactivehosting]" : "0", "stats[productsnumhosting]" : "0", "stats[productsnumactivereseller]": "0", "stats[productsnumreseller]" : "0", "stats[productsnumactiveservers]" : "0", "stats[productsnumservers]" : "0", "stats[productsnumactiveother]" : "2", "stats[productsnumother]" : "2", "stats[productsnumactive]" : "2", "stats[productsnumtotal]" : "2", "stats[numactivedomains]" : "2", "stats[numdomains]" : "2", "stats[numacceptedquotes]" : "0", "stats[numquotes]" : "0", "stats[numtickets]" : "0", "stats[numactivetickets]" : "0", "stats[numaffiliatesignups]" : "0", "stats[isAffiliate]" : "" }