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

Parameters: get_customer
NameTypeDescription
customer_id integer required integer Customer ID from search_customers.

Request

cURL
curl https://cotlet.dev/api/v1/simpro/customers/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("simpro", "get_customer", {"customer_id":1})
Node.js
const result = await cotlet.call('simpro', 'get_customer', {"customer_id":1});
CLI
cotlet call simpro get_customer --data '{"customer_id":1}'

Example response

JSON

{
  "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"
    }
  ]
}

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.