The ACCOUNT endpoint returns basic account information.
Example PHP CURL Request
$url = 'YOUR URL'; $key = 'YOUR CLIENT KEY'; $secret = 'YOUR CLIENT SECRET'; $endpoint = '/api/v1/get/account'; $ch = curl_init(); $curlConfig = array( CURLOPT_URL => $url . $endpoint, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => array( 'key' => $key, 'secret' => $secret, ) ); curl_setopt_array($ch, $curlConfig); $result = curl_exec($ch); $result = json_decode($result); curl_close($ch); if (isset($result->result) && $result->result != 'Success') { $error_message = $result->message; } else { var_dump($result); }
Example JSON Response
{ "result": "Success", "business_name": "South West Photo Booths", "business_website": "https://www.southwestphotobooths.co.uk/", "business_timezone": "Europe/London", "business_address": "103 Grace Road West, Exeter", "business_postcode": "EX2 8PU", "business_country": "United Kingdom", "business_admin": "Chris", "currency_code": "GBP", "currency_sign": "£", "affiliate": "", "is_paid": 1, "plan": "Basic" }