# Customer

### 创建客户

```php
$asiabill->request('customers',array(
    'body' => array(
        'description' => 'test customer',
        'email' => '123451234@email.com',
        'firstName' => 'firstName',
        'lastName' => 'lastName',
        'phone' => '13800138000'
    )
));
```

### 获取客户信息

```php
$asiabill->request('customers',array(
    'path' => array(
        'customerId' => $customer_id
     )
 ));
```

### 获取所有客户

```php
$asiabill->request('customers',array(
    'query' => array(
        'pageIndex' => '1', //当前页码，从1开始，最长10位，默认为1
        'pageSize' => '5', //每页显示记录数，最大1000，默认10
    )
));
```

### 删除客户

```php
$asiabill->request('customers',array(
    'path' => array
        'customerId' => $customer_id
    ),
    'delete' => true
));
```

