Approve an invoice

Set an invoice to Approved and save it.

POST https://cotlet.dev/api/v1/aroflo/invoices/{invoice_id}/approve

write Confirm

Sets Status to Approved and saves, then returns the invoice. An Approved invoice cannot be changed in AroFlo until its status is set back, and it must be Approved before it can be pushed to your accounting package. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_invoice
NameTypeDescription
invoice_id string required string Invoice ID from list_invoices.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/aroflo/invoices/invoice_8c41d2/approve \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("aroflo", "approve_invoice", {"invoice_id":"invoice_8c41d2"})
Node.js
const result = await cotlet.call('aroflo', 'approve_invoice', {"invoice_id":"invoice_8c41d2"});
CLI
cotlet call aroflo approve_invoice --data '{"invoice_id":"invoice_8c41d2"}'

Example response

JSON

{
  "invoice_id": "inv_2041",
  "invoice_no": "2041",
  "status": "Approved",
  "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.