Search relations

Customers and suppliers (relations) by name, with code, city and status.

GET https://cotlet.dev/api/v1/exact-online/relations/search

read

Searches the relations of one division by name or code and returns up to one page of matches. Use the account_id of a match as the customer of create_sales_invoice. An empty list means no relation matches, and create_relation can add it.

Parameters

Parameters: search_relations
NameTypeDescription
division integer integer Division (company) code from list_divisions. Default: the account's current division.
query string required string Part of the name or the code.
limit integer integer Records per page. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl "https://cotlet.dev/api/v1/exact-online/relations/search?query=query" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("exact-online", "search_relations", {"query":"query"})
Node.js
const result = await cotlet.call('exact-online', 'search_relations', {"query":"query"});
CLI
cotlet call exact-online search_relations --data '{"query":"query"}'

Example response

JSON

{
  "relations": [
    {
      "account_id": "8a3f1c20-2b6e-4d44-9e0b-7f4c1d2a9001",
      "code": "1042",
      "name": "Northwind Studio",
      "city": "Utrecht",
      "status": "customer"
    }
  ],
  "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.