> For the complete documentation index, see [llms.txt](https://asiabill.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asiabill.gitbook.io/docs/ji-cheng-sdk/php-sdk/customer.md).

# 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
));
```
