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

Parameters: bookkeep_invoice
NameTypeDescription
invoice_number string required string Invoice number from list_invoices or create_invoice.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/fortnox/invoices/invoice%20number/bookkeep \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("fortnox", "bookkeep_invoice", {"invoice_number":"invoice number"})
Node.js
const result = await cotlet.call('fortnox', 'bookkeep_invoice', {"invoice_number":"invoice number"});
CLI
cotlet call fortnox bookkeep_invoice --data '{"invoice_number":"invoice number"}'

Example response

JSON

{
  "invoice_number": "2381",
  "state": "booked",
  "voucher": "A 143",
  "total": 15000,
  "currency": "SEK"
}

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.