Create a final invoice

Create the final invoice of a completed task.

MCP tool aroflo_write → create_invoice_from_task

write Confirm

Does what Create Final Invoice does at the bottom of the worksheet and returns the invoice_id and its status. For an unquoted job AroFlo adds the labour and material from the job sheet. The task must be Completed; any other status fails with an error. The invoice is not approved or sent. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_invoice_from_task
NameTypeDescription
task_id string required string Task ID from list_tasks.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "aroflo_write",
    "arguments": {
      "operation": "create_invoice_from_task",
      "arguments": {
        "task_id": "task_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice_id": "inv_2041",
    "invoice_no": "2041",
    "task_id": "task_8790",
    "job_number": "J1170",
    "status": "In Progress",
    "total": 840
  },
  "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.