Create purchase entry

Book a supplier invoice as a purchase entry with its lines.

MCP tool exact_online_write → create_purchase_entry

write Confirm

Creates a purchase entry for a supplier with its lines, in one call. It returns the entry number and total. Attaching the invoice PDF is not part of this tool. It writes to the ledger. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_purchase_entry
NameTypeDescription
division integer integer Division (company) code from list_divisions. Default: the account's current division.
supplier string required string Relation name or account_id from search_relations.
invoice_number string required string The supplier's invoice number.
entry_date date required date Invoice date.
lines array required array Objects with gl_account, description, amount and vat_code.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "exact_online_write",
    "arguments": {
      "operation": "create_purchase_entry",
      "arguments": {
        "supplier": "supplier",
        "invoice_number": "invoice number",
        "entry_date": "2026-10-01",
        "lines": "lines"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "entry_number": 70000456,
    "supplier": "Acme Supplies",
    "invoice_number": "2026-118",
    "entry_date": "2026-10-14",
    "amount_excl_vat": 450,
    "currency": "EUR",
    "status": "booked"
  },
  "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.