Create a final invoice

Create the final invoice of a completed task.

POST https://cotlet.dev/api/v1/aroflo/tasks/{task_id}/invoice-from-tasks

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.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/aroflo/tasks/task_8c41d2/invoice-from-tasks \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("aroflo", "create_invoice_from_task", {"task_id":"task_8c41d2"})
Node.js
const result = await cotlet.call('aroflo', 'create_invoice_from_task', {"task_id":"task_8c41d2"});
CLI
cotlet call aroflo create_invoice_from_task --data '{"task_id":"task_8c41d2"}'

Example response

JSON

{
  "invoice_id": "inv_2041",
  "invoice_no": "2041",
  "task_id": "task_8790",
  "job_number": "J1170",
  "status": "In Progress",
  "total": 840
}

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.