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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://asiabill.gitbook.io/docs/ji-cheng-sdk/php-sdk/customer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
