List clients

Clients with ID, contact, currency, paid to date and outstanding balance.

GET https://cotlet.dev/api/v1/invoice-ninja/clients

read

Lists the clients of one company, with the contact, the currency the client is billed in, what the client has paid to date and the outstanding balance, the same numbers as the client overview. Search matches the client name and the contact name or email. Use client_id from each item in create_invoice, create_quote and list_invoices. Pages hold up to 100 clients; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_clients
NameTypeDescription
company string string Company name, for accounts with several companies. Default: the company open when you signed in.
search string string Text to match in the client name or contact.
limit integer integer 1 to 100. Default: 20.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/invoice-ninja/clients \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("invoice-ninja", "list_clients")
Node.js
const result = await cotlet.call('invoice-ninja', 'list_clients');
CLI
cotlet call invoice-ninja list_clients

Example response

JSON

{
  "clients": [
    {
      "client_id": "Wp3xq8Rnd5",
      "name": "Northwind Studio",
      "contact": "Dana Weiss",
      "email": "billing@northwind.example",
      "currency": "USD",
      "paid_to_date": 4300,
      "balance": 1200
    },
    {
      "client_id": "Bk92tLmq1x",
      "name": "Brightwave Ltd",
      "contact": "Tom Hale",
      "email": "ap@brightwave.example",
      "currency": "USD",
      "paid_to_date": 7200,
      "balance": 1800
    }
  ],
  "next_cursor": null
}

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.