Get customer
Read one customer with contacts and sites.
GET https://cotlet.dev/api/v1/simpro/customers/{customer_id}
read
Returns the customer record with contacts and every site, so a quote can be put on the right address. Read only.
Parameters
| Name | Type | Description |
|---|---|---|
| customer_id integer required | integer | Customer ID from search_customers. |
Request
curl https://cotlet.dev/api/v1/simpro/customers/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("simpro", "get_customer", {"customer_id":1}) const result = await cotlet.call('simpro', 'get_customer', {"customer_id":1}); cotlet call simpro get_customer --data '{"customer_id":1}' Example response
{
"customer_id": 3318,
"type": "company",
"name": "Harbour Dental",
"contacts": [
{
"name": "Priya Nair",
"email": "priya@harbourdental.example"
}
],
"sites": [
{
"site_id": 5107,
"name": "12 Pier Rd"
},
{
"site_id": 5120,
"name": "40 Dock St"
}
]
}