# Get a customer by Key

Get a customer by key

## Example

Use the `$API->find('customer', array('external_key:EQUALS:XFTE-KEY')` method to find a customer by key.

```php
<?php

header('Content-Type: text/plain');

require '../ChargeOverAPI.php';
require 'config.php';

$API = new ChargeOverAPI($url, $authmode, $username, $password);

//Find a customer by the external key
$resp = $API->find('customer', array('external_key:EQUALS:XFTE-KEY'));

if (!$API->isError($resp))
{
	$customer = $resp->response;
	print('SUCCESS! got back customer: ' . $customer->company);
}
else
{
	print('There was an error looking up the customer!' . "\n");
}
```
