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
| Name | Type | Description |
|---|---|---|
| invoice_id string required | string | Sales invoice ID from list_sales_invoices or create_sales_invoice. |
Request
curl -X POST https://cotlet.dev/api/v1/procountor/invoices/invoice_8c41d2/sales-invoices \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("procountor", "send_sales_invoice", {"invoice_id":"invoice_8c41d2"}) const result = await cotlet.call('procountor', 'send_sales_invoice', {"invoice_id":"invoice_8c41d2"}); cotlet call procountor send_sales_invoice --data '{"invoice_id":"invoice_8c41d2"}' Example response
{
"invoice_id": "si_10482",
"number": "10482",
"status": "sent",
"dispatch": "immediate"
}