Create customer
Add a customer with a name, contact details and a service address.
POST https://cotlet.dev/api/v1/housecall-pro/customers
write Confirm
Creates a customer profile with name, email, phone numbers and one service address. Run list_customers first so you do not add a second profile for someone who already exists. Put a number in mobile if you will text the customer later, because home and work numbers cannot receive texts. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| first_name string required | string | First name. |
| last_name string | string | Last name. |
| email string | string | Email address. |
| mobile string | string | Mobile number, the one that can receive texts. |
| street string | string | Service address street. |
| city string | string | Service address city. |
| state string | string | Service address state. |
| zip string | string | Service address zip code. |
Request
curl -X POST https://cotlet.dev/api/v1/housecall-pro/customers \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"first_name":"first name"}' result = client.call("housecall-pro", "create_customer", {"first_name":"first name"}) const result = await cotlet.call('housecall-pro', 'create_customer', {"first_name":"first name"}); cotlet call housecall-pro create_customer --data '{"first_name":"first name"}' Example response
{
"customer_id": "cus_4f2a91",
"name": "Dana Whitfield",
"address_id": "adr_71c0",
"status": "created"
}