Send sales invoice

Send an existing sales invoice to the customer by email, postbox or Peppol.

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

write Confirm

Creates the invoice document from an existing sales invoice and sends it by the channel you choose. Exact also creates the financial transaction for the invoice. Sending reaches your customer and cannot be taken back. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_sales_invoice
NameTypeDescription
division integer integer Division (company) code from list_divisions. Default: the account's current division.
invoice_id string required string Invoice ID from create_sales_invoice or list_sales_invoices.
channel enum required enum email, postbox or peppol.
sender_email string string Sender address when channel is email.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/exact-online/invoices/invoice_8c41d2/sales-invoices \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel":"email"}'
Python
result = client.call("exact-online", "send_sales_invoice", {"invoice_id":"invoice_8c41d2","channel":"email"})
Node.js
const result = await cotlet.call('exact-online', 'send_sales_invoice', {"invoice_id":"invoice_8c41d2","channel":"email"});
CLI
cotlet call exact-online send_sales_invoice --data '{"invoice_id":"invoice_8c41d2","channel":"email"}'

Example response

JSON

{
  "invoice_id": "b21e9d77-5a0c-4f1e-8d13-0c6a77e45002",
  "invoice_number": 20260412,
  "channel": "email",
  "sent_to": "billing@northwind.example",
  "status": "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.