Clients represent companies, groups, organizations or other contact containers. All contacts must belong to a Client (or a Lead). Clients are also the main containers for Projects and Invoices.
GET /api/v2/clients
{
  "page_count": 7
  "page_size": 10
  "total_count": 61
  "clients": [
    {
      "number": "101"
      "name": "ACME Corp"
      "city": "New York"
      "address": "123 Main St."
      "zip": "12345"
      "country": "US"
      "id": 2123
      "invoice_extra_fields": null
      "website": "http://www.example.com"
      "address_2": "Suite 101"
      "description": "A sample API Client"
      "state": "NY"
    },
    ...
  ]
}
1: Active2: ArchivedGET /api/v2/clients?page=2On a bulk GET Clientary will return 10 client results at once. To paginate through more results, you can use the page parameter.
GET /api/v2/clients?updated_since=2017-01-01You can also filter by update time for clients, just to get the lastest changes.
GET /api/v2/clients?sort=dateYou can get the most recently created clients by date, rather than the default sort which is based on client name.
GET /api/v2/clients/:id
{
  "number": "101"
  "name"": "ACME Corp"
  "city": "New York"
  "address": "123 Main St."
  "zip": "12345"
  "country": "US"
  "id": 2123
  "invoice_extra_fields": null
  "website": "http://www.example.com"
  "address_2": "Suite 101"
  "description": "A sample API Client"
  "state": "NY"
}
POST /api/v2/clients
{
  "client": {
    "name": "ACME Corp"
  }
}
  Required Fields: name (HTTP 422 on failure) 
 
  Unique Fields: number (HTTP 422 on failure) 
  
  Other Requirements: must meet plan limits (HTTP 426 on failure)
PUT /api/v2/clients/:idYou may provide a partial list of fields to update
{
  "client": {
    "number": "102"
  }
}
  Unique Fields: number (HTTP 422 on failure) 
DELETE /api/v2/clients/:idDeleting a client will result in the deletion of all associated Projects, Invoices, Estimates, and Contacts. Deletions are permanent and not reversible.