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
| Name | Type | Description |
|---|---|---|
| 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 "https://cotlet.dev/api/v1/exact-online/relations/search?query=query" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("exact-online", "search_relations", {"query":"query"}) const result = await cotlet.call('exact-online', 'search_relations', {"query":"query"}); cotlet call exact-online search_relations --data '{"query":"query"}' Example response
{
"relations": [
{
"account_id": "8a3f1c20-2b6e-4d44-9e0b-7f4c1d2a9001",
"code": "1042",
"name": "Northwind Studio",
"city": "Utrecht",
"status": "customer"
}
],
"next_cursor": null
}