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

Parameters: create_customer
NameTypeDescription
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
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"}'
Python
result = client.call("housecall-pro", "create_customer", {"first_name":"first name"})
Node.js
const result = await cotlet.call('housecall-pro', 'create_customer', {"first_name":"first name"});
CLI
cotlet call housecall-pro create_customer --data '{"first_name":"first name"}'

Example response

JSON

{
  "customer_id": "cus_4f2a91",
  "name": "Dana Whitfield",
  "address_id": "adr_71c0",
  "status": "created"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.