Bookkeep invoice
Book a saved invoice. A booked invoice can no longer be changed.
POST https://cotlet.dev/api/v1/fortnox/invoices/{invoice_number}/bookkeep
write Confirm
Books a saved customer invoice, as the Bokför button does, and returns its voucher number. After booking Fortnox does not allow changes to the invoice, so check the totals first with get_invoice. Fails if the invoice is already booked or the financial year does not exist. 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. |
Request
curl -X POST https://cotlet.dev/api/v1/fortnox/invoices/invoice%20number/bookkeep \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fortnox", "bookkeep_invoice", {"invoice_number":"invoice number"}) const result = await cotlet.call('fortnox', 'bookkeep_invoice', {"invoice_number":"invoice number"}); cotlet call fortnox bookkeep_invoice --data '{"invoice_number":"invoice number"}' Example response
{
"invoice_number": "2381",
"state": "booked",
"voucher": "A 143",
"total": 15000,
"currency": "SEK"
}