Send sales invoice

Send an approved sales invoice on its invoice channel.

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

write Confirm

Does what Send does in Invoice view. The status changes to Sent and the invoice joins the invoices-to-be-sent list. Procountor dispatches it automatically three days before the invoice date, or immediately if the date is today, within three days or in the past. A Sent invoice cannot be changed or invalidated. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_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-invoices \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("procountor", "send_sales_invoice", {"invoice_id":"invoice_8c41d2"})
Node.js
const result = await cotlet.call('procountor', 'send_sales_invoice', {"invoice_id":"invoice_8c41d2"});
CLI
cotlet call procountor send_sales_invoice --data '{"invoice_id":"invoice_8c41d2"}'

Example response

JSON

{
  "invoice_id": "si_10482",
  "number": "10482",
  "status": "sent",
  "dispatch": "immediate"
}

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.