Send invoice

Send an invoice to the customer by EHF, eFaktura, email, SMS or letter.

POST https://cotlet.dev/api/v1/fiken/invoices/{invoice_id}

write Confirm

Sends an issued invoice to the customer, as the sending window after Opprett faktura does. Method auto tries EHF, eFaktura, SMS and email in that order, based on what is registered for the contact. SMS only reaches Norwegian numbers, eFaktura needs the company to have approved information exchange with the eFaktura register, and a letter is posted for an extra charge to addresses in Norway only. Invoices sent by eFaktura have their payments registered by hand unless you have a KID agreement. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_invoice
NameTypeDescription
invoice_id integer required integer Invoice ID from list_invoices or create_invoice.
method enum enum auto, email, ehf, efaktura, sms or letter. Default: auto.
recipient_email string string Email address if different from the contact.
message string string Message sent with the invoice.
include_attachments boolean boolean Send the invoice attachments too. Not used for letter. Default: true.

Request

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

Example response

JSON

{
  "invoice_id": 5120331,
  "invoice_number": 10042,
  "method": "ehf",
  "to": "Nordlys Design AS",
  "sent": true
}

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.