List customers

Customers in your Pennylane account with name, type and email, optionally filtered by name.

GET https://cotlet.dev/api/v1/pennylane/customers

read

Returns the customers in the Pennylane account you signed in with, company and individual customers alike. Use customer_id from each item in create_customer_invoice and list_customer_invoices. Pages hold 1 to 100 customers; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_customers
NameTypeDescription
name string string Only customers whose name contains this text.
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/pennylane/customers \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("pennylane", "list_customers")
Node.js
const result = await cotlet.call('pennylane', 'list_customers');
CLI
cotlet call pennylane list_customers

Example response

JSON

{
  "customers": [
    {
      "customer_id": 4021,
      "name": "Atelier Lumen SARL",
      "type": "company",
      "email": "compta@atelier-lumen.example"
    },
    {
      "customer_id": 4034,
      "name": "Studio Marais SAS",
      "type": "company",
      "email": "factures@studio-marais.example"
    }
  ],
  "has_more": false,
  "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.