Create voucher

Book a voucher with rows of account, debit and credit in a voucher series.

POST https://cotlet.dev/api/v1/fortnox/vouchers

write Confirm

Books one voucher with a transaction date, a description, a voucher series and rows. Each row has an account and either a debit or a credit amount; debits must equal credits. The date must fall inside an existing financial year and every account must exist and be active, or Fortnox rejects the voucher. Returns the series and voucher number. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_voucher
NameTypeDescription
voucher_series string required string Voucher series code, e.g. A.
transaction_date date required date Booking date, inside an existing financial year.
description string required string Voucher description.
rows array required array Objects with account and either debit or credit.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/fortnox/vouchers \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}'
Python
result = client.call("fortnox", "create_voucher", {"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]})
Node.js
const result = await cotlet.call('fortnox', 'create_voucher', {"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]});
CLI
cotlet call fortnox create_voucher --data '{"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}'

Example response

JSON

{
  "voucher_series": "A",
  "voucher_number": 142,
  "transaction_date": "2026-10-31",
  "description": "Accrued rent, October",
  "rows": [
    {
      "account": "5010",
      "debit": 8000,
      "credit": 0
    },
    {
      "account": "2990",
      "debit": 0,
      "credit": 8000
    }
  ]
}

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.