Customer

创建客户

$asiabill->request('customers',array(
'body' => array(
'description' => 'test customer',
'email' => '[email protected]',
'firstName' => 'firstName',
'lastName' => 'lastName',
'phone' => '13800138000'
)
));

获取客户信息

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

获取所有客户

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

删除客户

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