Approve purchase invoice

Approve a purchase invoice in circulation so it can be paid.

POST https://cotlet.dev/api/v1/procountor/invoices/{invoice_id}/purchase-invoice/approve

write Confirm

Does what Approve does in the Verification view: adds an approval stamp. If verifiers are specified, the invoice must be verified first. Once all approvers have approved, the status becomes Approved, the invoice counts as a business transaction and can be paid in the Payment view. This tool does not pay it. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_purchase_invoice
NameTypeDescription
invoice_id string required string Purchase invoice ID from list_purchase_invoices.
comment string string Optional comment stored with the stamp.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/procountor/invoices/pi_77120/purchase-invoice/approve \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"comment":"Matches PO 4471"}'
Python
result = client.call("procountor", "approve_purchase_invoice", {"invoice_id":"pi_77120","comment":"Matches PO 4471"})
Node.js
const result = await cotlet.call('procountor', 'approve_purchase_invoice', {"invoice_id":"pi_77120","comment":"Matches PO 4471"});
CLI
cotlet call procountor approve_purchase_invoice --data '{"invoice_id":"pi_77120","comment":"Matches PO 4471"}'

Example response

JSON

{
  "invoice_id": "pi_77120",
  "status": "approved",
  "stamp": {
    "by": "You",
    "at": "2026-10-14T09:14:00+03:00",
    "comment": "Matches PO 4471"
  }
}

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.