Create relation

Add a customer or supplier (relation) to a division.

MCP tool exact_online_write → create_relation

write

Creates a relation with a name, status and optional address and email. It returns the account_id to use in other tools. It sends nothing to anyone and moves no money, so it runs without asking first. Search with search_relations before creating to avoid a duplicate.

Parameters

Parameters: create_relation
NameTypeDescription
division integer integer Division (company) code from list_divisions. Default: the account's current division.
name string required string Name of the company or person.
status enum enum customer or supplier. Default: customer.
email string string Email address for invoices.
city string string City.
country string string Two-letter country code.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "exact_online_write",
    "arguments": {
      "operation": "create_relation",
      "arguments": {
        "name": "Jane Doe"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "account_id": "8a3f1c20-2b6e-4d44-9e0b-7f4c1d2a9002",
    "code": "1043",
    "name": "Van Dijk Design",
    "status": "customer"
  },
  "isError": false
}

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.