List relations

Customers and suppliers (relations) with code, name, city and email, filtered by name, email, code, city or type.

GET https://cotlet.dev/api/v1/e-boekhouden/relations

read

Returns relations from the administration you are signed in to. Filter by name, email, relation code, city or type (B for business, P for private) to find one before you invoice it. Use limit and offset for the next page. The relation_id from each item goes into the other tools.

Parameters

Parameters: list_relations
NameTypeDescription
name string string Company or person name. Wildcards ? and % are allowed.
email string string Exact email address.
code string string Relation code.
city string string Primary city.
type enum enum B (business) or P (private).
limit integer integer Number of items to return.
offset integer integer Number of items to skip, for the next page.

Request

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

Example response

JSON

{
  "relations": [
    {
      "relation_id": 1042,
      "code": "STN001",
      "type": "B",
      "name": "Studio Noord BV",
      "city": "Utrecht",
      "email": "admin@studionoord.example",
      "term_of_payment": 14,
      "inactive": false
    }
  ],
  "total": 1
}

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.