Send invoice
Send a booked invoice to the customer by email, e-invoice or print service.
POST https://cotlet.dev/api/v1/fortnox/invoices/{invoice_number}
Sends a booked invoice to the customer, as the Skicka button does, and marks it as sent. Methods are email, e_invoice and print_service; e-invoice only works when it has been activated in the Fortnox invoicing settings. Failed deliveries, for example an invalid email address, show up in Fortnox under the Misslyckade filter and in the next list_invoices call. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number from list_invoices or create_invoice. |
| method enum | enum | email, e_invoice or print_service. Default: the delivery method set on the customer. |
Request
curl -X POST https://cotlet.dev/api/v1/fortnox/invoices/invoice%20number \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fortnox", "send_invoice", {"invoice_number":"invoice number"}) const result = await cotlet.call('fortnox', 'send_invoice', {"invoice_number":"invoice number"}); cotlet call fortnox send_invoice --data '{"invoice_number":"invoice number"}' Example response
{
"invoice_number": "2381",
"method": "email",
"to": "ekonomi@nordlys.example",
"sent": true
}