Approve sales invoice

Approve an Unfinished sales invoice so it can be sent.

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

write Confirm

Does what Approve does in Invoice view. The status changes from Unfinished to Not sent, and Procountor counts the invoice in Accounting Act and tax reports. Only approved invoices can be sent. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_sales_invoice
NameTypeDescription
invoice_id string required string Sales invoice ID from list_sales_invoices or create_sales_invoice.

Request

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

Example response

JSON

{
  "invoice_id": "si_10482",
  "number": "10482",
  "status": "not_sent"
}

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.